summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/db/man/dbopen.39
-rw-r--r--lib/libc/gen/basename.35
-rw-r--r--lib/libc/gen/confstr.311
-rw-r--r--lib/libc/gen/dirname.33
-rw-r--r--lib/libc/gen/lockf.31
-rw-r--r--lib/libc/gen/signal.33
-rw-r--r--lib/libc/gen/sysconf.33
-rw-r--r--lib/libc/gen/sysctl.33
-rw-r--r--lib/libc/gen/time.33
-rw-r--r--lib/libc/stdlib/malloc.323
-rw-r--r--lib/libc/stdlib/strtod.33
-rw-r--r--lib/libc/sys/intro.23
-rw-r--r--lib/libc/sys/msync.23
-rw-r--r--lib/libc/sys/swapon.23
14 files changed, 46 insertions, 30 deletions
diff --git a/lib/libc/db/man/dbopen.3 b/lib/libc/db/man/dbopen.3
index 9c725e60cf8..57ae2c85d7f 100644
--- a/lib/libc/db/man/dbopen.3
+++ b/lib/libc/db/man/dbopen.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: dbopen.3,v 1.9 1999/05/25 13:06:44 aaron Exp $
+.\" $OpenBSD: dbopen.3,v 1.10 1999/05/27 20:49:31 aaron Exp $
.\" $NetBSD: dbopen.3,v 1.6 1995/02/27 13:23:25 cgd Exp $
.\"
.\" Copyright (c) 1997, Phillip F Knaack. All rights reserved.
@@ -115,7 +115,9 @@ is not possible.)
.Pp
The
.Fa type
-argument is of type DBTYPE (as defined in the <db.h> include file) and
+argument is of type
+.Fa DBTYPE
+(as defined in the <db.h> include file) and
may be set to
.Dv DB_BTREE ,
.Dv DB_HASH
@@ -167,7 +169,7 @@ int (*seq)(const DB *db, DBT *key, DBT *data, u_int flags);
These elements describe a database type and a set of functions performing
various actions.
These functions take a pointer to a structure as returned by
-.Nm ,
+.Nm dbopen ,
and sometimes one or more pointers to key/data structures and a flag value.
.Pp
.Bl -tag -width XXXXX -offset indent
@@ -383,6 +385,7 @@ manual page for more information.)
routines return -1 on error (setting
.Va errno )
and 0 on success.
+.El
.Sh KEY/DATA PAIRS
Access to all file types is based on key/data pairs.
Both keys and data are represented by the following data structure:
diff --git a/lib/libc/gen/basename.3 b/lib/libc/gen/basename.3
index ff72f029735..72aaecd7ff0 100644
--- a/lib/libc/gen/basename.3
+++ b/lib/libc/gen/basename.3
@@ -24,7 +24,7 @@
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $OpenBSD: basename.3,v 1.6 1999/05/25 13:06:45 aaron Exp $
+.\" $OpenBSD: basename.3,v 1.7 1999/05/27 20:49:32 aaron Exp $
.\"
.Dd August 17, 1997
.Dt BASENAME 3
@@ -71,8 +71,9 @@ The following error codes may be set in
.Va errno :
.Bl -tag -width Er
.It Bq Er ENAMETOOLONG
-the path component to be returned was larger than
+The path component to be returned was larger than
.Va MANPATHLEN .
+.El
.Sh WARNINGS
.Fn basename
returns a pointer to internal static storage space that will be overwritten
diff --git a/lib/libc/gen/confstr.3 b/lib/libc/gen/confstr.3
index b54a9ff5361..6c4d5f75692 100644
--- a/lib/libc/gen/confstr.3
+++ b/lib/libc/gen/confstr.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: confstr.3,v 1.5 1999/05/23 14:10:59 aaron Exp $
+.\" $OpenBSD: confstr.3,v 1.6 1999/05/27 20:49:33 aaron Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@@ -85,7 +85,7 @@ environment variable that finds all the standard utilities.
.El
.Sh RETURN VALUES
If the call to
-.Nm confstr
+.Nm
is not successful, \-1 is returned and
.Va errno
is set appropriately.
@@ -102,7 +102,7 @@ the string in
was truncated.
.Sh ERRORS
The
-.Nm confstr
+.Nm
function may fail and set
.Va error
for any of the errors specified for the library functions
@@ -116,15 +116,16 @@ In addition, the following errors may be reported:
The value of the
.Fa name
argument is invalid.
+.El
.Sh SEE ALSO
.Xr sysctl 3
.Sh HISTORY
The
-.Nm confstr
+.Nm
function first appeared in
.Bx 4.4 .
.Sh STANDARDS
The
-.Nm confstr
+.Nm
function conforms to
.St -p1003.2-92 .
diff --git a/lib/libc/gen/dirname.3 b/lib/libc/gen/dirname.3
index 7e3978fe453..029bb43c826 100644
--- a/lib/libc/gen/dirname.3
+++ b/lib/libc/gen/dirname.3
@@ -24,7 +24,7 @@
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $OpenBSD: dirname.3,v 1.3 1999/05/25 13:06:45 aaron Exp $
+.\" $OpenBSD: dirname.3,v 1.4 1999/05/27 20:49:32 aaron Exp $
.\"
.Dd August 17, 1997
.Dt DIRNAME 3
@@ -68,6 +68,7 @@ The following error codes may be set in
.It Bq Er ENAMETOOLONG
the path component to be returned was larger than
.Va MANPATHLEN .
+.El
.Sh WARNINGS
.Fn dirname
returns a pointer to internal static storage space that will be overwritten
diff --git a/lib/libc/gen/lockf.3 b/lib/libc/gen/lockf.3
index 239aefdaf19..e85ed1d294e 100644
--- a/lib/libc/gen/lockf.3
+++ b/lib/libc/gen/lockf.3
@@ -237,6 +237,7 @@ or
.Dv F_TLOCK ,
and satisfying the lock or unlock request would result in the number
of locked regions in the system exceeding a system-imposed limit.
+.El
.Sh SEE ALSO
.Xr fcntl 2 ,
.Xr flock 2
diff --git a/lib/libc/gen/signal.3 b/lib/libc/gen/signal.3
index 989f9a7d217..cf0471db3ec 100644
--- a/lib/libc/gen/signal.3
+++ b/lib/libc/gen/signal.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: signal.3,v 1.9 1999/05/23 14:11:00 aaron Exp $
+.\" $OpenBSD: signal.3,v 1.10 1999/05/27 20:49:33 aaron Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -213,6 +213,7 @@ An attempt is made to ignore or supply a handler for
.Dv SIGKILL
or
.Ev SIGSTOP .
+.El
.Sh SEE ALSO
.Xr kill 1 ,
.Xr kill 2 ,
diff --git a/lib/libc/gen/sysconf.3 b/lib/libc/gen/sysconf.3
index c1241dca32d..cec04b53e49 100644
--- a/lib/libc/gen/sysconf.3
+++ b/lib/libc/gen/sysconf.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysconf.3,v 1.7 1999/05/23 14:11:00 aaron Exp $
+.\" $OpenBSD: sysconf.3,v 1.8 1999/05/27 20:49:33 aaron Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@@ -170,6 +170,7 @@ In addition, the following error may be reported:
The value of the
.Fa name
argument is invalid.
+.El
.Sh SEE ALSO
.Xr sysctl 3
.Sh BUGS
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3
index 90e770f0883..7c35a4790b1 100644
--- a/lib/libc/gen/sysctl.3
+++ b/lib/libc/gen/sysctl.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysctl.3,v 1.13 1999/05/19 17:03:58 provos Exp $
+.\" $OpenBSD: sysctl.3,v 1.14 1999/05/27 20:49:34 aaron Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@@ -536,6 +536,7 @@ Analogous to
.Va tcp.baddynamic
but for UDP sockets.
.El
+.El
.Sh CTL_USER
The string and integer information available for the CTL_USER level
is detailed below.
diff --git a/lib/libc/gen/time.3 b/lib/libc/gen/time.3
index 57827c2a51d..e0522a8f01f 100644
--- a/lib/libc/gen/time.3
+++ b/lib/libc/gen/time.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: time.3,v 1.3 1999/05/23 14:11:00 aaron Exp $
+.\" $OpenBSD: time.3,v 1.4 1999/05/27 20:49:35 aaron Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -75,6 +75,7 @@ The following error codes may be set in
.Bl -tag -width Er
.It Bq Er EFAULT
An argument address referenced invalid memory.
+.El
.Sh SEE ALSO
.Xr gettimeofday 2 ,
.Xr ctime 3
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3
index 783629af5df..023a58b8325 100644
--- a/lib/libc/stdlib/malloc.3
+++ b/lib/libc/stdlib/malloc.3
@@ -33,7 +33,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: malloc.3,v 1.13 1999/05/23 14:11:03 aaron Exp $
+.\" $OpenBSD: malloc.3,v 1.14 1999/05/27 20:49:35 aaron Exp $
.\"
.Dd August 27, 1996
.Dt MALLOC 3
@@ -164,36 +164,36 @@ Flags are single letters, uppercase means on, lowercase means off.
This is a very handy debugging aid, since the core file will represent the
time of failure,
rather than when the NULL pointer was accessed.
-
+.Pp
.It D
``dump'' malloc will dump statistics in a file called ``malloc.out'' at exit.
This option requires the library to have been compiled with -DMALLOC_STATS in
order to have any effect.
-
+.Pp
.It J
``junk'' fill some junk into the area allocated.
Currently junk is bytes of 0xd0, this is pronounced ``Duh'' :-)
-
+.Pp
.It H
``hint'' pass a hint to the kernel about pages we don't use. If the
machine is paging a lot this may help a bit.
-
+.Pp
.It N
Do not output warning messages when encountering possible corruption
or bad pointers.
-
+.Pp
.It R
``realloc'' always reallocate when
.Fn realloc
is called, even if the initial allocation was big enough.
This can substantially aid in compacting memory.
-
+.Pp
.It U
``utrace'' generate entries for
.Xr ktrace 1
for all operations.
Consult the source for this one.
-
+.Pp
.It X
``xmalloc''
rather than return failure,
@@ -205,14 +205,14 @@ including in the source:
extern char *malloc_options;
malloc_options = "X";
.Ed
-
+.Pp
.It Z
``zero'' fill some junk into the area allocated (see ``J''),
except for the exact length the user asked for, which is zeroed.
-
+.Pp
.It <
``Half the cache size'' Reduce the size of the cache by a factor of two.
-
+.Pp
.It >
``Double the cache size'' Double the size of the cache by a factor of two.
.El
@@ -323,6 +323,7 @@ we found something we didn't understand.
.Bl -tag -width "/etc/malloc.conf"
.It Pa /etc/malloc.conf
symbolic link to file containing option flags
+.El
.Sh SEE ALSO
.Xr brk 2 ,
.Xr alloca 3 ,
diff --git a/lib/libc/stdlib/strtod.3 b/lib/libc/stdlib/strtod.3
index 3476fa41d6a..14981139c65 100644
--- a/lib/libc/stdlib/strtod.3
+++ b/lib/libc/stdlib/strtod.3
@@ -33,7 +33,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: strtod.3,v 1.2 1996/08/19 08:33:49 tholo Exp $
+.\" $OpenBSD: strtod.3,v 1.3 1999/05/27 20:49:35 aaron Exp $
.\"
.Dd June 29, 1991
.Dt STRTOD 3
@@ -99,6 +99,7 @@ is stored in
.Bl -tag -width Er
.It Bq Er ERANGE
Overflow or underflow occurred.
+.El
.Sh SEE ALSO
.Xr atof 3 ,
.Xr atoi 3 ,
diff --git a/lib/libc/sys/intro.2 b/lib/libc/sys/intro.2
index 951d3976eb9..3143bb6e581 100644
--- a/lib/libc/sys/intro.2
+++ b/lib/libc/sys/intro.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: intro.2,v 1.11 1999/05/27 14:22:19 aaron Exp $
+.\" $OpenBSD: intro.2,v 1.12 1999/05/27 20:49:35 aaron Exp $
.\" $NetBSD: intro.2,v 1.6 1995/02/27 12:33:41 cgd Exp $
.\"
.\" Copyright (c) 1980, 1983, 1986, 1991, 1993
@@ -683,6 +683,7 @@ communications protocols. Each protocol set supports addresses
of a certain format. An Address Family is the set of addresses
for a specific group of protocols. Each socket has an address
chosen from the address family in which the socket was created.
+.El
.Sh SEE ALSO
.Xr intro 3 ,
.Xr perror 3
diff --git a/lib/libc/sys/msync.2 b/lib/libc/sys/msync.2
index ef22058105e..ca1a3859ddc 100644
--- a/lib/libc/sys/msync.2
+++ b/lib/libc/sys/msync.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: msync.2,v 1.12 1999/05/27 16:21:00 aaron Exp $
+.\" $OpenBSD: msync.2,v 1.13 1999/05/27 20:49:36 aaron Exp $
.\" $NetBSD: msync.2,v 1.8 1995/10/12 15:41:09 jtc Exp $
.\"
.\" Copyright (c) 1991, 1993
@@ -111,6 +111,7 @@ for the address space of the process, or specify one or more pages
which are unmapped.
.It Bq Er EIO
An I/O error occurred while writing.
+.El
.Sh BUGS
Writes are currently done synchronously even if the
.Dv MS_ASYNC
diff --git a/lib/libc/sys/swapon.2 b/lib/libc/sys/swapon.2
index c6e7ffe672a..b5bb1e13e6c 100644
--- a/lib/libc/sys/swapon.2
+++ b/lib/libc/sys/swapon.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: swapon.2,v 1.5 1999/05/23 14:10:56 aaron Exp $
+.\" $OpenBSD: swapon.2,v 1.6 1999/05/27 20:49:36 aaron Exp $
.\" $NetBSD: swapon.2,v 1.7 1995/02/27 12:38:21 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -102,6 +102,7 @@ An I/O error occurred while opening the swap device.
.It Bq Er EFAULT
.Fa special
points outside the process's allocated address space.
+.El
.Sh SEE ALSO
.Xr config 8 ,
.Xr swapon 8