On 08/10/12 03:30 AM, [email protected] wrote:
> 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()?
Why would we? Doesn't seem to be a need for one at the moment.
--
-Alan Coopersmith- [email protected]
Oracle Solaris Engineering - http://blogs.oracle.com/alanc
_______________________________________________
security-discuss mailing list
[email protected]