diff options
author | 2014-12-10 07:18:44 +0000 | |
---|---|---|
committer | 2014-12-10 07:18:44 +0000 | |
commit | 4df5df03b490dfd7aaf748841c7e756a243e24d5 (patch) | |
tree | c933fd07391b519cffda5f2ae88a38ca026f5d3d /lib/libc | |
parent | Improve the description and layout of the RUSAGE_* values, and do some (diff) | |
download | wireguard-openbsd-4df5df03b490dfd7aaf748841c7e756a243e24d5.tar.xz wireguard-openbsd-4df5df03b490dfd7aaf748841c7e756a243e24d5.zip |
Prefer .In and .Rv -std
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/bind.2 | 13 | ||||
-rw-r--r-- | lib/libc/sys/intro.2 | 6 | ||||
-rw-r--r-- | lib/libc/sys/kill.2 | 11 |
3 files changed, 12 insertions, 18 deletions
diff --git a/lib/libc/sys/bind.2 b/lib/libc/sys/bind.2 index 1e90b4add2b..d7df8eccb60 100644 --- a/lib/libc/sys/bind.2 +++ b/lib/libc/sys/bind.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: bind.2,v 1.18 2013/07/17 05:42:11 schwarze Exp $ +.\" $OpenBSD: bind.2,v 1.19 2014/12/10 07:18:44 guenther Exp $ .\" $NetBSD: bind.2,v 1.8 1995/10/12 15:40:46 jtc Exp $ .\" .\" Copyright (c) 1983, 1993 @@ -30,14 +30,14 @@ .\" .\" @(#)bind.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: July 17 2013 $ +.Dd $Mdocdate: December 10 2014 $ .Dt BIND 2 .Os .Sh NAME .Nm bind .Nd bind a name to a socket .Sh SYNOPSIS -.Fd #include <sys/socket.h> +.In sys/socket.h .Ft int .Fn bind "int s" "const struct sockaddr *name" "socklen_t namelen" .Sh DESCRIPTION @@ -64,14 +64,11 @@ when it is no longer needed (using The rules used in name binding vary between communication domains. Consult the manual entries in section 4 for detailed information. .Sh RETURN VALUES -If the bind is successful, a 0 value is returned. -A return value of \-1 indicates an error, which is -further specified in the global -.Va errno . +.Rv -std .Sh ERRORS The .Fn bind -call will fail if: +function will fail if: .Bl -tag -width Er .It Bq Er EBADF .Fa s diff --git a/lib/libc/sys/intro.2 b/lib/libc/sys/intro.2 index 7e4ef87c04f..2945eda30b9 100644 --- a/lib/libc/sys/intro.2 +++ b/lib/libc/sys/intro.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: intro.2,v 1.52 2014/11/15 14:41:02 bentley Exp $ +.\" $OpenBSD: intro.2,v 1.53 2014/12/10 07:18:44 guenther Exp $ .\" $NetBSD: intro.2,v 1.6 1995/02/27 12:33:41 cgd Exp $ .\" .\" Copyright (c) 1980, 1983, 1986, 1991, 1993 @@ -30,14 +30,14 @@ .\" .\" @(#)intro.2 8.3 (Berkeley) 12/11/93 .\" -.Dd $Mdocdate: November 15 2014 $ +.Dd $Mdocdate: December 10 2014 $ .Dt INTRO 2 .Os .Sh NAME .Nm intro .Nd introduction to system calls and error numbers .Sh SYNOPSIS -.Fd #include <errno.h> +.In errno.h .Sh DESCRIPTION The manual pages in section 2 provide an overview of the system calls, their error returns, and other common definitions and concepts. diff --git a/lib/libc/sys/kill.2 b/lib/libc/sys/kill.2 index 4cc66f3052d..964d15fd688 100644 --- a/lib/libc/sys/kill.2 +++ b/lib/libc/sys/kill.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: kill.2,v 1.20 2013/07/17 05:42:11 schwarze Exp $ +.\" $OpenBSD: kill.2,v 1.21 2014/12/10 07:18:44 guenther Exp $ .\" $NetBSD: kill.2,v 1.7 1995/02/27 12:33:53 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,14 +30,14 @@ .\" .\" @(#)kill.2 8.3 (Berkeley) 4/19/94 .\" -.Dd $Mdocdate: July 17 2013 $ +.Dd $Mdocdate: December 10 2014 $ .Dt KILL 2 .Os .Sh NAME .Nm kill .Nd send signal to a process .Sh SYNOPSIS -.Fd #include <signal.h> +.In signal.h .Ft int .Fn kill "pid_t pid" "int sig" .Sh DESCRIPTION @@ -112,10 +112,7 @@ is equal to the absolute value of the process number. This is a variant of .Xr killpg 3 . .Sh RETURN VALUES -Upon successful completion, a value of 0 is returned. -Otherwise, a value of \-1 is returned and -.Va errno -is set to indicate the error. +.Rv -std .Sh ERRORS .Fn kill will fail and no signal will be sent if: |