diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-12-16 00:06:50 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-12-16 00:06:50 +0000 |
commit | a6cc394d9390cbb8d3dde17da653bc669e183116 (patch) | |
tree | b338d1bd01dccfd4f6033148ed11907234b9fba5 /lib/libc/sys | |
parent | 87388fe1bd8b340b4f81e2a2db0f6a6ea749d21d (diff) |
use .In and delete .Tn; from Kaspars at Bankovskis dot net
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/chflags.2 | 12 | ||||
-rw-r--r-- | lib/libc/sys/chroot.2 | 10 | ||||
-rw-r--r-- | lib/libc/sys/fcntl.2 | 15 | ||||
-rw-r--r-- | lib/libc/sys/getdents.2 | 10 | ||||
-rw-r--r-- | lib/libc/sys/getfh.2 | 12 | ||||
-rw-r--r-- | lib/libc/sys/getfsstat.2 | 12 | ||||
-rw-r--r-- | lib/libc/sys/getsockopt.2 | 13 | ||||
-rw-r--r-- | lib/libc/sys/mkfifo.2 | 19 | ||||
-rw-r--r-- | lib/libc/sys/nfssvc.2 | 11 | ||||
-rw-r--r-- | lib/libc/sys/poll.2 | 9 | ||||
-rw-r--r-- | lib/libc/sys/quotactl.2 | 12 | ||||
-rw-r--r-- | lib/libc/sys/statfs.2 | 16 |
12 files changed, 60 insertions, 91 deletions
diff --git a/lib/libc/sys/chflags.2 b/lib/libc/sys/chflags.2 index 050c6a77214..749537c80fe 100644 --- a/lib/libc/sys/chflags.2 +++ b/lib/libc/sys/chflags.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: chflags.2,v 1.25 2014/12/10 19:19:00 schwarze Exp $ +.\" $OpenBSD: chflags.2,v 1.26 2014/12/16 00:06:49 schwarze Exp $ .\" $NetBSD: chflags.2,v 1.6 1995/02/27 12:32:03 cgd Exp $ .\" .\" Copyright (c) 1989, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)chflags.2 8.1 (Berkeley) 6/9/93 .\" -.Dd $Mdocdate: December 10 2014 $ +.Dd $Mdocdate: December 16 2014 $ .Dt CHFLAGS 2 .Os .Sh NAME @@ -169,9 +169,7 @@ The named file resides on a read-only file system. .Fa path points outside the process's allocated address space. .It Bq Er EIO -An -.Tn I/O -error occurred while reading from or writing to the file system. +An I/O error occurred while reading from or writing to the file system. .It Bq Er EINVAL The .Fa flags @@ -207,9 +205,7 @@ flags. .It Bq Er EROFS The file resides on a read-only file system. .It Bq Er EIO -An -.Tn I/O -error occurred while reading from or writing to the file system. +An I/O error occurred while reading from or writing to the file system. .El .Sh SEE ALSO .Xr chflags 1 , diff --git a/lib/libc/sys/chroot.2 b/lib/libc/sys/chroot.2 index f99f9a36551..d7e31f67dfd 100644 --- a/lib/libc/sys/chroot.2 +++ b/lib/libc/sys/chroot.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: chroot.2,v 1.19 2014/12/10 19:19:00 schwarze Exp $ +.\" $OpenBSD: chroot.2,v 1.20 2014/12/16 00:06:49 schwarze Exp $ .\" $NetBSD: chroot.2,v 1.7 1995/02/27 12:32:12 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,21 +30,19 @@ .\" .\" @(#)chroot.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: December 10 2014 $ +.Dd $Mdocdate: December 16 2014 $ .Dt CHROOT 2 .Os .Sh NAME .Nm chroot .Nd change root directory .Sh SYNOPSIS -.Fd #include <unistd.h> +.In unistd.h .Ft int .Fn chroot "const char *dirname" .Sh DESCRIPTION .Fa dirname -is the address of the pathname of a directory, terminated by an -.Tn ASCII -NUL. +is the address of the pathname of a directory, terminated by an ASCII NUL. .Fn chroot causes .Fa dirname diff --git a/lib/libc/sys/fcntl.2 b/lib/libc/sys/fcntl.2 index 532c2deb618..a66a9633d01 100644 --- a/lib/libc/sys/fcntl.2 +++ b/lib/libc/sys/fcntl.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: fcntl.2,v 1.30 2013/03/31 08:35:46 guenther Exp $ +.\" $OpenBSD: fcntl.2,v 1.31 2014/12/16 00:06:49 schwarze Exp $ .\" $NetBSD: fcntl.2,v 1.6 1995/02/27 12:32:29 cgd Exp $ .\" .\" Copyright (c) 1983, 1993 @@ -30,14 +30,14 @@ .\" .\" @(#)fcntl.2 8.2 (Berkeley) 1/12/94 .\" -.Dd $Mdocdate: March 31 2013 $ +.Dd $Mdocdate: December 16 2014 $ .Dt FCNTL 2 .Os .Sh NAME .Nm fcntl .Nd file control .Sh SYNOPSIS -.Fd #include <fcntl.h> +.In fcntl.h .Ft int .Fn fcntl "int fd" "int cmd" "..." .Sh DESCRIPTION @@ -167,9 +167,7 @@ and commands are as follows: .Bl -tag -width O_NONBLOCKX .It Dv O_NONBLOCK -Non-blocking -.Tn I/O ; -if no data is available to a +Non-blocking I/O; if no data is available to a .Xr read 2 call, or if a .Xr write 2 @@ -185,10 +183,7 @@ flag of .It Dv O_ASYNC Enable the .Dv SIGIO -signal to be sent to the process group -when -.Tn I/O -is possible, e.g., +signal to be sent to the process group when I/O is possible, e.g., upon availability of data to be read. .It Dv O_SYNC Cause writes to be synchronous. diff --git a/lib/libc/sys/getdents.2 b/lib/libc/sys/getdents.2 index 60c7dd54736..263bf471ece 100644 --- a/lib/libc/sys/getdents.2 +++ b/lib/libc/sys/getdents.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getdents.2,v 1.2 2013/12/01 04:07:18 guenther Exp $ +.\" $OpenBSD: getdents.2,v 1.3 2014/12/16 00:06:49 schwarze Exp $ .\" $NetBSD: getdirentries.2,v 1.7 1995/10/12 15:40:50 jtc Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 @@ -30,14 +30,14 @@ .\" .\" @(#)getdirentries.2 8.1 (Berkeley) 6/9/93 .\" -.Dd $Mdocdate: December 1 2013 $ +.Dd $Mdocdate: December 16 2014 $ .Dt GETDENTS 2 .Os .Sh NAME .Nm getdents .Nd get directory entries in a filesystem independent format .Sh SYNOPSIS -.Fd #include <dirent.h> +.In dirent.h .Ft int .Fn getdents "int fd" "void *buf" "size_t nbytes" .Sh DESCRIPTION @@ -163,9 +163,7 @@ is not a directory, or is too small for returning a directory entry or block of entries, or the current position pointer is invalid. .It Bq Er EIO -An -.Tn I/O -error occurred while reading from or writing to the file system. +An I/O error occurred while reading from or writing to the file system. .El .Sh SEE ALSO .Xr lseek 2 , diff --git a/lib/libc/sys/getfh.2 b/lib/libc/sys/getfh.2 index 94943cd05be..fb2ddfd75e1 100644 --- a/lib/libc/sys/getfh.2 +++ b/lib/libc/sys/getfh.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getfh.2,v 1.16 2014/12/10 19:19:00 schwarze Exp $ +.\" $OpenBSD: getfh.2,v 1.17 2014/12/16 00:06:49 schwarze Exp $ .\" $NetBSD: getfh.2,v 1.7 1995/10/12 15:40:53 jtc Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 @@ -30,15 +30,15 @@ .\" .\" @(#)getfh.2 8.1 (Berkeley) 6/9/93 .\" -.Dd $Mdocdate: December 10 2014 $ +.Dd $Mdocdate: December 16 2014 $ .Dt GETFH 2 .Os .Sh NAME .Nm getfh .Nd get file handle .Sh SYNOPSIS -.Fd #include <sys/param.h> -.Fd #include <sys/mount.h> +.In sys/param.h +.In sys/mount.h .Ft int .Fn getfh "const char *path" "fhandle_t *fhp" .Sh DESCRIPTION @@ -86,9 +86,7 @@ or .Fa path points to an invalid address. .It Bq Er EIO -An -.Tn I/O -error occurred while reading from or writing to the file system. +An I/O error occurred while reading from or writing to the file system. .It Bq Er EINVAL A portion of .Fa path diff --git a/lib/libc/sys/getfsstat.2 b/lib/libc/sys/getfsstat.2 index 23db0c262eb..ff79c94bb11 100644 --- a/lib/libc/sys/getfsstat.2 +++ b/lib/libc/sys/getfsstat.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getfsstat.2,v 1.19 2013/07/20 19:33:34 naddy Exp $ +.\" $OpenBSD: getfsstat.2,v 1.20 2014/12/16 00:06:49 schwarze Exp $ .\" $NetBSD: getfsstat.2,v 1.6 1995/06/29 11:40:44 cgd Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 @@ -30,15 +30,15 @@ .\" .\" @(#)getfsstat.2 8.1 (Berkeley) 6/9/93 .\" -.Dd $Mdocdate: July 20 2013 $ +.Dd $Mdocdate: December 16 2014 $ .Dt GETFSSTAT 2 .Os .Sh NAME .Nm getfsstat .Nd get list of all mounted file systems .Sh SYNOPSIS -.Fd #include <sys/param.h> -.Fd #include <sys/mount.h> +.In sys/param.h +.In sys/mount.h .Ft int .Fn getfsstat "struct statfs *buf" "size_t bufsize" "int flags" .Sh DESCRIPTION @@ -136,9 +136,7 @@ fails if one or more of the following are true: .Fa buf points to an invalid address. .It Bq Er EIO -An -.Tn I/O -error occurred while reading from or writing to the file system. +An I/O error occurred while reading from or writing to the file system. .El .Sh SEE ALSO .Xr statfs 2 , diff --git a/lib/libc/sys/getsockopt.2 b/lib/libc/sys/getsockopt.2 index 7b1244e46a1..6d157d11ba1 100644 --- a/lib/libc/sys/getsockopt.2 +++ b/lib/libc/sys/getsockopt.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getsockopt.2,v 1.47 2014/12/10 19:19:00 schwarze Exp $ +.\" $OpenBSD: getsockopt.2,v 1.48 2014/12/16 00:06:49 schwarze Exp $ .\" $NetBSD: getsockopt.2,v 1.7 1995/02/27 12:33:29 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)getsockopt.2 8.3 (Berkeley) 4/19/94 .\" -.Dd $Mdocdate: December 10 2014 $ +.Dd $Mdocdate: December 16 2014 $ .Dt GETSOCKOPT 2 .Os .Sh NAME @@ -38,7 +38,7 @@ .Nm setsockopt .Nd get and set options on sockets .Sh SYNOPSIS -.Fd #include <sys/socket.h> +.In sys/socket.h .Ft int .Fn getsockopt "int s" "int level" "int optname" "void *optval" "socklen_t *optlen" .Ft int @@ -64,12 +64,9 @@ is specified as To manipulate options at any other level the protocol number of the appropriate protocol controlling the option is supplied. For example, to indicate that an option is to be interpreted by the -.Tn TCP -protocol, +TCP protocol, .Fa level -should be set to the protocol number of -.Tn TCP ; -see +should be set to the protocol number of TCP; see .Xr getprotoent 3 . .Pp The parameters diff --git a/lib/libc/sys/mkfifo.2 b/lib/libc/sys/mkfifo.2 index 104507f4fe9..cf1b4628117 100644 --- a/lib/libc/sys/mkfifo.2 +++ b/lib/libc/sys/mkfifo.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mkfifo.2,v 1.12 2014/12/10 19:19:00 schwarze Exp $ +.\" $OpenBSD: mkfifo.2,v 1.13 2014/12/16 00:06:49 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: December 10 2014 $ +.Dd $Mdocdate: December 16 2014 $ .Dt MKFIFO 2 .Os .Sh NAME @@ -38,11 +38,11 @@ .Nm mkfifoat .Nd make a FIFO file .Sh SYNOPSIS -.Fd #include <sys/stat.h> +.In sys/stat.h .Ft int .Fn mkfifo "const char *path" "mode_t mode" -.Fd #include <sys/stat.h> -.Fd #include <fcntl.h> +.In sys/stat.h +.In fcntl.h .Ft int .Fn mkfifoat "int fd" "const char *path" "mode_t mode" .Sh DESCRIPTION @@ -127,13 +127,10 @@ containing the directory has been exhausted. The user's quota of inodes on the file system on which the FIFO is being created has been exhausted. .It Bq Er EIO -An -.Tn I/O -error occurred while making the directory entry or allocating the inode. +An I/O error occurred while making the directory entry or allocating +the inode. .It Bq Er EIO -An -.Tn I/O -error occurred while reading from or writing to the file system. +An I/O error occurred while reading from or writing to the file system. .It Bq Er EFAULT .Fa path points outside the process's allocated address space. diff --git a/lib/libc/sys/nfssvc.2 b/lib/libc/sys/nfssvc.2 index 263a377c711..a9088f1f3ea 100644 --- a/lib/libc/sys/nfssvc.2 +++ b/lib/libc/sys/nfssvc.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: nfssvc.2,v 1.21 2014/03/24 01:54:58 guenther Exp $ +.\" $OpenBSD: nfssvc.2,v 1.22 2014/12/16 00:06:49 schwarze Exp $ .\" $NetBSD: nfssvc.2,v 1.6 1995/02/27 12:35:08 cgd Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 @@ -30,15 +30,15 @@ .\" .\" @(#)nfssvc.2 8.1 (Berkeley) 6/9/93 .\" -.Dd $Mdocdate: March 24 2014 $ +.Dd $Mdocdate: December 16 2014 $ .Dt NFSSVC 2 .Os .Sh NAME .Nm nfssvc .Nd NFS services .Sh SYNOPSIS -.Fd #include <unistd.h> -.Fd #include <nfs/nfs.h> +.In unistd.h +.In nfs/nfs.h .Ft int .Fn nfssvc "int flags" "void *argstructp" .Sh DESCRIPTION @@ -120,8 +120,7 @@ function first appeared in .Sh BUGS The .Nm nfssvc -system call is designed specifically for the -.Tn NFS +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 sometimes to be unchanged from a previous call, such that diff --git a/lib/libc/sys/poll.2 b/lib/libc/sys/poll.2 index 43fdd15fc1d..b778819fad9 100644 --- a/lib/libc/sys/poll.2 +++ b/lib/libc/sys/poll.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: poll.2,v 1.27 2014/11/30 21:58:22 schwarze Exp $ +.\" $OpenBSD: poll.2,v 1.28 2014/12/16 00:06:49 schwarze Exp $ .\" .\" Copyright (c) 1994 Jason R. Thorpe .\" All rights reserved. @@ -28,7 +28,7 @@ .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" -.Dd $Mdocdate: November 30 2014 $ +.Dd $Mdocdate: December 16 2014 $ .Dt POLL 2 .Os .Sh NAME @@ -36,7 +36,7 @@ .Nm ppoll .Nd synchronous I/O multiplexing .Sh SYNOPSIS -.Fd #include <poll.h> +.In poll.h .Ft int .Fn poll "struct pollfd *fds" "nfds_t nfds" "int timeout" .Ft int @@ -339,8 +339,7 @@ flag is accepted but ignored by the kernel. .Pp Because .Ox -does not implement -.Tn STREAMS , +does not implement STREAMS, there is no distinction between some of the fields in the .Fa events and diff --git a/lib/libc/sys/quotactl.2 b/lib/libc/sys/quotactl.2 index ff99f79dbdf..a3393eb17e1 100644 --- a/lib/libc/sys/quotactl.2 +++ b/lib/libc/sys/quotactl.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: quotactl.2,v 1.13 2014/12/10 19:19:00 schwarze Exp $ +.\" $OpenBSD: quotactl.2,v 1.14 2014/12/16 00:06:49 schwarze Exp $ .\" $NetBSD: quotactl.2,v 1.8 1995/02/27 12:35:43 cgd Exp $ .\" .\" Copyright (c) 1983, 1990, 1991, 1993 @@ -33,15 +33,15 @@ .\" .\" @(#)quotactl.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: December 10 2014 $ +.Dd $Mdocdate: December 16 2014 $ .Dt QUOTACTL 2 .Os .Sh NAME .Nm quotactl .Nd manipulate filesystem quotas .Sh SYNOPSIS -.Fd #include <ufs/ufs/quota.h> /* for ufs quotas */ -.Fd #include <unistd.h> +.In ufs/ufs/quota.h +.In unistd.h .Ft int .Fn quotactl "const char *path" "int cmd" "int id" "char *addr" .Sh DESCRIPTION @@ -178,9 +178,7 @@ In .Dv Q_QUOTAON , the quota file resides on a read-only filesystem. .It Bq Er EIO -An -.Tn I/O -error occurred while reading from or writing +An I/O error occurred while reading from or writing to a file containing quotas. .It Bq Er EFAULT An invalid diff --git a/lib/libc/sys/statfs.2 b/lib/libc/sys/statfs.2 index 334f76b2de6..c1e576ff7c6 100644 --- a/lib/libc/sys/statfs.2 +++ b/lib/libc/sys/statfs.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: statfs.2,v 1.23 2014/12/10 19:19:00 schwarze Exp $ +.\" $OpenBSD: statfs.2,v 1.24 2014/12/16 00:06:49 schwarze Exp $ .\" $NetBSD: statfs.2,v 1.10 1995/06/29 11:40:48 cgd Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)statfs.2 8.3 (Berkeley) 2/11/94 .\" -.Dd $Mdocdate: December 10 2014 $ +.Dd $Mdocdate: December 16 2014 $ .Dt STATFS 2 .Os .Sh NAME @@ -38,8 +38,8 @@ .Nm fstatfs .Nd get file system statistics .Sh SYNOPSIS -.Fd #include <sys/param.h> -.Fd #include <sys/mount.h> +.In sys/param.h +.In sys/mount.h .Ft int .Fn statfs "const char *path" "struct statfs *buf" .Ft int @@ -134,9 +134,7 @@ or .Fa path points to an invalid address. .It Bq Er EIO -An -.Tn I/O -error occurred while reading from or writing to the file system. +An I/O error occurred while reading from or writing to the file system. .El .Pp .Fn fstatfs @@ -149,9 +147,7 @@ is not a valid open file descriptor. .Fa buf points to an invalid address. .It Bq Er EIO -An -.Tn I/O -error occurred while reading from or writing to the file system. +An I/O error occurred while reading from or writing to the file system. .El .Sh SEE ALSO .Xr df 1 , |