[patch/cygwin] O_CLOEXEC/F_DUPFD_CLOEXEC/dup3/pipe2

Eric Blake ebb9@byu.net
Thu Jan 14 20:07:00 GMT 2010


According to Corinna Vinschen on 1/14/2010 11:49 AM:
> Hi,
> 
> I applied the below patch for Cygwin only.  I just created a matching
> patch to Cygwin which adds this Linux-specific functionality.

Just a point of clarification:

> 
> 	* libc/include/sys/_default_fcntl.h (O_CLOEXEC): Define as _FNOINHERIT.
> 	(F_DUPFD_CLOEXEC): Define for Cygwin.

O_CLOEXEC and F_DUPFD_CLOEXEC are POSIX 2008.

> 	* libc/include/sys/unistd.h (dup3): Define for Cygwin.
> 	(pipe2): Ditto.

Whereas dup3 and pipe2 are Linux inventions.

-- 
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 320 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/newlib/attachments/20100114/c8b18019/attachment.sig>


More information about the Newlib mailing list