This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]