summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorroam <roam@FreeBSD.org>2003-09-05 15:41:52 +0000
committerroam <roam@FreeBSD.org>2003-09-05 15:41:52 +0000
commit8106d775c19fa04e65187624dbeea6626a3ab519 (patch)
tree01840489b5dce1e4a1433495e8f16e862d65e4c7 /lib
parent3a2d1f68230d5564f43559d62bb9fc5f801180f5 (diff)
downloadFreeBSD-src-8106d775c19fa04e65187624dbeea6626a3ab519.zip
FreeBSD-src-8106d775c19fa04e65187624dbeea6626a3ab519.tar.gz
Clarify that the second argument to accept() may be a null pointer if
no peer address information is desired. PR: 56044 Submitted by: Felix Opatz <felix@zotteljedi.de> and Bernd Luevelsmeyer <bdluevel@heitec.net> MFC after: 1 month
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/accept.28
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libc/sys/accept.2 b/lib/libc/sys/accept.2
index 2f86735..e2e3e05 100644
--- a/lib/libc/sys/accept.2
+++ b/lib/libc/sys/accept.2
@@ -86,7 +86,13 @@ The exact format of the
.Fa addr
argument is determined by the domain in which the communication
is occurring.
-The
+A null pointer may be specified for
+.Fa addr
+if the address information is not desired;
+in this case,
+.Fa addrlen
+is not used and should also be null.
+Otherwise, the
.Fa addrlen
argument
is a value-result argument; it should initially contain the
OpenPOWER on IntegriCloud