summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/socket.2
Commit message (Collapse)AuthorAgeFilesLines
* Implement SOCK_CLOEXEC, SOCK_NONBLOCK and MSG_CMSG_CLOEXEC.jilles2013-03-191-1/+10
| | | | | | | | | | | | | | | | | | | This change allows creating file descriptors with close-on-exec set in some situations. SOCK_CLOEXEC and SOCK_NONBLOCK can be OR'ed in socket() and socketpair()'s type parameter, and MSG_CMSG_CLOEXEC to recvmsg() makes file descriptors (SCM_RIGHTS) atomically close-on-exec. The numerical values for SOCK_CLOEXEC and SOCK_NONBLOCK are as in NetBSD. MSG_CMSG_CLOEXEC is the first free bit for MSG_*. The SOCK_* flags are not passed to MAC because this may cause incorrect failures and can be done later via fcntl() anyway. On the other hand, audit is expected to cope with the new flags. For MSG_CMSG_CLOEXEC, unp_externalize() is extended to take a flags argument. Reviewed by: kib
* Document that socket(2) may fail with EAFNOSUPPORT if the family cannotkevlo2012-12-071-7/+12
| | | | | | | be found. Reviewed by: glebius Obtained from: NetBSD
* Note that the protocol argument can be set to 0.trhodes2009-01-051-1/+6
| | | | | PR: 127890 Reviewed by: rwatson
* Add EPERM to the ERRORS section.trhodes2008-08-041-1/+3
| | | | PR: 125746
* Make it clearer that it is possible to disable the generation ofdas2008-06-291-4/+4
| | | | | | SIGPIPE for individual sockets (PR: kern/118626). While here, s/insure/ensure/.
* Per Regents of the University of Calfornia letter, remove advertisingimp2007-01-091-4/+0
| | | | | | clause. # If I've done so improperly on a file, please let me know.
* Mechanically kill hard sentence breaks.ru2004-07-021-9/+17
|
* mdoc(7): Properly mark C headers.ru2003-09-101-2/+2
|
* The .Fn functioncharnier2003-03-241-2/+3
| | | | The ... 2 system call
* Remove NS and ISO stuff.peter2003-03-051-20/+1
|
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-1/+1
| | | | especially in troff files.
* english(4) police.schweikh2002-12-271-1/+1
|
* mdoc(7) police: "The .Fa argument.".ru2002-12-191-1/+2
|
* mdoc(7) police: Tidy up the syscall language.ru2002-12-181-7/+9
| | | | | | | | | | Stop calling system calls "function calls". Use "The .Fn system call" a-la "The .Nm utility". When referring to a non-BSD implementation in the HISTORY section, call syscall a function, to be safe.
* Features are deprecated, not depreciated.dd2002-03-181-1/+1
| | | | | PR: 35987 Submitted by: shill@free.fr
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-011-2/+2
|
* Remove whitespace at EOL.dd2001-07-151-3/+3
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Correct descriptions of SOCK_RDM and SOCK_SEQPACKET.dd2001-03-161-2/+2
| | | | | | PR: 25797 Submitted by: Yuko Sasaki <yuko@veltec.co.jp> Approved by: nik
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-1/+1
|
* Prepare for mdoc(7)NG.ru2000-12-291-1/+3
|
* mdoc(7) police: Er macro usage cleanup.ru2000-11-221-1/+1
|
* Use `Er' variable to define first column width in ERRORS section. It wasphantom2000-05-041-1/+1
| | | | initially suggested by mdoc(7) style, but was broken over the years
* Introduce ".Lb" macro to libc manpages.phantom2000-04-211-0/+2
| | | | More libraries manpages updates following.
* Add reference to netgraph(4) in the 'see also' section.archie1999-12-061-0/+1
|
* General clean-up of socket.h and associated sources to synchronise upphk1999-11-241-12/+39
| | | | | | | | | | | | with NetBSD and the Single Unix Specification v2. This updates some structures with other, almost equivalent types and effort is under way to get the whole more consistent. Also removes a double definition of INET6 and some other clean-ups. Reviewed by: green, bde, phk Some part obtained from: NetBSD, SUSv2 specification
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Expanded cross references.alex1998-01-021-2/+3
|
* Fixed spelling of EACCES.bde1997-11-231-3/+3
|
* add xrefs for getpeername, so other people that look for it can find it.. :)jmg1997-03-241-1/+2
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Sort cross references.wosch1997-01-201-2/+2
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Correctly use .Fn instead of .Nm to reference function namesmpp1996-08-221-2/+2
| | | | | | | | in a bunch of man pages. Use the correct .Bx (BSD UNIX) or .At (AT&T UNIX) macros instead of explicitly specifying the version in the text in a bunch of man pages.
* Document Transaction TCP extensions to generic system calls.wollman1995-02-151-11/+24
|
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+257
OpenPOWER on IntegriCloud