summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2015-05-31 23:54:25 +0000
committerschwarze <schwarze@openbsd.org>2015-05-31 23:54:25 +0000
commit440772ed2ede4c40821b71648853302ed334a72b (patch)
tree118d4800d002ca472c33a6d042173dc4779e3cb3 /lib
parentdoes not need syslog.h (diff)
downloadwireguard-openbsd-440772ed2ede4c40821b71648853302ed334a72b.tar.xz
wireguard-openbsd-440772ed2ede4c40821b71648853302ed334a72b.zip
Simple macro fixes (Fd -> In, Nm -> Fn) from Kaspars at Bankovskis dot net.
No content change.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/getdtablecount.210
-rw-r--r--lib/libc/sys/getthrid.212
-rw-r--r--lib/libc/sys/mkfifo.210
-rw-r--r--lib/libc/sys/nanosleep.28
-rw-r--r--lib/libc/sys/nfssvc.210
-rw-r--r--lib/libc/sys/pathconf.226
-rw-r--r--lib/libc/sys/readlink.212
-rw-r--r--lib/libc/sys/revoke.212
-rw-r--r--lib/libc/sys/setsid.214
-rw-r--r--lib/libc/sys/sigaltstack.210
-rw-r--r--lib/libc/sys/sigpending.210
-rw-r--r--lib/libc/sys/sigsuspend.26
12 files changed, 70 insertions, 70 deletions
diff --git a/lib/libc/sys/getdtablecount.2 b/lib/libc/sys/getdtablecount.2
index bb7cd2edd43..311c52a89f0 100644
--- a/lib/libc/sys/getdtablecount.2
+++ b/lib/libc/sys/getdtablecount.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getdtablecount.2,v 1.4 2014/01/26 22:27:31 tedu Exp $
+.\" $OpenBSD: getdtablecount.2,v 1.5 2015/05/31 23:54:25 schwarze Exp $
.\"
.\" Copyright (c) 2012 Theo de Raadt
.\"
@@ -14,18 +14,18 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: January 26 2014 $
+.Dd $Mdocdate: May 31 2015 $
.Dt GETDTABLECOUNT 2
.Os
.Sh NAME
.Nm getdtablecount
.Nd get descriptor table count
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn getdtablecount void
.Sh DESCRIPTION
-.Nm
+.Fn getdtablecount
returns the number of file descriptors the process currently has
open.
.Sh SEE ALSO
@@ -33,6 +33,6 @@ open.
.Xr getdtablesize 3
.Sh HISTORY
The
-.Nm
+.Fn getdtablecount
function appeared in
.Ox 5.2 .
diff --git a/lib/libc/sys/getthrid.2 b/lib/libc/sys/getthrid.2
index 9caa38a9571..8f639f8c21d 100644
--- a/lib/libc/sys/getthrid.2
+++ b/lib/libc/sys/getthrid.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getthrid.2,v 1.2 2014/08/31 06:41:23 jmc Exp $
+.\" $OpenBSD: getthrid.2,v 1.3 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: getpid.2,v 1.5 1995/02/27 12:33:12 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,18 +30,18 @@
.\"
.\" @(#)getpid.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: August 31 2014 $
+.Dd $Mdocdate: May 31 2015 $
.Dt GETTHRID 2
.Os
.Sh NAME
.Nm getthrid
.Nd get thread identifier
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft pid_t
.Fn getthrid void
.Sh DESCRIPTION
-.Nm
+.Fn getthrid
returns the thread ID of the calling thread.
This is used in the implementation of the thread library
.Pq Fl lpthread
@@ -69,12 +69,12 @@ reserved to indicate an error.
.Xr pthread_self 3
.Sh STANDARDS
The
-.Nm
+.Fn getthrid
syscall is specific to
.Ox
and should not be used in portable applications.
.Sh HISTORY
The
-.Nm
+.Fn getthrid
syscall appeared in
.Ox 3.9 .
diff --git a/lib/libc/sys/mkfifo.2 b/lib/libc/sys/mkfifo.2
index 88027ccf8cb..3ccc36d471f 100644
--- a/lib/libc/sys/mkfifo.2
+++ b/lib/libc/sys/mkfifo.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mkfifo.2,v 1.14 2015/01/19 15:54:11 millert Exp $
+.\" $OpenBSD: mkfifo.2,v 1.15 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: mkfifo.2,v 1.8 1995/02/27 12:34:27 cgd Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)mkfifo.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: May 31 2015 $
.Dt MKFIFO 2
.Os
.Sh NAME
@@ -169,13 +169,13 @@ file descriptor references.
.Xr umask 2
.Sh STANDARDS
The
-.Nm mkfifo
+.Fn mkfifo
and
-.Nm mkfifoat
+.Fn mkfifoat
functions conform to
.St -p1003.1-2008 .
.Sh HISTORY
The
-.Nm mkfifoat
+.Fn mkfifoat
function appeared in
.Ox 5.0 .
diff --git a/lib/libc/sys/nanosleep.2 b/lib/libc/sys/nanosleep.2
index 9089d62735d..062597e4163 100644
--- a/lib/libc/sys/nanosleep.2
+++ b/lib/libc/sys/nanosleep.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: nanosleep.2,v 1.14 2013/07/17 05:42:11 schwarze Exp $
+.\" $OpenBSD: nanosleep.2,v 1.15 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: nanosleep.2,v 1.1 1997/04/17 18:12:02 jtc Exp $
.\"
.\" Copyright (c) 1986, 1991, 1993
@@ -30,14 +30,14 @@
.\"
.\" @(#)sleep.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: July 17 2013 $
+.Dd $Mdocdate: May 31 2015 $
.Dt NANOSLEEP 2
.Os
.Sh NAME
.Nm nanosleep
.Nd high resolution sleep
.Sh SYNOPSIS
-.Fd #include <time.h>
+.In time.h
.Ft int
.Fn nanosleep "const struct timespec *timeout" "struct timespec *remainder"
.Sh DESCRIPTION
@@ -72,7 +72,7 @@ function shall return \-1 and set
to the corresponding value.
.Bl -tag -width Er
.It Bq Er EINTR
-.Nm
+.Fn nanosleep
was interrupted by the delivery of a signal.
.It Bq Er EINVAL
.Fa timeout
diff --git a/lib/libc/sys/nfssvc.2 b/lib/libc/sys/nfssvc.2
index a9088f1f3ea..68fe1c1ab79 100644
--- a/lib/libc/sys/nfssvc.2
+++ b/lib/libc/sys/nfssvc.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: nfssvc.2,v 1.22 2014/12/16 00:06:49 schwarze Exp $
+.\" $OpenBSD: nfssvc.2,v 1.23 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: nfssvc.2,v 1.6 1995/02/27 12:35:08 cgd Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)nfssvc.2 8.1 (Berkeley) 6/9/93
.\"
-.Dd $Mdocdate: December 16 2014 $
+.Dd $Mdocdate: May 31 2015 $
.Dt NFSSVC 2
.Os
.Sh NAME
@@ -94,7 +94,7 @@ struct nfsd_args {
.Ed
.Sh RETURN VALUES
Normally
-.Nm nfssvc
+.Fn nfssvc
does not return unless the server
is terminated by a signal when a value of 0 is returned.
Otherwise, \-1 is returned and the global variable
@@ -114,12 +114,12 @@ unsupported bits.
.Xr sysctl 8
.Sh HISTORY
The
-.Nm nfssvc
+.Fn nfssvc
function first appeared in
.Bx 4.4 .
.Sh BUGS
The
-.Nm nfssvc
+.Fn nfssvc
system call is designed specifically for the NFS
support daemons and as such is specific to their requirements.
Several fields of the argument structures are assumed to be valid and
diff --git a/lib/libc/sys/pathconf.2 b/lib/libc/sys/pathconf.2
index ad345d7211f..5a5b909e593 100644
--- a/lib/libc/sys/pathconf.2
+++ b/lib/libc/sys/pathconf.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pathconf.2,v 1.22 2015/01/19 15:54:11 millert Exp $
+.\" $OpenBSD: pathconf.2,v 1.23 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: pathconf.2,v 1.2 1995/02/27 12:35:22 cgd Exp $
.\"
.\" Copyright (c) 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)pathconf.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: May 31 2015 $
.Dt PATHCONF 2
.Os
.Sh NAME
@@ -38,7 +38,7 @@
.Nm fpathconf
.Nd get configurable pathname variables
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft long
.Fn pathconf "const char *path" "int name"
.Ft long
@@ -53,12 +53,12 @@ value of a configurable system limit or option variable associated
with a pathname or file descriptor.
.Pp
For
-.Nm pathconf ,
+.Fn pathconf ,
the
.Fa path
argument is the name of a file or directory.
For
-.Nm fpathconf ,
+.Fn fpathconf ,
the
.Fa fd
argument is an open file descriptor.
@@ -134,9 +134,9 @@ The resolution in nanoseconds of file timestamps.
.El
.Sh RETURN VALUES
If the call to
-.Nm pathconf
+.Fn pathconf
or
-.Nm fpathconf
+.Fn fpathconf
is not successful, \-1 is returned and
.Va errno
is set appropriately.
@@ -147,9 +147,9 @@ is not modified.
Otherwise, the current variable value is returned.
.Sh ERRORS
If any of the following conditions occur, the
-.Nm pathconf
+.Fn pathconf
and
-.Nm fpathconf
+.Fn fpathconf
functions shall return \-1 and set
.Va errno
to the corresponding value.
@@ -202,15 +202,15 @@ is not a valid open file descriptor.
.Xr sysctl 3
.Sh STANDARDS
The
-.Nm pathconf
+.Fn pathconf
and
-.Nm fpathconf
+.Fn fpathconf
functions conform to
.St -p1003.1-2008 .
.Sh HISTORY
The
-.Nm pathconf
+.Fn pathconf
and
-.Nm fpathconf
+.Fn fpathconf
functions first appeared in
.Bx 4.4 .
diff --git a/lib/libc/sys/readlink.2 b/lib/libc/sys/readlink.2
index 376b9a71064..8b64a73443b 100644
--- a/lib/libc/sys/readlink.2
+++ b/lib/libc/sys/readlink.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: readlink.2,v 1.18 2015/01/19 15:54:11 millert Exp $
+.\" $OpenBSD: readlink.2,v 1.19 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: readlink.2,v 1.7 1995/02/27 12:35:54 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)readlink.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: May 31 2015 $
.Dt READLINK 2
.Os
.Sh NAME
@@ -38,11 +38,11 @@
.Nm readlinkat
.Nd read value of a symbolic link
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft ssize_t
.Fn readlink "const char *restrict path" "char *restrict buf" "size_t bufsiz"
-.Fd #include <fcntl.h>
-.Fd #include <unistd.h>
+.In fcntl.h
+.In unistd.h
.Ft ssize_t
.Fn readlinkat "int fd" "const char *path" "char *buf" "size_t bufsiz"
.Sh DESCRIPTION
@@ -54,7 +54,7 @@ in the buffer
.Fa buf ,
which has size
.Fa bufsiz .
-.Nm readlink
+.Fn readlink
does not append a
.Dv NUL
character to
diff --git a/lib/libc/sys/revoke.2 b/lib/libc/sys/revoke.2
index 9c380a74b93..fc6aaf93d54 100644
--- a/lib/libc/sys/revoke.2
+++ b/lib/libc/sys/revoke.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: revoke.2,v 1.11 2015/01/19 15:54:11 millert Exp $
+.\" $OpenBSD: revoke.2,v 1.12 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: revoke.2,v 1.3 1995/10/12 15:41:11 jtc Exp $
.\"
.\" Copyright (c) 1993
@@ -33,19 +33,19 @@
.\"
.\" @(#)revoke.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: January 19 2015 $
+.Dd $Mdocdate: May 31 2015 $
.Dt REVOKE 2
.Os
.Sh NAME
.Nm revoke
.Nd revoke file access
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft int
.Fn revoke "const char *path"
.Sh DESCRIPTION
The
-.Nm revoke
+.Fn revoke
function invalidates all current open file descriptors in the system
for the file named by
.Fa path .
@@ -63,7 +63,7 @@ is called as if all open references to the file had been closed.
.Pp
Access to a file may be revoked only by its owner or the superuser.
The
-.Nm revoke
+.Fn revoke
function is normally used to prepare a terminal device for a new login session,
preventing any access by a previous user of the terminal.
.Sh RETURN VALUES
@@ -96,6 +96,6 @@ The caller is neither the owner of the file nor the superuser.
.Xr close 2
.Sh HISTORY
The
-.Nm revoke
+.Fn revoke
function was introduced in
.Bx 4.3 Reno .
diff --git a/lib/libc/sys/setsid.2 b/lib/libc/sys/setsid.2
index 4821574e56d..b576087b012 100644
--- a/lib/libc/sys/setsid.2
+++ b/lib/libc/sys/setsid.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: setsid.2,v 1.13 2013/05/10 05:59:37 guenther Exp $
+.\" $OpenBSD: setsid.2,v 1.14 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: setsid.2,v 1.3 1995/10/12 15:41:13 jtc Exp $
.\"
.\" Copyright (c) 1991, 1993
@@ -30,19 +30,19 @@
.\"
.\" @(#)setsid.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: May 10 2013 $
+.Dd $Mdocdate: May 31 2015 $
.Dt SETSID 2
.Os
.Sh NAME
.Nm setsid
.Nd create session and set process group ID
.Sh SYNOPSIS
-.Fd #include <unistd.h>
+.In unistd.h
.Ft pid_t
.Fn setsid "void"
.Sh DESCRIPTION
The
-.Nm setsid
+.Fn setsid
function creates a new session.
The calling process is the session leader of the new session, is the
process group leader of a new process group and has no controlling
@@ -51,12 +51,12 @@ The calling process is the only process in either the session or the
process group.
.Pp
Upon successful completion, the
-.Nm setsid
+.Fn setsid
function returns the value of the process group ID of the new process
group, which is the same as the process ID of the calling process.
.Sh ERRORS
If an error occurs,
-.Nm setsid
+.Fn setsid
returns \-1 and the global variable
.Va errno
is set to indicate the error, as follows:
@@ -73,7 +73,7 @@ ID of the calling process.
.Xr tcsetpgrp 3
.Sh STANDARDS
The
-.Nm setsid
+.Fn setsid
function is expected to be compliant with the
.St -p1003.1-2008
specification.
diff --git a/lib/libc/sys/sigaltstack.2 b/lib/libc/sys/sigaltstack.2
index 9b589bbf9ee..01f47dd4ef4 100644
--- a/lib/libc/sys/sigaltstack.2
+++ b/lib/libc/sys/sigaltstack.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sigaltstack.2,v 1.18 2014/11/15 14:41:02 bentley Exp $
+.\" $OpenBSD: sigaltstack.2,v 1.19 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: sigaltstack.2,v 1.3 1995/02/27 10:41:52 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1992, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)sigaltstack.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: November 15 2014 $
+.Dd $Mdocdate: May 31 2015 $
.Dt SIGALTSTACK 2
.Os
.Sh NAME
@@ -62,7 +62,7 @@ the signal stack will be disabled.
A disabled stack will cause all signals to be
taken on the regular user stack.
Trying to disable an active stack will cause
-.Nm
+.Fn sigaltstack
to return \-1 with
.Va errno
set to
@@ -158,12 +158,12 @@ An attempt was made to disable an active stack.
.Xr setjmp 3
.Sh STANDARDS
The
-.Nm
+.Fn sigaltstack
function conforms to
.St -p1003.1-2008 .
.Sh HISTORY
The predecessor to
-.Nm sigaltstack ,
+.Fn sigaltstack ,
the
.Fn sigstack
system call, appeared in
diff --git a/lib/libc/sys/sigpending.2 b/lib/libc/sys/sigpending.2
index 08f8b93fc43..d422f32ab0c 100644
--- a/lib/libc/sys/sigpending.2
+++ b/lib/libc/sys/sigpending.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sigpending.2,v 1.6 2014/09/09 08:17:59 guenther Exp $
+.\" $OpenBSD: sigpending.2,v 1.7 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: sigpending.2,v 1.2 1995/02/27 12:37:26 cgd Exp $
.\"
.\" Copyright (c) 1993
@@ -33,7 +33,7 @@
.\"
.\" @(#)sigpending.2 8.3 (Berkeley) 1/12/94
.\"
-.Dd $Mdocdate: September 9 2014 $
+.Dd $Mdocdate: May 31 2015 $
.Dt SIGPENDING 2
.Os
.Sh NAME
@@ -45,7 +45,7 @@
.Fn sigpending "sigset_t *set"
.Sh DESCRIPTION
The
-.Nm sigpending
+.Fn sigpending
function returns a mask of the signals pending for delivery
to the calling process in the location indicated by
.Fa set .
@@ -56,7 +56,7 @@ normally detectable).
.Rv -std
.Sh ERRORS
The
-.Nm sigpending
+.Fn sigpending
function does not currently detect any errors.
.Sh SEE ALSO
.Xr sigaction 2 ,
@@ -64,6 +64,6 @@ function does not currently detect any errors.
.Xr sigsetops 3
.Sh STANDARDS
The
-.Nm sigpending
+.Fn sigpending
function is defined by
.St -p1003.1-2008 .
diff --git a/lib/libc/sys/sigsuspend.2 b/lib/libc/sys/sigsuspend.2
index b3625eac028..5a06d6777ad 100644
--- a/lib/libc/sys/sigsuspend.2
+++ b/lib/libc/sys/sigsuspend.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sigsuspend.2,v 1.12 2014/09/09 08:17:59 guenther Exp $
+.\" $OpenBSD: sigsuspend.2,v 1.13 2015/05/31 23:54:25 schwarze Exp $
.\" $NetBSD: sigsuspend.2,v 1.4 1995/02/27 12:37:46 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)sigsuspend.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: September 9 2014 $
+.Dd $Mdocdate: May 31 2015 $
.Dt SIGSUSPEND 2
.Os
.Sh NAME
@@ -72,7 +72,7 @@ set to
.Xr sigsetops 3
.Sh STANDARDS
The
-.Nm sigsuspend
+.Fn sigsuspend
function call
conforms to
.St -p1003.1-2008 .