summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-03-19 22:10:50 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-03-19 22:10:50 +0000
commit0ba70e55cf53116ebbac3337e31aac614897fbf1 (patch)
tree6c7821350bf7d20f96eb591715d1033f480b43ad /lib/libc
parent92428674bb2a6ef3fd6d45042f5e2ac81229583f (diff)
Add STANDARDS and HISTORY blurbs for SOCK_{NONBLOCK,CLOEXEC,DNS}
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/socket.225
-rw-r--r--lib/libc/sys/socketpair.215
2 files changed, 36 insertions, 4 deletions
diff --git a/lib/libc/sys/socket.2 b/lib/libc/sys/socket.2
index af3147ed3c2..516104f6e52 100644
--- a/lib/libc/sys/socket.2
+++ b/lib/libc/sys/socket.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: socket.2,v 1.40 2015/10/20 18:11:53 deraadt Exp $
+.\" $OpenBSD: socket.2,v 1.41 2016/03/19 22:10:49 guenther Exp $
.\" $NetBSD: socket.2,v 1.5 1995/02/27 12:37:53 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)socket.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: October 20 2015 $
+.Dd $Mdocdate: March 19 2016 $
.Dt SOCKET 2
.Os
.Sh NAME
@@ -279,8 +279,29 @@ The
.Fn socket
function conforms to
.St -p1003.1-2008 .
+The
+.Dv SOCK_CLOEXEC
+and
+.Dv SOCK_NONBLOCK
+flags are expected to conform to a future revision of that standard.
+.Pp
+The
+.Dv SOCK_DNS
+flag is an
+.Ox
+extension.
.Sh HISTORY
The
.Fn socket
system call first appeared in
.Bx 4.1c .
+Support for the
+.Dv SOCK_CLOEXEC
+and
+.Dv SOCK_NONBLOCK
+flags appeared in
+.Ox 5.7 .
+Support for the
+.Dv SOCK_DNS
+flag appeared in
+.Ox 5.9 .
diff --git a/lib/libc/sys/socketpair.2 b/lib/libc/sys/socketpair.2
index 8caa289abb8..4e24dff8227 100644
--- a/lib/libc/sys/socketpair.2
+++ b/lib/libc/sys/socketpair.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: socketpair.2,v 1.18 2014/12/14 07:42:50 schwarze Exp $
+.\" $OpenBSD: socketpair.2,v 1.19 2016/03/19 22:10:49 guenther Exp $
.\" $NetBSD: socketpair.2,v 1.5 1995/02/27 12:38:00 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)socketpair.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: December 14 2014 $
+.Dd $Mdocdate: March 19 2016 $
.Dt SOCKETPAIR 2
.Os
.Sh NAME
@@ -103,11 +103,22 @@ The
.Fn socketpair
function conforms to
.St -p1003.1-2008 .
+The
+.Dv SOCK_CLOEXEC
+and
+.Dv SOCK_NONBLOCK
+flags are expected to conform to a future revision of that standard.
.Sh HISTORY
The
.Fn socketpair
function call appeared in
.Bx 4.2 .
+Support for the
+.Dv SOCK_CLOEXEC
+and
+.Dv SOCK_NONBLOCK
+flags appeared in
+.Ox 5.7 .
.Sh BUGS
This call is currently implemented only for the LOCAL domain.
Many operating systems only accept a