summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc/net/rcmdsh.38
-rw-r--r--lib/libc/sys/bind.214
-rw-r--r--lib/libc/sys/connect.211
-rw-r--r--lib/libc/sys/getpeereid.216
-rw-r--r--lib/libc/sys/getsockname.28
-rw-r--r--lib/libc/sys/write.28
-rw-r--r--usr.sbin/inetd/inetd.811
-rw-r--r--usr.sbin/lpr/lpd/lpd.88
8 files changed, 44 insertions, 40 deletions
diff --git a/lib/libc/net/rcmdsh.3 b/lib/libc/net/rcmdsh.3
index 07a28beebaa..f7de0808f55 100644
--- a/lib/libc/net/rcmdsh.3
+++ b/lib/libc/net/rcmdsh.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rcmdsh.3,v 1.12 2007/05/31 19:19:30 jmc Exp $
+.\" $OpenBSD: rcmdsh.3,v 1.13 2009/12/29 10:25:43 sobrado Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: December 29 2009 $
.Dt RCMDSH 3
.Os
.Sh NAME
@@ -70,8 +70,8 @@ is ignored; it is only included to provide an interface similar to
.Xr rcmd 3 .
.Pp
If the connection succeeds, a socket in the
-.Tn UNIX
-domain of type
+.Ux Ns -domain
+of type
.Dv SOCK_STREAM
is returned to the caller, and given to the remote
command as stdin and stdout, and stderr.
diff --git a/lib/libc/sys/bind.2 b/lib/libc/sys/bind.2
index 5d35a4e77f2..b47a0f69161 100644
--- a/lib/libc/sys/bind.2
+++ b/lib/libc/sys/bind.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: bind.2,v 1.15 2007/05/31 19:19:32 jmc Exp $
+.\" $OpenBSD: bind.2,v 1.16 2009/12/29 10:25:43 sobrado Exp $
.\" $NetBSD: bind.2,v 1.8 1995/10/12 15:40:46 jtc Exp $
.\"
.\" Copyright (c) 1983, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)bind.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: December 29 2009 $
.Dt BIND 2
.Os
.Sh NAME
@@ -56,9 +56,10 @@ indicates the amount of space pointed to by
.Fa name ,
in bytes.
.Sh NOTES
-Binding a name in the UNIX domain creates a socket in the file
-system that must be deleted by the caller when it is no longer
-needed (using
+Binding a name in the
+.Ux Ns -domain
+creates a socket in the file system that must be deleted by the caller
+when it is no longer needed (using
.Xr unlink 2 ) .
.Pp
The rules used in name binding vary between communication domains.
@@ -98,7 +99,8 @@ The
parameter is not in a valid part of the user address space.
.El
.Pp
-The following errors are specific to binding names in the UNIX domain.
+The following errors are specific to binding names in the
+.Ux Ns -domain .
.Bl -tag -width Er
.It Bq Er ENOTDIR
A component of the path prefix is not a directory.
diff --git a/lib/libc/sys/connect.2 b/lib/libc/sys/connect.2
index 16c8935769d..2869bb5ddae 100644
--- a/lib/libc/sys/connect.2
+++ b/lib/libc/sys/connect.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: connect.2,v 1.21 2007/05/31 19:19:32 jmc Exp $
+.\" $OpenBSD: connect.2,v 1.22 2009/12/29 10:25:43 sobrado Exp $
.\" $NetBSD: connect.2,v 1.8 1995/10/12 15:40:48 jtc Exp $
.\"
.\" Copyright (c) 1983, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)connect.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: December 29 2009 $
.Dt CONNECT 2
.Os
.Sh NAME
@@ -133,8 +133,11 @@ and a previous connection attempt
has not yet been completed.
.El
.Pp
-The following errors are specific to connecting names in the UNIX domain.
-These errors may not apply in future versions of the UNIX IPC domain.
+The following errors are specific to connecting names in the
+.Ux Ns -domain .
+These errors may not apply in future versions of the
+.Ux
+IPC domain.
.Bl -tag -width Er
.It Bq Er ENOTDIR
A component of the path prefix is not a directory.
diff --git a/lib/libc/sys/getpeereid.2 b/lib/libc/sys/getpeereid.2
index 305c03946b3..6db0ff8eafa 100644
--- a/lib/libc/sys/getpeereid.2
+++ b/lib/libc/sys/getpeereid.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getpeereid.2,v 1.8 2007/05/31 19:19:32 jmc Exp $
+.\" $OpenBSD: getpeereid.2,v 1.9 2009/12/29 10:25:43 sobrado Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -26,7 +26,7 @@
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: December 29 2009 $
.Dt GETPEEREID 2
.Os
.Sh NAME
@@ -41,8 +41,8 @@
.Fn getpeereid
returns the effective user ID and group ID of the peer connected to
a
-.Ux
-domain socket (see
+.Ux Ns -domain
+socket (see
.Xr unix 4 ) .
The argument
.Fa s
@@ -50,9 +50,8 @@ must be of type
.Dv SOCK_STREAM .
.Pp
One common use is for
-.Ux
-domain servers to determine the credentials
-of clients that have connected to it.
+.Ux Ns -domain
+servers to determine the credentials of clients that have connected to it.
.Pp
.Fn getpeereid
takes three parameters:
@@ -98,8 +97,7 @@ The argument
is a file, not a socket.
.It Bq Er EOPNOTSUPP
The socket is not in the
-.Ux
-domain.
+.Ux Ns -domain .
.It Bq Er ENOTCONN
The socket is not connected.
.It Bq Er ENOBUFS
diff --git a/lib/libc/sys/getsockname.2 b/lib/libc/sys/getsockname.2
index d129b0a2b99..6d6bfcd02cb 100644
--- a/lib/libc/sys/getsockname.2
+++ b/lib/libc/sys/getsockname.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getsockname.2,v 1.24 2007/05/31 19:19:32 jmc Exp $
+.\" $OpenBSD: getsockname.2,v 1.25 2009/12/29 10:25:43 sobrado Exp $
.\" $NetBSD: getsockname.2,v 1.6 1995/10/12 15:41:00 jtc Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)getsockname.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: December 29 2009 $
.Dt GETSOCKNAME 2
.Os
.Sh NAME
@@ -157,6 +157,8 @@ The
function call appeared in
.Bx 4.2 .
.Sh BUGS
-Names bound to sockets in the UNIX domain are inaccessible;
+Names bound to sockets in the
+.Ux Ns -domain
+are inaccessible;
.Nm getsockname
returns a zero length name.
diff --git a/lib/libc/sys/write.2 b/lib/libc/sys/write.2
index c93d25a8c60..6ded0b365cd 100644
--- a/lib/libc/sys/write.2
+++ b/lib/libc/sys/write.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: write.2,v 1.31 2008/12/17 09:25:35 ray Exp $
+.\" $OpenBSD: write.2,v 1.32 2009/12/29 10:25:43 sobrado Exp $
.\" $NetBSD: write.2,v 1.6 1995/02/27 12:39:43 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)write.2 8.5 (Berkeley) 4/2/94
.\"
-.Dd $Mdocdate: December 17 2008 $
+.Dd $Mdocdate: December 29 2009 $
.Dt WRITE 2
.Os
.Sh NAME
@@ -209,8 +209,8 @@ may return one of the following errors:
.Bl -tag -width Er
.It Bq Er EDESTADDRREQ
The destination is no longer available when writing to a
-.Ux
-domain datagram socket on which
+.Ux Ns -domain
+datagram socket on which
.Xr connect 2
had been used to set a destination address.
.It Bq Er EINVAL
diff --git a/usr.sbin/inetd/inetd.8 b/usr.sbin/inetd/inetd.8
index 4134844b361..ace5bb7a27f 100644
--- a/usr.sbin/inetd/inetd.8
+++ b/usr.sbin/inetd/inetd.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: inetd.8,v 1.33 2008/06/28 10:54:45 sobrado Exp $
+.\" $OpenBSD: inetd.8,v 1.34 2009/12/29 10:25:43 sobrado Exp $
.\" Copyright (c) 1985, 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -28,7 +28,7 @@
.\"
.\" from: @(#)inetd.8 6.7 (Berkeley) 3/16/91
.\"
-.Dd $Mdocdate: June 28 2008 $
+.Dd $Mdocdate: December 29 2009 $
.Dt INETD 8
.Os
.Sh NAME
@@ -168,8 +168,8 @@ This can simply be a single numeric argument or a range of versions.
A range is bounded by the low version to the high version -
.Dq rusers/1-3 .
For
-.Ux
-domain sockets this field specifies the path name of the socket.
+.Ux Ns -domain
+sockets this field specifies the path name of the socket.
.Pp
The
.Em socket type
@@ -211,8 +211,7 @@ A
of
.Dq unix
is used to specify a socket in the
-.Ux
-domain.
+.Ux Ns -domain .
.Pp
The
.Em wait/nowait
diff --git a/usr.sbin/lpr/lpd/lpd.8 b/usr.sbin/lpr/lpd/lpd.8
index a8babcfa446..6fd63dbd24a 100644
--- a/usr.sbin/lpr/lpd/lpd.8
+++ b/usr.sbin/lpr/lpd/lpd.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: lpd.8,v 1.21 2008/04/15 07:54:48 ajacoutot Exp $
+.\" $OpenBSD: lpd.8,v 1.22 2009/12/29 10:25:43 sobrado Exp $
.\" $NetBSD: lpd.8,v 1.23 2002/02/08 01:38:50 ross Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)lpd.8 8.3 (Berkeley) 4/19/94
.\"
-.Dd $Mdocdate: April 15 2008 $
+.Dd $Mdocdate: December 29 2009 $
.Dt LPD 8
.Os
.Sh NAME
@@ -130,8 +130,8 @@ flag selects
mode, in which
.Nm
does not listen on a TCP socket but only takes commands from a
-.Ux
-domain socket.
+.Ux Ns -domain
+socket.
This is valuable when the machine on which
.Nm
runs is subject to attack over the network and it is desired that the