Home | History | Annotate | Download | only in sys
History log of /src/lib/libc/sys/dup.2
RevisionDateAuthorComments
 1.37  17-Jul-2025  kre Man pages for O_CLOFORK implementation

These are Ricardo Branco's man page updates for affected functions
using O_CLOFORK (and associated variants) for NetBSD (with
a few minor changes and additions by me).
 1.36  01-Nov-2024  nia libc: Expose pipe2 and dup3 to POSIX.2024 applications
 1.35  06-Jul-2024  rin dup(2): Trailing whitespace
 1.34  19-May-2024  christos Amend for oldfd == newfd returning EINVAL in dup3
 1.33  03-Jul-2017  wiz Remove workaround for ancient HTML generation code.
 1.32  21-Feb-2017  abhinav Use .Fn to refer functions instead of .Nm.
 1.31  21-Feb-2017  abhinav Fix spelling of "includes".
 1.30  25-Dec-2013  wiz branches: 1.30.8; 1.30.12;
Sort errors. Use parentheses instead of Pq in normal text.
 1.29  24-Dec-2013  dholland Rewrite for clarity and add an example.
 1.28  25-Jan-2012  christos branches: 1.28.6;
As discussed in tech-kern, provide the means to prevent delivery of SIGPIPE
on EPIPE for all file descriptor types:

- provide O_NOSIGPIPE for open,kqueue1,pipe2,dup3,fcntl(F_{G,S}ETFL) [NetBSD]
- provide SOCK_NOSIGPIPE for socket,socketpair [NetBSD]
- provide SO_NOSIGPIPE for {g,s}seckopt [NetBSD/FreeBSD/MacOSX]
- provide F_{G,S}ETNOSIGPIPE for fcntl [MacOSX]
 1.27  22-Jul-2011  wiz branches: 1.27.2;
Consistently mark up defined values with Dv.
 1.26  16-Jul-2011  jruoho Note that dup2(2) and dup3(2) may not fail with EMFILE; from PR lib/45148.
 1.25  15-Jul-2011  christos mention EINVAL.
 1.24  15-Jul-2011  jruoho Small markup glitch.
 1.23  27-Jun-2011  wiz Various minor improvements.
 1.22  26-Jun-2011  christos * Arrange for interfaces that create new file descriptors to be able to
set close-on-exec on creation (http://udrepper.livejournal.com/20407.html).

- Add F_DUPFD_CLOEXEC to fcntl(2).
- Add MSG_CMSG_CLOEXEC to recvmsg(2) for unix file descriptor passing.
- Add dup3(2) syscall with a flags argument for O_CLOEXEC, O_NONBLOCK.
- Add pipe2(2) syscall with a flags argument for O_CLOEXEC, O_NONBLOCK.
- Add flags SOCK_CLOEXEC, SOCK_NONBLOCK to the socket type parameter
for socket(2) and socketpair(2).
- Add new paccept(2) syscall that takes an additional sigset_t to alter
the sigmask temporarily and a flags argument to set SOCK_CLOEXEC,
SOCK_NONBLOCK.
- Add new mode character 'e' to fopen(3) and popen(3) to open pipes
and file descriptors for close on exec.
- Add new kqueue1(2) syscall with a new flags argument to open the
kqueue file descriptor with O_CLOEXEC, O_NONBLOCK.

* Fix the system calls that take socklen_t arguments to actually do so.

* Don't include userland header files (signal.h) from system header files
(rump_syscallargs.h).

* Bump libc version for the new syscalls.
 1.21  11-Jan-2009  christos merge christos-time_t
 1.20  02-Dec-2008  christos correct EBADF bogus comment.
 1.19  09-Feb-2008  dholland branches: 1.19.12;
Document the behavior of dup2 when oldfd == newfd: nothing happens.
Suggested by the patches in PR bin/36551 from Greg A. Woods.
 1.18  13-May-2004  wiz branches: 1.18.16;
\- is a minus, not -.
 1.17  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.16  16-Apr-2003  wiz Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
 1.15  18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.14  01-Oct-2002  wiz New sentence, new line. From Robert Elz.
 1.13  08-Feb-2002  ross Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.12  16-Sep-2001  wiz Sort sections, sort SEE ALSO, punctuation and miscellanous fixes.
 1.11  16-Sep-2001  wiz Boring whitespace fixes.
 1.10  02-Dec-1999  kleink branches: 1.10.6;
Add a LIBRARY section to system call manual pages. While it's clear that the
libraries contain stubs only (with minor exceptions a la pipe(2)), the purpose
of this section is to provide linkage information.
 1.9  22-Mar-1999  garbled branches: 1.9.6;
Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Wheee!
 1.8  29-Aug-1998  lukem first pass at fixing up capitalization of function names and
arguments; ensure that each is correct with respect to the
implementation, rather than being correct as per english.
 1.7  14-Jul-1997  kleink Add missing `STANDARDS' compliance statements. As we #define _POSIX_VERSION
to 199009L, bump existing statements to 1003.1-1990.
 1.6  06-Jun-1997  mikel getdtablesize(2) -> getdtablesize(3)
 1.5  16-May-1997  kleink Update standards conformance.
 1.4  27-Feb-1995  cgd merge with lite, keeping most local changes. clean up Ids
 1.3  25-Nov-1993  jtc Clean up manpages:
Use .Fn rather than .Nm macro in HISTORY and STANDARDS sections.
Use .At and .St macros instead of spelling out "Version 6 UNIX",
"IEEE 1003.1-1988 (POSIX)", etc.
 1.2  01-Aug-1993  mycroft Add RCS indentifiers.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  27-Feb-1995  cgd from Lite
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9.6.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.10.6.4  18-Oct-2002  nathanw Catch up to -current.
 1.10.6.3  22-Mar-2002  nathanw Catch up to -current.
 1.10.6.2  08-Mar-2002  nathanw Catch up to -current.
 1.10.6.1  08-Oct-2001  nathanw Catch up to -current.
 1.18.16.1  23-Mar-2008  matt sync with HEAD
 1.19.12.1  04-Jan-2009  christos merge with head.
 1.27.2.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.27.2.1  17-Apr-2012  yamt sync with head
 1.28.6.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.30.12.1  21-Apr-2017  bouyer Sync with HEAD
 1.30.8.1  20-Mar-2017  pgoyette Sync with HEAD

RSS XML Feed