summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2011-09-03 22:59:09 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2011-09-03 22:59:09 +0000
commit0451f3d56ea81c5bb90e2ad8622098dcbf5878cd (patch)
tree8104b89f5731d02def482049ba85b76933489f95 /lib/libc/sys
parent311bc18da7da07c9ba1304eecbf55db137005055 (diff)
make -column lists pretty again;
specifically, rewrite them to permit some markup in the column headers, and use "Ta" instead of literal tabs; mandoc does not currently match groff 100%, but a mandoc fix may be some time off, and we've gone enough releases with poorly formatting column lists. in some cases i have rewritten the lists as -tag, where -column made little sense.
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/execve.259
-rw-r--r--lib/libc/sys/getsockopt.270
-rw-r--r--lib/libc/sys/ktrace.253
-rw-r--r--lib/libc/sys/sigaction.273
4 files changed, 160 insertions, 95 deletions
diff --git a/lib/libc/sys/execve.2 b/lib/libc/sys/execve.2
index 1e374f1568b..b4e8f573c7c 100644
--- a/lib/libc/sys/execve.2
+++ b/lib/libc/sys/execve.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: execve.2,v 1.35 2011/08/19 19:59:51 jmc Exp $
+.\" $OpenBSD: execve.2,v 1.36 2011/09/03 22:59:07 jmc Exp $
.\" $NetBSD: execve.2,v 1.9 1995/02/27 12:32:25 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)execve.2 8.3 (Berkeley) 1/24/94
.\"
-.Dd $Mdocdate: August 19 2011 $
+.Dd $Mdocdate: September 3 2011 $
.Dt EXECVE 2
.Os
.Sh NAME
@@ -160,22 +160,49 @@ The process will be started without the new permissions.
.Pp
The new process also inherits the following attributes from
the calling process:
-.Bl -column parent_process_ID -offset indent
-.It process ID Ta see Xr getpid 2
-.It parent process ID Ta see Xr getppid 2
-.It process group ID Ta see Xr getpgrp 2
-.It session ID Ta see Xr getsid 2
-.It access groups Ta see Xr getgroups 2
-.It working directory Ta see Xr chdir 2
-.It root directory Ta see Xr chroot 2
-.It control terminal Ta see Xr termios 4
-.It resource usages Ta see Xr getrusage 2
-.It interval timers Ta see Xr getitimer 2
+.Pp
+.Bl -tag -width parent_process_ID -offset indent -compact
+.It process ID
+see
+.Xr getpid 2
+.It parent process ID
+see
+.Xr getppid 2
+.It process group ID
+see
+.Xr getpgrp 2
+.It session ID
+see
+.Xr getsid 2
+.It access groups
+see
+.Xr getgroups 2
+.It working directory
+see
+.Xr chdir 2
+.It root directory
+see
+.Xr chroot 2
+.It control terminal
+see
+.Xr termios 4
+.It resource usages
+see
+.Xr getrusage 2
+.It interval timers
+see
+.Xr getitimer 2
(unless process image file is setuid or setgid,
in which case all timers are disabled)
-.It resource limits Ta see Xr getrlimit 2
-.It file mode mask Ta see Xr umask 2
-.It signal mask Ta see Xr sigaction 2 ,
+.It resource limits
+see
+.Xr getrlimit 2
+.It file mode mask
+see
+.Xr umask 2
+.It signal mask
+see
+.Xr sigaction 2 ,
.Xr sigsetmask 3
.El
.Pp
diff --git a/lib/libc/sys/getsockopt.2 b/lib/libc/sys/getsockopt.2
index 725065e99ea..c32a3941a09 100644
--- a/lib/libc/sys/getsockopt.2
+++ b/lib/libc/sys/getsockopt.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getsockopt.2,v 1.34 2011/07/04 05:52:17 jmc Exp $
+.\" $OpenBSD: getsockopt.2,v 1.35 2011/09/03 22:59:07 jmc 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: July 4 2011 $
+.Dd $Mdocdate: September 3 2011 $
.Dt GETSOCKOPT 2
.Os
.Sh NAME
@@ -132,28 +132,50 @@ Except as noted, each may be examined with
.Fn getsockopt
and set with
.Fn setsockopt .
-.Bl -column SO_OOBINLINE -offset indent
-.It Dv SO_DEBUG Ta "enables recording of debugging information"
-.It Dv SO_REUSEADDR Ta "enables local address reuse"
-.It Dv SO_REUSEPORT Ta "enables duplicate address and port bindings"
-.It Dv SO_KEEPALIVE Ta "enables keep connections alive"
-.It Dv SO_DONTROUTE Ta "enables routing bypass for outgoing messages"
-.It Dv SO_LINGER Ta "linger on close if data present"
-.It Dv SO_BROADCAST Ta "enables permission to transmit broadcast messages"
-.It Dv SO_OOBINLINE Ta "enables reception of out-of-band data in band"
-.It Dv SO_BINDANY Ta "enables binding to any address"
-.It Dv SO_SNDBUF Ta "set buffer size for output"
-.It Dv SO_RCVBUF Ta "set buffer size for input"
-.It Dv SO_SNDLOWAT Ta "set minimum count for output"
-.It Dv SO_RCVLOWAT Ta "set minimum count for input"
-.It Dv SO_SNDTIMEO Ta "set timeout value for output"
-.It Dv SO_RCVTIMEO Ta "set timeout value for input"
-.It Dv SO_TIMESTAMP Ta "enables reception of a timestamp with datagrams"
-.It Dv SO_PEERCRED Ta "get the credentials from other side of connection"
-.It Dv SO_RTABLE Ta "set the routing domain"
-.It Dv SO_SPLICE Ta "splice two sockets together or get data length"
-.It Dv SO_TYPE Ta "get the type of the socket (get only)"
-.It Dv SO_ERROR Ta "get and clear error on the socket (get only)"
+.Pp
+.Bl -tag -width SO_OOBINLINE -offset indent -compact
+.It Dv SO_DEBUG
+enables recording of debugging information
+.It Dv SO_REUSEADDR
+enables local address reuse
+.It Dv SO_REUSEPORT
+enables duplicate address and port bindings
+.It Dv SO_KEEPALIVE
+enables keep connections alive
+.It Dv SO_DONTROUTE
+enables routing bypass for outgoing messages
+.It Dv SO_LINGER
+linger on close if data present
+.It Dv SO_BROADCAST
+enables permission to transmit broadcast messages
+.It Dv SO_OOBINLINE
+enables reception of out-of-band data in band
+.It Dv SO_BINDANY
+enables binding to any address
+.It Dv SO_SNDBUF
+set buffer size for output
+.It Dv SO_RCVBUF
+set buffer size for input
+.It Dv SO_SNDLOWAT
+set minimum count for output
+.It Dv SO_RCVLOWAT
+set minimum count for input
+.It Dv SO_SNDTIMEO
+set timeout value for output
+.It Dv SO_RCVTIMEO
+set timeout value for input
+.It Dv SO_TIMESTAMP
+enables reception of a timestamp with datagrams
+.It Dv SO_PEERCRED
+get the credentials from other side of connection
+.It Dv SO_RTABLE
+set the routing domain
+.It Dv SO_SPLICE
+splice two sockets together or get data length
+.It Dv SO_TYPE
+get the type of the socket (get only)
+.It Dv SO_ERROR
+get and clear error on the socket (get only)
.El
.Pp
.Dv SO_DEBUG
diff --git a/lib/libc/sys/ktrace.2 b/lib/libc/sys/ktrace.2
index b1cae715ba6..467734f164d 100644
--- a/lib/libc/sys/ktrace.2
+++ b/lib/libc/sys/ktrace.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ktrace.2,v 1.20 2011/07/08 19:30:32 otto Exp $
+.\" $OpenBSD: ktrace.2,v 1.21 2011/09/03 22:59:07 jmc Exp $
.\" $NetBSD: ktrace.2,v 1.2 1995/02/27 12:33:58 cgd Exp $
.\"
.\" Copyright (c) 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)ktrace.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: July 8 2011 $
+.Dd $Mdocdate: September 3 2011 $
.Dt KTRACE 2
.Os
.Sh NAME
@@ -72,11 +72,18 @@ The
.Fa ops
parameter specifies the requested ktrace operation.
The defined operations are:
-.Bl -column KTRFLAG_DESCENDXXX -offset indent
-.It Dv KTROP_SET Enable trace points specified in Ar trpoints .
-.It Dv KTROP_CLEAR Disable trace points specified in Ar trpoints .
-.It Dv KTROP_CLEARFILE Stop all tracing.
-.It Dv KTRFLAG_DESCEND The tracing change should apply to the
+.Pp
+.Bl -tag -width KTRFLAG_DESCEND -offset indent -compact
+.It Dv KTROP_SET
+Enable trace points specified in
+.Ar trpoints .
+.It Dv KTROP_CLEAR
+Disable trace points specified in
+.Ar trpoints .
+.It Dv KTROP_CLEARFILE
+Stop all tracing.
+.It Dv KTRFLAG_DESCEND
+The tracing change should apply to the
specified process and all its current children.
.El
.Pp
@@ -84,17 +91,27 @@ The
.Fa trpoints
parameter specifies the trace points of interest.
The defined trace points are:
-.Bl -column KTRFAC_SYSCALLXXX -offset indent
-.It Dv KTRFAC_SYSCALL Trace system calls.
-.It Dv KTRFAC_SYSRET Trace return values from system calls.
-.It Dv KTRFAC_NAMEI Trace name lookup operations.
-.It Dv KTRFAC_GENIO Trace all I/O (note that this option can
-generate much output).
-.It Dv KTRFAC_PSIG Trace posted signals.
-.It Dv KTRFAC_EMUL Trace emulation changes.
-.It Dv KTRFAC_CSW Trace context switch points.
-.It Dv KTRFAC_STRUCT Trace various structs
-.It Dv KTRFAC_INHERIT Inherit tracing to future children.
+.Pp
+.Bl -tag -width KTRFAC_INHERIT -offset indent -compact
+.It Dv KTRFAC_SYSCALL
+Trace system calls.
+.It Dv KTRFAC_SYSRET
+Trace return values from system calls.
+.It Dv KTRFAC_NAMEI
+Trace name lookup operations.
+.It Dv KTRFAC_GENIO
+Trace all I/O
+(note that this option can generate much output).
+.It Dv KTRFAC_PSIG
+Trace posted signals.
+.It Dv KTRFAC_EMUL
+Trace emulation changes.
+.It Dv KTRFAC_CSW
+Trace context switch points.
+.It Dv KTRFAC_STRUCT
+Trace various structs
+.It Dv KTRFAC_INHERIT
+Inherit tracing to future children.
.El
.Pp
Each tracing event outputs a record composed of a generic header
diff --git a/lib/libc/sys/sigaction.2 b/lib/libc/sys/sigaction.2
index dfe714910a0..fc1daeaf364 100644
--- a/lib/libc/sys/sigaction.2
+++ b/lib/libc/sys/sigaction.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sigaction.2,v 1.46 2010/02/25 17:10:34 schwarze Exp $
+.\" $OpenBSD: sigaction.2,v 1.47 2011/09/03 22:59:07 jmc 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: February 25 2010 $
+.Dd $Mdocdate: September 3 2011 $
.Dt SIGACTION 2
.Os
.Sh NAME
@@ -297,46 +297,45 @@ signals that restart pending system calls continue to do so.
The following is a list of all signals
with names as in the include file
.Aq Pa signal.h :
-.Bl -column SIGVTALARMXX "create core imagexxx"
-.It Sy " NAME " " Default Action " " Description"
-.It Dv SIGHUP No " terminate process" " terminal line hangup"
-.It Dv SIGINT No " terminate process" " interrupt program"
-.It Dv SIGQUIT No " create core image" " quit program"
-.It Dv SIGILL No " create core image" " illegal instruction"
-.It Dv SIGTRAP No " create core image" " trace trap"
-.It Dv SIGABRT No " create core image" " abort(3) call (formerly SIGIOT)"
-.It Dv SIGEMT No " create core image" " emulate instruction executed"
-.It Dv SIGFPE No " create core image" " floating-point exception"
-.It Dv SIGKILL No " terminate process" " kill program (cannot be caught or ignored)"
-.It Dv SIGBUS No " create core image" " bus error"
-.It Dv SIGSEGV No " create core image" " segmentation violation"
-.It Dv SIGSYS No " create core image" " system call given invalid argument"
-.It Dv SIGPIPE No " terminate process" " write on a pipe with no reader"
-.It Dv SIGALRM No " terminate process" " real-time timer expired"
-.It Dv SIGTERM No " terminate process" " software termination signal"
-.It Dv SIGURG No " discard signal" " urgent condition present on socket"
-.It Dv SIGSTOP No " stop process" " stop (cannot be caught or ignored)"
-.It Dv SIGTSTP No " stop process" " stop signal generated from keyboard"
-.It Dv SIGCONT No " discard signal" " continue after stop"
-.It Dv SIGCHLD No " discard signal" " child status has changed"
-.It Dv SIGTTIN No " stop process" " background read attempted from control terminal"
-.It Dv SIGTTOU No " stop process" " background write attempted to control terminal"
-.It Dv SIGIO No " discard signal" Tn " I/O"
-is possible on a descriptor (see
+.Bl -column "SIGVTALARM" "create core image" "Description"
+.It Sy "Name" Ta Sy "Default Action" Ta Sy "Description"
+.It Dv SIGHUP Ta "terminate process" Ta "terminal line hangup"
+.It Dv SIGINT Ta "terminate process" Ta "interrupt program"
+.It Dv SIGQUIT Ta "create core image" Ta "quit program"
+.It Dv SIGILL Ta "create core image" Ta "illegal instruction"
+.It Dv SIGTRAP Ta "create core image" Ta "trace trap"
+.It Dv SIGABRT Ta "create core image" Ta "abort(3) call (formerly SIGIOT)"
+.It Dv SIGEMT Ta "create core image" Ta "emulate instruction executed"
+.It Dv SIGFPE Ta "create core image" Ta "floating-point exception"
+.It Dv SIGKILL Ta "terminate process" Ta "kill program (cannot be caught or ignored)"
+.It Dv SIGBUS Ta "create core image" Ta "bus error"
+.It Dv SIGSEGV Ta "create core image" Ta "segmentation violation"
+.It Dv SIGSYS Ta "create core image" Ta "system call given invalid argument"
+.It Dv SIGPIPE Ta "terminate process" Ta "write on a pipe with no reader"
+.It Dv SIGALRM Ta "terminate process" Ta "real-time timer expired"
+.It Dv SIGTERM Ta "terminate process" Ta "software termination signal"
+.It Dv SIGURG Ta "discard signal" Ta "urgent condition present on socket"
+.It Dv SIGSTOP Ta "stop process" Ta "stop (cannot be caught or ignored)"
+.It Dv SIGTSTP Ta "stop process" Ta "stop signal generated from keyboard"
+.It Dv SIGCONT Ta "discard signal" Ta "continue after stop"
+.It Dv SIGCHLD Ta "discard signal" Ta "child status has changed"
+.It Dv SIGTTIN Ta "stop process" Ta "background read attempted from control terminal"
+.It Dv SIGTTOU Ta "stop process" Ta "background write attempted to control terminal"
+.It Dv SIGIO Ta "discard signal" Ta "I/O is possible on a descriptor (see"
.Xr fcntl 2 )
-.It Dv SIGXCPU No " terminate process" " CPU time limit exceeded (see"
+.It Dv SIGXCPU Ta "terminate process" Ta "CPU time limit exceeded (see"
.Xr setrlimit 2 )
-.It Dv SIGXFSZ No " terminate process" " file size limit exceeded (see"
+.It Dv SIGXFSZ Ta "terminate process" Ta "file size limit exceeded (see"
.Xr setrlimit 2 )
-.It Dv SIGVTALRM No " terminate process" " virtual time alarm (see"
+.It Dv SIGVTALRM Ta "terminate process" Ta "virtual time alarm (see"
.Xr setitimer 2 )
-.It Dv SIGPROF No " terminate process" " profiling timer alarm (see"
+.It Dv SIGPROF Ta "terminate process" Ta "profiling timer alarm (see"
.Xr setitimer 2 )
-.It Dv SIGWINCH No " discard signal" " window size change"
-.It Dv SIGINFO No " discard signal" " status request from keyboard"
-.It Dv SIGUSR1 No " terminate process" " user defined signal 1"
-.It Dv SIGUSR2 No " terminate process" " user defined signal 2"
-.It Dv SIGTHR No " discard signal" " thread AST"
+.It Dv SIGWINCH Ta "discard signal" Ta "window size change"
+.It Dv SIGINFO Ta "discard signal" Ta "status request from keyboard"
+.It Dv SIGUSR1 Ta "terminate process" Ta "user defined signal 1"
+.It Dv SIGUSR2 Ta "terminate process" Ta "user defined signal 2"
+.It Dv SIGTHR Ta "discard signal" Ta "thread AST"
.El
.Sh RETURN VALUES
A 0 value indicates that the call succeeded.