From 3b58342928a053831bcbac41d3c0ce39c2ffd48a Mon Sep 17 00:00:00 2001 From: schwarze Date: Sun, 14 Dec 2014 07:42:50 +0000 Subject: [PATCH] macro cleanup; from Kaspars at Bankovskis dot net --- lib/libc/sys/access.2 | 12 ++++++------ lib/libc/sys/kill.2 | 6 +++--- lib/libc/sys/ktrace.2 | 18 +++++++++--------- lib/libc/sys/mlockall.2 | 6 +++--- lib/libc/sys/setpgid.2 | 14 +++++++------- lib/libc/sys/sigaction.2 | 8 ++++---- lib/libc/sys/sigprocmask.2 | 6 +++--- lib/libc/sys/socketpair.2 | 10 ++++------ 8 files changed, 39 insertions(+), 41 deletions(-) diff --git a/lib/libc/sys/access.2 b/lib/libc/sys/access.2 index e17aad86d66..ba655d046c5 100644 --- a/lib/libc/sys/access.2 +++ b/lib/libc/sys/access.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: access.2,v 1.23 2014/02/13 07:30:39 guenther Exp $ +.\" $OpenBSD: access.2,v 1.24 2014/12/14 07:42:50 schwarze Exp $ .\" $NetBSD: access.2,v 1.7 1995/02/27 12:31:44 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)access.2 8.2 (Berkeley) 4/1/94 .\" -.Dd $Mdocdate: February 13 2014 $ +.Dd $Mdocdate: December 14 2014 $ .Dt ACCESS 2 .Os .Sh NAME @@ -38,11 +38,11 @@ .Nm faccessat .Nd check access permissions of a file or pathname .Sh SYNOPSIS -.Fd #include +.In unistd.h .Ft int .Fn access "const char *path" "int amode" -.Fd #include -.Fd #include +.In fcntl.h +.In unistd.h .Ft int .Fn faccessat "int fd" "const char *path" "int amode" "int flag" .Sh DESCRIPTION @@ -170,7 +170,7 @@ points outside the process's allocated address space. An I/O error occurred while reading from or writing to the file system. .It Bq Er EINVAL An invalid value was specified for -.Ar amode . +.Fa amode . .El .Pp Additionally, diff --git a/lib/libc/sys/kill.2 b/lib/libc/sys/kill.2 index 964d15fd688..d9cd6c781e8 100644 --- a/lib/libc/sys/kill.2 +++ b/lib/libc/sys/kill.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: kill.2,v 1.21 2014/12/10 07:18:44 guenther Exp $ +.\" $OpenBSD: kill.2,v 1.22 2014/12/14 07:42:50 schwarze Exp $ .\" $NetBSD: kill.2,v 1.7 1995/02/27 12:33:53 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)kill.2 8.3 (Berkeley) 4/19/94 .\" -.Dd $Mdocdate: December 10 2014 $ +.Dd $Mdocdate: December 14 2014 $ .Dt KILL 2 .Os .Sh NAME @@ -146,7 +146,7 @@ The system call first appeared in .At v3 . The -.Ar sig +.Fa sig argument was introduced in .At v4 . .Sh BUGS diff --git a/lib/libc/sys/ktrace.2 b/lib/libc/sys/ktrace.2 index 14129c0bd5d..f932969087c 100644 --- a/lib/libc/sys/ktrace.2 +++ b/lib/libc/sys/ktrace.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ktrace.2,v 1.25 2014/12/10 19:19:00 schwarze Exp $ +.\" $OpenBSD: ktrace.2,v 1.26 2014/12/14 07:42:50 schwarze Exp $ .\" $NetBSD: ktrace.2,v 1.2 1995/02/27 12:33:58 cgd Exp $ .\" .\" Copyright (c) 1993 @@ -30,17 +30,17 @@ .\" .\" @(#)ktrace.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: December 10 2014 $ +.Dd $Mdocdate: December 14 2014 $ .Dt KTRACE 2 .Os .Sh NAME .Nm ktrace .Nd process tracing .Sh SYNOPSIS -.Fd #include -.Fd #include -.Fd #include -.Fd #include +.In sys/types.h +.In sys/param.h +.In sys/uio.h +.In sys/ktrace.h .Ft int .Fn ktrace "const char *tracefile" "int ops" "int trpoints" "pid_t pid" .Sh DESCRIPTION @@ -64,7 +64,7 @@ previous trace data. If tracing points are being disabled (see .Dv KTROP_CLEAR below), -.Ar tracefile +.Fa tracefile may be .Dv NULL . .Pp @@ -76,10 +76,10 @@ The defined operations are: .Bl -tag -width KTRFLAG_DESCEND -offset indent -compact .It Dv KTROP_SET Enable trace points specified in -.Ar trpoints . +.Fa trpoints . .It Dv KTROP_CLEAR Disable trace points specified in -.Ar trpoints . +.Fa trpoints . .It Dv KTROP_CLEARFILE Stop all tracing. .It Dv KTRFLAG_DESCEND diff --git a/lib/libc/sys/mlockall.2 b/lib/libc/sys/mlockall.2 index a832d93148a..f85a4063c2d 100644 --- a/lib/libc/sys/mlockall.2 +++ b/lib/libc/sys/mlockall.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mlockall.2,v 1.8 2014/07/02 22:22:35 matthew Exp $ +.\" $OpenBSD: mlockall.2,v 1.9 2014/12/14 07:42:50 schwarze Exp $ .\" $NetBSD: mlockall.2,v 1.6 2000/06/26 17:00:02 kleink Exp $ .\" .\" Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: July 2 2014 $ +.Dd $Mdocdate: December 14 2014 $ .Dt MLOCKALL 2 .Os .Sh NAME @@ -83,7 +83,7 @@ will fail if: .Bl -tag -width Er .It Bq Er EINVAL The -.Ar flags +.Fa flags argument is zero or includes unimplemented flags. .It Bq Er ENOMEM Locking all of the pages currently mapped would exceed either diff --git a/lib/libc/sys/setpgid.2 b/lib/libc/sys/setpgid.2 index 141e6c945dd..4363d2a8d2a 100644 --- a/lib/libc/sys/setpgid.2 +++ b/lib/libc/sys/setpgid.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: setpgid.2,v 1.16 2014/12/10 19:19:00 schwarze Exp $ +.\" $OpenBSD: setpgid.2,v 1.17 2014/12/14 07:42:50 schwarze Exp $ .\" $NetBSD: setpgid.2,v 1.8 1995/02/27 12:36:55 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)setpgid.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: December 10 2014 $ +.Dd $Mdocdate: December 14 2014 $ .Dt SETPGID 2 .Os .Sh NAME @@ -38,7 +38,7 @@ .Nm setpgrp .Nd set process group .Sh SYNOPSIS -.Fd #include +.In unistd.h .Ft int .Fn setpgid "pid_t pid" "pid_t pgrp" .Ft int @@ -46,14 +46,14 @@ .Sh DESCRIPTION .Fn setpgid sets the process group of the specified process -.Ar pid +.Fa pid to the specified -.Ar pgrp . +.Fa pgrp . If -.Ar pid +.Fa pid is zero, then the call applies to the current process. If -.Ar pgrp +.Fa pgrp is zero, the process ID of the specified process is used. .Sh RETURN VALUES .Rv -std diff --git a/lib/libc/sys/sigaction.2 b/lib/libc/sys/sigaction.2 index 799cec5ade1..aef68a1809a 100644 --- a/lib/libc/sys/sigaction.2 +++ b/lib/libc/sys/sigaction.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sigaction.2,v 1.67 2014/11/17 00:11:05 guenther Exp $ +.\" $OpenBSD: sigaction.2,v 1.68 2014/12/14 07:42:50 schwarze Exp $ .\" $NetBSD: sigaction.2,v 1.7 1995/10/12 15:41:16 jtc Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)sigaction.2 8.2 (Berkeley) 4/3/94 .\" -.Dd $Mdocdate: November 17 2014 $ +.Dd $Mdocdate: December 14 2014 $ .Dt SIGACTION 2 .Os .Sh NAME @@ -197,7 +197,7 @@ the flag (described below) is implied. .Pp Options may be specified by setting -.Em sa_flags . +.Fa sa_flags . The meaning of the various bits is as follows: .Bl -tag -offset indent -width SA_RESETHANDXX .It Dv SA_NOCLDSTOP @@ -261,7 +261,7 @@ Restarting of pending calls is requested by setting the .Dv SA_RESTART bit in -.Ar sa_flags . +.Fa sa_flags . The affected system calls include .Xr read 2 , .Xr write 2 , diff --git a/lib/libc/sys/sigprocmask.2 b/lib/libc/sys/sigprocmask.2 index ce385f37919..b619e70af26 100644 --- a/lib/libc/sys/sigprocmask.2 +++ b/lib/libc/sys/sigprocmask.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sigprocmask.2,v 1.10 2014/09/09 08:16:52 guenther Exp $ +.\" $OpenBSD: sigprocmask.2,v 1.11 2014/12/14 07:42:50 schwarze Exp $ .\" $NetBSD: sigprocmask.2,v 1.6 1995/02/27 12:37:33 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)sigprocmask.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: September 9 2014 $ +.Dd $Mdocdate: December 14 2014 $ .Dt SIGPROCMASK 2 .Os .Sh NAME @@ -75,7 +75,7 @@ When .Fa set is null, the value of -.Ar how +.Fa how is insignificant and the mask remains unchanged, providing a way to examine the signal mask without modification. .Pp diff --git a/lib/libc/sys/socketpair.2 b/lib/libc/sys/socketpair.2 index 8f15cba4f90..8caa289abb8 100644 --- a/lib/libc/sys/socketpair.2 +++ b/lib/libc/sys/socketpair.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: socketpair.2,v 1.17 2014/12/10 19:19:00 schwarze Exp $ +.\" $OpenBSD: socketpair.2,v 1.18 2014/12/14 07:42:50 schwarze Exp $ .\" $NetBSD: socketpair.2,v 1.5 1995/02/27 12:38:00 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)socketpair.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: December 10 2014 $ +.Dd $Mdocdate: December 14 2014 $ .Dt SOCKETPAIR 2 .Os .Sh NAME @@ -109,11 +109,9 @@ The function call appeared in .Bx 4.2 . .Sh BUGS -This call is currently implemented only for the -.Tn LOCAL -domain. +This call is currently implemented only for the LOCAL domain. Many operating systems only accept a -.Ar protocol +.Fa protocol of .Dv PF_UNSPEC , so that should be used instead of -- 2.20.1