summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2003-06-01 20:02:41 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2003-06-01 20:02:41 +0000
commit8e05c6be9a86991320036794af6dd61d691136d3 (patch)
tree39d526c7b010bbbd11526a94d7677ececdc1dbb1 /lib
parent593a51980a92afc583faae94d80a860f19847b82 (diff)
- section reorder
- merge COMPATIBILITY - kill whitespace at EOL - tidy up macros
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/bind.24
-rw-r--r--lib/libc/sys/brk.214
-rw-r--r--lib/libc/sys/connect.24
-rw-r--r--lib/libc/sys/execve.24
-rw-r--r--lib/libc/sys/extattr_get_file.210
-rw-r--r--lib/libc/sys/fcntl.24
-rw-r--r--lib/libc/sys/getitimer.28
-rw-r--r--lib/libc/sys/getlogin.212
-rw-r--r--lib/libc/sys/getpgrp.232
-rw-r--r--lib/libc/sys/getrusage.28
10 files changed, 50 insertions, 50 deletions
diff --git a/lib/libc/sys/bind.2 b/lib/libc/sys/bind.2
index 4c5ba92c07f..e16cb9a1c68 100644
--- a/lib/libc/sys/bind.2
+++ b/lib/libc/sys/bind.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: bind.2,v 1.11 2003/03/18 00:58:39 millert Exp $
+.\" $OpenBSD: bind.2,v 1.12 2003/06/01 20:02:39 jmc Exp $
.\" $NetBSD: bind.2,v 1.8 1995/10/12 15:40:46 jtc Exp $
.\"
.\" Copyright (c) 1983, 1993
@@ -55,7 +55,7 @@ it exists in a name space (address family) but has no name assigned.
requests that
.Fa name
be assigned to the socket.
-.Fa namelen
+.Fa namelen
indicates the amount of space pointed to by
.Fa name ,
in bytes.
diff --git a/lib/libc/sys/brk.2 b/lib/libc/sys/brk.2
index 7f4ff721d07..e1c6facc82c 100644
--- a/lib/libc/sys/brk.2
+++ b/lib/libc/sys/brk.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: brk.2,v 1.12 2000/10/18 05:12:08 aaron Exp $
+.\" $OpenBSD: brk.2,v 1.13 2003/06/01 20:02:39 jmc Exp $
.\" $NetBSD: brk.2,v 1.7 1995/02/27 12:31:57 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -100,7 +100,7 @@ it will not be possible to set the break
beyond the
.Em rlim_max
value returned from a call to
-.Xr getrlimit ,
+.Xr getrlimit 2 ,
e.g.,
.Dq etext + rlp\(->rlim_max .
(see
@@ -141,13 +141,13 @@ to support the expansion.
.Xr mmap 2 ,
.Xr end 3 ,
.Xr malloc 3
-.Sh BUGS
-Setting the break may fail due to a temporary lack of swap space.
-It is not possible to distinguish this from a failure caused by exceeding
-the maximum size of the data segment without consulting
-.Xr getrlimit .
.Sh HISTORY
A
.Fn brk
function call appeared in
.At v7 .
+.Sh BUGS
+Setting the break may fail due to a temporary lack of swap space.
+It is not possible to distinguish this from a failure caused by exceeding
+the maximum size of the data segment without consulting
+.Xr getrlimit 2 .
diff --git a/lib/libc/sys/connect.2 b/lib/libc/sys/connect.2
index f6b5c2c333b..e7c3e7e751e 100644
--- a/lib/libc/sys/connect.2
+++ b/lib/libc/sys/connect.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: connect.2,v 1.15 2003/03/18 00:58:39 millert Exp $
+.\" $OpenBSD: connect.2,v 1.16 2003/06/01 20:02:39 jmc Exp $
.\" $NetBSD: connect.2,v 1.8 1995/10/12 15:40:48 jtc Exp $
.\"
.\" Copyright (c) 1983, 1993
@@ -61,7 +61,7 @@ another socket.
The other socket is specified by
.Fa name ,
which is an address in the communications space of the socket.
-.Fa namelen
+.Fa namelen
indicates the amount of space pointed to by
.Fa name ,
in bytes.
diff --git a/lib/libc/sys/execve.2 b/lib/libc/sys/execve.2
index fd84737815c..3c5f6d582e8 100644
--- a/lib/libc/sys/execve.2
+++ b/lib/libc/sys/execve.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: execve.2,v 1.21 2003/03/18 12:58:21 david Exp $
+.\" $OpenBSD: execve.2,v 1.22 2003/06/01 20:02:39 jmc Exp $
.\" $NetBSD: execve.2,v 1.9 1995/02/27 12:32:25 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -288,7 +288,7 @@ the system file table was found to be full.
.Xr execl 3 ,
.Xr exit 3 ,
.Xr environ 7
-.Sh COMPATIBILITY
+.Sh STANDARDS
The
.Fn exect
function should not be used in portable applications.
diff --git a/lib/libc/sys/extattr_get_file.2 b/lib/libc/sys/extattr_get_file.2
index 2d825dcef77..ba9a80def36 100644
--- a/lib/libc/sys/extattr_get_file.2
+++ b/lib/libc/sys/extattr_get_file.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: extattr_get_file.2,v 1.5 2002/05/01 13:36:18 drahn Exp $
+.\" $OpenBSD: extattr_get_file.2,v 1.6 2003/06/01 20:02:40 jmc Exp $
.\"
.\" Copyright (c) 2001 Dima Dorfman <dima@unixfreak.org>
.\" All rights reserved.
@@ -129,10 +129,6 @@ is attribute-specific.
.Pp
For more information on named extended attributes, please see
.Xr extattr 9 .
-.Sh CAVEATS
-This interface is under active development, and as such is subject to
-change as applications are adapted to use it.
-Developers are discouraged from relying on its stability.
.Sh RETURN VALUES
If successful, the
.Fn extattr_get_file
@@ -218,3 +214,7 @@ Project, and introduced in
.Ox 3.1 .
It was developed to support security extensions requiring additional labels
to be associated with each file or directory.
+.Sh CAVEATS
+This interface is under active development, and as such is subject to
+change as applications are adapted to use it.
+Developers are discouraged from relying on its stability.
diff --git a/lib/libc/sys/fcntl.2 b/lib/libc/sys/fcntl.2
index 17a77928e77..8364cd4c5f1 100644
--- a/lib/libc/sys/fcntl.2
+++ b/lib/libc/sys/fcntl.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fcntl.2,v 1.21 2003/03/28 20:05:11 millert Exp $
+.\" $OpenBSD: fcntl.2,v 1.22 2003/06/01 20:02:40 jmc Exp $
.\" $NetBSD: fcntl.2,v 1.6 1995/02/27 12:32:29 cgd Exp $
.\"
.\" Copyright (c) 1983, 1993
@@ -358,7 +358,7 @@ to their children.
Note that
.Xr flock 2
and
-.Xr fcntl 2
+.Fn fcntl
locks may be safely used concurrently.
.Pp
All locks associated with a file for a given process are
diff --git a/lib/libc/sys/getitimer.2 b/lib/libc/sys/getitimer.2
index 421cebefb2c..3fa3a1b9e07 100644
--- a/lib/libc/sys/getitimer.2
+++ b/lib/libc/sys/getitimer.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getitimer.2,v 1.17 2002/04/30 16:31:42 mpech Exp $
+.\" $OpenBSD: getitimer.2,v 1.18 2003/06/01 20:02:40 jmc Exp $
.\" $NetBSD: getitimer.2,v 1.6 1995/10/12 15:40:54 jtc Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -159,7 +159,7 @@ is non-zero.
compares two time values in the form
.Fa a
CMP
-.Fa b Ns ,
+.Fa b ,
where
.Fa CMP
is <, <=, ==, !=, >=, or > .
@@ -170,11 +170,11 @@ subtracts
-
.Fa b
and stores the result in
-.Fa res Ns .
+.Fa res .
.Pp
.Fn timeradd "a, b, res"
adds two timers and stores the result in
-.Fa res Ns .
+.Fa res .
.Sh RETURN VALUES
If the calls succeed, a value of 0 is returned.
If an error occurs, the value \-1 is returned, and a more precise
diff --git a/lib/libc/sys/getlogin.2 b/lib/libc/sys/getlogin.2
index 94d53218410..86e092b6ae8 100644
--- a/lib/libc/sys/getlogin.2
+++ b/lib/libc/sys/getlogin.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getlogin.2,v 1.14 2002/12/02 15:54:14 millert Exp $
+.\" $OpenBSD: getlogin.2,v 1.15 2003/06/01 20:02:40 jmc Exp $
.\" $NetBSD: getlogin.2,v 1.4 1995/02/27 12:33:03 cgd Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
@@ -178,6 +178,11 @@ is not large enough to store the user's login name.
.El
.Sh SEE ALSO
.Xr setsid 2
+.Sh HISTORY
+The
+.Fn getlogin
+function first appeared in
+.Bx 4.2 .
.Sh BUGS
In earlier versions of the system,
.Fn getlogin
@@ -189,8 +194,3 @@ In earlier versions of the system, the value returned by
.Fn getlogin
could not be trusted without checking the user ID.
Portable programs should probably still make this check.
-.Sh HISTORY
-The
-.Fn getlogin
-function first appeared in
-.Bx 4.2 .
diff --git a/lib/libc/sys/getpgrp.2 b/lib/libc/sys/getpgrp.2
index 3641131fe4c..80fe9a9daaa 100644
--- a/lib/libc/sys/getpgrp.2
+++ b/lib/libc/sys/getpgrp.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getpgrp.2,v 1.10 2003/02/21 09:14:37 jmc Exp $
+.\" $OpenBSD: getpgrp.2,v 1.11 2003/06/01 20:02:40 jmc Exp $
.\" $NetBSD: getpgrp.2,v 1.8 1995/02/27 12:33:09 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -88,22 +88,7 @@ There is no process with a process ID equal to
.Sh SEE ALSO
.Xr setpgid 2 ,
.Xr termios 4
-.Sh HISTORY
-The
-.Fn getpgrp
-function call appeared in
-.Bx 4.0 .
.Sh STANDARDS
-The
-.Fn getpgrp
-function conforms to
-.St -p1003.1-88 .
-The
-.Fn getpgid
-function call is derived from its usage in System V Release 4, and
-first appeared in
-.Nx 1.2 a.
-.Sh COMPATIBILITY
This version of
.Fn getpgrp
differs from past Berkeley versions by not taking a
@@ -129,3 +114,18 @@ suffices, and the added complexity of the
.Bx 4.3
.Fn getpgrp
has been omitted from POSIX.1.
+.Pp
+The
+.Fn getpgrp
+function conforms to
+.St -p1003.1-88 .
+The
+.Fn getpgid
+function call is derived from its usage in System V Release 4, and
+first appeared in
+.Nx 1.2a .
+.Sh HISTORY
+The
+.Fn getpgrp
+function call appeared in
+.Bx 4.0 .
diff --git a/lib/libc/sys/getrusage.2 b/lib/libc/sys/getrusage.2
index 2925486f930..54128bec26f 100644
--- a/lib/libc/sys/getrusage.2
+++ b/lib/libc/sys/getrusage.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getrusage.2,v 1.8 2002/04/30 16:31:42 mpech Exp $
+.\" $OpenBSD: getrusage.2,v 1.9 2003/06/01 20:02:40 jmc Exp $
.\"
.\" Copyright (c) 1985, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -157,11 +157,11 @@ parameter is not in a valid part of the process address space.
.Sh SEE ALSO
.Xr gettimeofday 2 ,
.Xr wait 2
-.Sh BUGS
-There is no way to obtain information about a child process
-that has not yet terminated.
.Sh HISTORY
The
.Fn getrusage
function call appeared in
.Bx 4.2 .
+.Sh BUGS
+There is no way to obtain information about a child process
+that has not yet terminated.