fopen returns ENOMEM-error on kde 1 audioserver

Christopher Faylor cgf@redhat.com
Thu Jun 28 19:18:00 GMT 2001


On Wed, Jun 27, 2001 at 10:45:02AM +0200, Ralf Habacker wrote:
>> On Mon, Jun 25, 2001 at 01:32:37PM +0200, Ralf Habacker wrote:
>> >Hi, on porting the kde 1 audioserver I have a problem calling fopen. On
>> >opening any files it returns a ENOMEM error.
>>
>> There is a problem with audio and fork/exec in 1.3.2.  Is this problem
>> also in snapshots?
>>
>This problems seems to be fixed, but one problem still remains. The kde code
>for setting ioctl sound device checks the return value against zero. So it
>assumes positiv values as an error.
>
>I have looked in a linux man pages for ioctl and there is described that
>only zero or -1 are defined as return values. Is the return value of 1 a
>feature or is it a bug ?

It sure looks like a bug to me.  I'll check in a patch but I'd feel a
little more comfortable if the author of this code could comment, also.

There have been a few changes made to this file recently.  Andy, do
you have any comments?

cgf



More information about the Cygwin-apps mailing list