dup3 syscall - atomic set O_CLOEXEC with dup2
Ed Schouten
ed at 80386.nl
Thu Jan 12 09:56:58 UTC 2012
Hello Eitan,
* Eitan Adler <lists at eitanadler.com>, 20120112 06:01:
> This is an implementation of dup3 for FreeBSD:
> man page here (with a FreeBSD patch coming soon):
> https://www.kernel.org/doc/man-pages/online/pages/man2/dup.2.html
>
> Is this implementation correct? If so any objection to adding this as
> a supported syscall?
I suspect that not long after we add dup3(), some random person asks us
to implement F_DUP3FD. Any chance you can implement this without using a
system call, but through fcntl()?
Thanks,
--
Ed Schouten <ed at 80386.nl>
WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20120112/f36a0231/attachment.pgp
More information about the freebsd-hackers
mailing list