[oi-dev] [developer] Which Illumos version added F_DUP2FD_CLOEXEC/F_DUP2FD_CLOEXEC?
Lionel Cons
lionelcons1972 at gmail.com
Thu Nov 14 12:16:54 UTC 2013
On 14 November 2013 13:09, Marcel Telka <marcel at telka.sk> wrote:
> On Thu, Nov 14, 2013 at 12:42:38PM +0100, Lionel Cons wrote:
>> Does anyone remember which Illumos version added F_DUP2FD_CLOEXEC and
>> F_DUP2FD_CLOEXEC?
>>
>> #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 */
>
> The values used in illumos are a bit different, but generally:
>
> $ git annotate usr/src/uts/common/sys/fcntl.h | grep DUP.*CLOEXEC
> 5dbfd19a (Theo Schlossnagle 2013-04-11 04:50:36 +0000 123)#define F_DUP2FD_CLOEXEC 36 /* Like F_DUP2FD with O_CLOEXEC set */
> 5dbfd19a (Theo Schlossnagle 2013-04-11 04:50:36 +0000 125)#define F_DUPFD_CLOEXEC 37 /* Like F_DUPFD with O_CLOEXEC set */
> $
Thanks
To which Openindiana version does '5dbfd19a' translate to? oi_151a7
doesn't have these flags in /usr/include/sys/fcntl.h
Lionel
More information about the oi-dev
mailing list