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.

-- 
        -Alan Coopersmith-              [email protected]
         Oracle Solaris Engineering - http://blogs.oracle.com/alanc
_______________________________________________
security-discuss mailing list
[email protected]

Reply via email to