Alan Coopersmith <[email protected]> wrote:

> On 06/17/12 03:00 PM, ?????????? ???????????????????????? wrote:
> > Alan, I don't see F_DUPFD_CLOEXEC and F_DUP2FD_CLOEXEC in my Solaris 11.
>
> Are you running Solaris 11 11/11 (build 175b)?
>
> % grep CLOEXEC /usr/include/sys/fcntl.h
> #define       O_CLOEXEC       0x800000  /* open() sets the close on exec flag 
> */
> #define       F_DUPFD_CLOEXEC 47      /* Duplicate fildes and set 
> close-on-exec */
> #define       F_DUP2FD_CLOEXEC 48     /* Dup fd at 3rd arg and set 
> close-on-exec */
> #define       FD_CLOEXEC      1       /* close on exec flag */
>
> and "man fcntl" shows them as well.    They were added in snv_153 in the same
> changeset as open's O_CLOEXEC flag, so wouldn't be in S11 Express 2010.11 
> (151a).
>
> > Linux doesn't seem to have F_DUP2FD_CLOEXEC.
>
> Does it have F_DUP2FD?   According to the CR for that change, both F_DUPFD &
> F_DUPFD_CLOEXEC are defined by POSIX, but F_DUP2FD & F_DUP2FD_CLOEXEC are
> non-standard extensions.

It would be interesting to see what Oracle does with dup3().....

Do you plan to add another parameter to fcntl()?

Jörg

-- 
 EMail:[email protected] (home) Jörg Schilling D-13353 Berlin
       [email protected]                (uni)  
       [email protected] (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
security-discuss mailing list
[email protected]

Reply via email to