[vlc-devel] [PATCH] Added support for VDR recordings.

Jan-Hinrich Fessel oskar at fessel.org
Sat Apr 17 23:46:02 CEST 2010


Am 17.04.2010 um 18:07 schrieb Rémi Denis-Courmont:

> Le samedi 17 avril 2010 18:41:23 Tobias Güntner, vous avez écrit :
>> Am 17.04.2010 15:48, schrieb Rémi Denis-Courmont:
>>> Correction. You did not enable non-blocking mode. You had enabled
>>> non-bocking open(). In my understanding, this does not propagate  
>>> to the
>>> file descriptor; it merely prevents the open() call from blocking.  
>>> This
>>> is more commonly done with O_NDELAY (which is a synomym). It is  
>>> often
>>> combined with O_NOCTTY.
>>
>> `man 2 open` says:
>> O_NONBLOCK or O_NDELAY
>> When possible, the file is opened in non-blocking mode. Neither the
>> open() nor any subsequent operations on the file descriptor which is
>> returned will cause the calling process to wait. ...
>
> POSIX does not mention this behaviour.


 From NetBSD man 2 open:

      If the O_NONBLOCK flag is specified, do not wait for the device  
or file
      to be ready or available.  If the open() call would result in  
the process
      being blocked for some reason (e.g., waiting for carrier on a  
dialup
      line), open() returns immediately.  This flag also has the  
effect of mak-
      ing all subsequent I/O on the open file non-blocking.

      The open() function conforms to ISO/IEC 9945-1:1990 (``POSIX. 
1'').  The
      flags values O_DSYNC, O_SYNC and O_RSYNC are extensions defined  
in IEEE
      Std 1003.1b-1993 (``POSIX.1'').

      The O_SHLOCK, O_EXLOCK, and O_NOFOLLOW flags are non-standard  
extensions
      and should not be used if portability is of concern.

And that fits perfectly with my printed POSIX copy from 1995...

Cheers
	Oskar




More information about the vlc-devel mailing list