Home | History | Annotate | Download | only in sys
History log of /src/lib/libc/sys/socketpair.2
RevisionDateAuthorComments
 1.26  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.25  29-Nov-2022  uwe branches: 1.25.4;
socketpair(2): Formatting nits
 1.24  29-Nov-2022  jschauma document the only supported type protocol, document type flags

This uses language taken from OpenBSD's manual page.
 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  20-Dec-2009  wiz Sort ERRORS.
 1.20  19-Dec-2009  pooka Remove note about portability, since PF_UNSPEC will cause socketpair()
to EAFNOSUPPORT on NetBSD(!). Additionally, at least slowaris and
linux talk only about PF_LOCAL. Finally, since I'm reading a NetBSD
man page, I foremost care about the code working on NetBSD.
 1.19  13-May-2004  wiz \- is a minus, not -.
 1.18  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.17  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.16  18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.15  17-Aug-2002  yamt bring in a note about portability from openbsd.
 1.14  08-Feb-2002  ross Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
 1.13  16-Oct-2001  kleink Remove inclusion of <sys/types.h> from synopsis; it is no longer needed.
 1.12  16-Sep-2001  wiz Sort sections, sort SEE ALSO, punctuation and miscellanous fixes.
 1.11  02-Dec-1999  kleink branches: 1.11.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.10  06-Jul-1999  darrenr branches: 1.10.4;
EOPNOTSUPP was incorrectly spelt as EOPNOSUPPORT
add ENFILE to list of errors.
 1.9  22-Mar-1999  garbled 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  09-Mar-1999  ross More missing .El's.
 1.7  07-Jun-1998  enami Rename section DIAGNOSTICS to RETURN VALUES as descirbed in mdoc.samples(7).
While I'm here, sort some SEE ALSO section and uncapitalize symbol name.
 1.6  28-Apr-1998  fair Change occurrences of "UNIX" to .Ux or .At as appropriate.
 1.5  27-Feb-1995  cgd merge with lite, keeping most local changes. clean up Ids
 1.4  29-Nov-1993  jtc Use "Er" for argument to -width in the lists in the ERROR sections --- so
the formatting is consistant.
 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.10.4.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.11.6.5  27-Aug-2002  nathanw Catch up to -current.
 1.11.6.4  22-Mar-2002  nathanw Catch up to -current.
 1.11.6.3  08-Mar-2002  nathanw Catch up to -current.
 1.11.6.2  14-Nov-2001  nathanw Catch up to -current.
 1.11.6.1  08-Oct-2001  nathanw Catch up to -current.
 1.25.4.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed