summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-08 17:24:03 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-08 17:24:03 +0000
commita00c04c650edfc9b3dc90895893feac6c3f75d46 (patch)
tree52198cf18452b5358449fddd391aabd111503827 /lib/libc/sys
parentc811cec121f681d77c2f5f37aef4fc7474c7c5fd (diff)
clean; kleink
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/getpeername.22
-rw-r--r--lib/libc/sys/getsockname.22
-rw-r--r--lib/libc/sys/shutdown.26
-rw-r--r--lib/libc/sys/socketpair.24
-rw-r--r--lib/libc/sys/vfork.22
5 files changed, 8 insertions, 8 deletions
diff --git a/lib/libc/sys/getpeername.2 b/lib/libc/sys/getpeername.2
index 6d5738014ee..b5781d3b0fe 100644
--- a/lib/libc/sys/getpeername.2
+++ b/lib/libc/sys/getpeername.2
@@ -56,7 +56,7 @@ the amount of space pointed to by
On return it contains the actual size of the name
returned (in bytes).
The name is truncated if the buffer provided is too small.
-.Sh DIAGNOSTICS
+.Sh RETURN VALUES
A 0 is returned if the call succeeds, -1 if it fails.
.Sh ERRORS
The call succeeds unless:
diff --git a/lib/libc/sys/getsockname.2 b/lib/libc/sys/getsockname.2
index 45e2f9808d1..cd9cc74f123 100644
--- a/lib/libc/sys/getsockname.2
+++ b/lib/libc/sys/getsockname.2
@@ -54,7 +54,7 @@ the amount of space pointed to by
.Fa name .
On return it contains the actual size of the name
returned (in bytes).
-.Sh DIAGNOSTICS
+.Sh RETURN VALUES
A 0 is returned if the call succeeds, -1 if it fails.
.Sh ERRORS
The call succeeds unless:
diff --git a/lib/libc/sys/shutdown.2 b/lib/libc/sys/shutdown.2
index ad75a0735dc..73c2b49d7d9 100644
--- a/lib/libc/sys/shutdown.2
+++ b/lib/libc/sys/shutdown.2
@@ -65,7 +65,7 @@ If
is
.Ar SHUT_RDWR ,
further sends and receives will be disallowed.
-.Sh DIAGNOSTICS
+.Sh RETURN VALUES
A 0 is returned if the call succeeds, -1 if it fails.
.Sh ERRORS
The call succeeds unless:
@@ -78,10 +78,10 @@ is not
or
.Ar SHUT_RDWR .
.It Bq Er EBADF
-.Fa S
+.Fa s
is not a valid descriptor.
.It Bq Er ENOTSOCK
-.Fa S
+.Fa s
is a file, not a socket.
.It Bq Er ENOTCONN
The specified socket is not connected.
diff --git a/lib/libc/sys/socketpair.2 b/lib/libc/sys/socketpair.2
index e199eaf488b..e4d00a90739 100644
--- a/lib/libc/sys/socketpair.2
+++ b/lib/libc/sys/socketpair.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: socketpair.2,v 1.3 1998/04/27 16:11:58 millert Exp $
+.\" $OpenBSD: socketpair.2,v 1.4 1998/06/08 17:24:01 deraadt Exp $
.\" $NetBSD: socketpair.2,v 1.5 1995/02/27 12:38:00 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -61,7 +61,7 @@ are returned in
and
.Fa sv Ns [1] .
The two sockets are indistinguishable.
-.Sh DIAGNOSTICS
+.Sh RETURN VALUES
A 0 is returned if the call succeeds, -1 if it fails.
.Sh ERRORS
The call succeeds unless:
diff --git a/lib/libc/sys/vfork.2 b/lib/libc/sys/vfork.2
index 8ec0edab15b..8b83d472ae4 100644
--- a/lib/libc/sys/vfork.2
+++ b/lib/libc/sys/vfork.2
@@ -73,7 +73,7 @@ the parent's context.
.Xr execve 2 ,
.Xr sigaction 2 ,
.Xr wait 2
-.Sh DIAGNOSTICS
+.Sh RETURN VALUES
Same as for
.Xr fork 2 .
.Sh BUGS