summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1998-06-08 17:17:04 +0000
committerderaadt <deraadt@openbsd.org>1998-06-08 17:17:04 +0000
commitb4ba3a3ea532e3ec5474d2eb7bf8c746f1d01b75 (patch)
tree214b01e0349ef4e4d83d37c4f7e09d7ccb5d3257 /lib
parentam7990 is a chip (diff)
downloadwireguard-openbsd-b4ba3a3ea532e3ec5474d2eb7bf8c746f1d01b75.tar.xz
wireguard-openbsd-b4ba3a3ea532e3ec5474d2eb7bf8c746f1d01b75.zip
do not needlessly uppercase function names
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/getcap.338
-rw-r--r--lib/libc/gen/getpass.36
-rw-r--r--lib/libc/sys/brk.24
-rw-r--r--lib/libc/sys/mount.210
-rw-r--r--lib/libc/sys/readlink.26
-rw-r--r--lib/libc/sys/select.28
6 files changed, 36 insertions, 36 deletions
diff --git a/lib/libc/gen/getcap.3 b/lib/libc/gen/getcap.3
index 68ea8c3c209..d5642cf4f3b 100644
--- a/lib/libc/gen/getcap.3
+++ b/lib/libc/gen/getcap.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getcap.3,v 1.3 1997/05/30 07:48:24 deraadt Exp $
+.\" $OpenBSD: getcap.3,v 1.4 1998/06/08 17:17:04 deraadt Exp $
.\"
.\" Copyright (c) 1992, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -72,7 +72,7 @@
.Ft int
.Fn cgetclose "void"
.Sh DESCRIPTION
-.Fn Cgetent
+.Fn cgetent
extracts the capability rec
.Fa name
from the database specified by the
@@ -83,7 +83,7 @@ and returns a pointer to a
.Xr malloc Ns \&'d
copy of it in
.Fa buf .
-.Nm Cgetent
+.Nm cgetent
will first look for files ending in
.Nm .db
(see
@@ -111,7 +111,7 @@ and \-3 if a potential reference loop is detected (see
.Ic tc=
comments below).
.Pp
-.Nm Cgetset
+.Nm cgetset
enables the addition of a character buffer containing a single capability
record entry
to the capability database.
@@ -125,7 +125,7 @@ If
is
.Dv NULL ,
the current entry is removed from the database.
-.Nm Cgetset
+.Nm cgetset
must precede the database traversal. It must be called before the
.Nm cgetent
call. If a sequential access is being performed (see below), it must be called
@@ -138,7 +138,7 @@ or
call.
On success 0 is returned and \-1 on failure.
.Pp
-.Nm Cgetmatch
+.Nm cgetmatch
will return 0 if
.Fa name
is one of the names of the capability record
@@ -146,7 +146,7 @@ is one of the names of the capability record
\-1 if
not.
.Pp
-.Nm Cgetcap
+.Nm cgetcap
searches the capability record
.Fa buf
for the capability
@@ -169,7 +169,7 @@ found. The end of the capability value is signaled by a `:' or
.Dv NUL
(see below for capability database syntax).
.Pp
-.Nm Cgetnum
+.Nm cgetnum
retrieves the value of the numeric capability
.Fa cap
from the capability record pointed to by
@@ -181,7 +181,7 @@ pointed to by
0 is returned on success, \-1 if the requested numeric capability couldn't
be found.
.Pp
-.Nm Cgetstr
+.Nm cgetstr
retrieves the value of the string capability
.Fa cap
from the capability record pointed to by
@@ -200,23 +200,23 @@ is returned on success, \-1 if the requested string capability couldn't
be found, \-2 if a system error was encountered (storage allocation
failure).
.Pp
-.Nm Cgetustr
+.Nm cgetustr
is identical to
.Nm cgetstr
except that it does not expand special characters, but rather returns each
character of the capability string literally.
.Pp
-.Nm Cgetfirst ,
+.Nm cgetfirst ,
.Nm cgetnext ,
comprise a function group that provides for sequential
access of the
.Dv NULL
pointer terminated array of file names,
.Fa db_array .
-.Nm Cgetfirst
+.Nm cgetfirst
returns the first record in the database and resets the access
to the first record.
-.Nm Cgetnext
+.Nm cgetnext
returns the next record in the database with respect to the
record returned by the previous
.Nm cgetfirst
@@ -242,7 +242,7 @@ is returned if a potential reference loop is detected (see
comments below).
Upon completion of database (0 return) the database is closed.
.Pp
-.Nm Cgetclose
+.Nm cgetclose
closes the sequential access and frees any memory and file descriptors
being used. Note that it does not erase the buffer pushed by a call to
.Nm cgetset .
@@ -301,7 +301,7 @@ Capability records describe a set of (name, value) bindings. Names may
have multiple values bound to them. Different values for a name are
distinguished by their
.Fa types .
-.Nm Cgetcap
+.Nm cgetcap
will return a pointer to a value of a name given the capability name and
the type of the value.
.Pp
@@ -455,7 +455,7 @@ are typically used to denote the end of strings; many applications
use `\e\|200' to represent a
.Dv NUL .
.Sh DIAGNOSTICS
-.Nm Cgetent ,
+.Nm cgetent ,
.Nm cgetset ,
.Nm cgetmatch ,
.Nm cgetnum ,
@@ -466,12 +466,12 @@ and
.Nm cgetnext
return a value greater than or equal to 0 on success and a value less
than 0 on failure.
-.Nm Cgetcap
+.Nm cgetcap
returns a character pointer on success and a
.Dv NULL
on failure.
.Pp
-.Nm Cgetent ,
+.Nm cgetent ,
and
.Nm cgetseq
may fail and set
@@ -483,7 +483,7 @@ for any of the errors specified for the library functions:
and
.Xr close 2 .
.Pp
-.Nm Cgetent ,
+.Nm cgetent ,
.Nm cgetset ,
.Nm cgetstr ,
and
diff --git a/lib/libc/gen/getpass.3 b/lib/libc/gen/getpass.3
index a3b624ccbee..d3f8a1a1d8d 100644
--- a/lib/libc/gen/getpass.3
+++ b/lib/libc/gen/getpass.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getpass.3,v 1.2 1996/08/19 08:23:56 tholo Exp $
+.\" $OpenBSD: getpass.3,v 1.3 1998/06/08 17:17:07 deraadt Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -57,11 +57,11 @@ characters in length.
Any additional
characters and the terminating newline character are discarded.
.Pp
-.Nm Getpass
+.Nm getpass
turns off character echoing while reading the password.
.Pp
.Sh RETURN VALUES
-.Nm Getpass
+.Nm getpass
returns a pointer to the null terminated password.
.Sh FILES
.Bl -tag -width /dev/tty -compact
diff --git a/lib/libc/sys/brk.2 b/lib/libc/sys/brk.2
index f188b0cb00d..13c18d5993b 100644
--- a/lib/libc/sys/brk.2
+++ b/lib/libc/sys/brk.2
@@ -104,7 +104,7 @@ e.g.
for the definition of
.Em etext ) .
.Sh RETURN VALUES
-.Nm Brk
+.Nm brk
returns a pointer to the new end of memory if successful;
otherwise -1 with
.Va errno
@@ -116,7 +116,7 @@ otherwise -1 with
.Va errno
set to indicate why the allocation failed.
.Sh ERRORS
-.Nm Sbrk
+.Nm sbrk
will fail and no additional memory will be allocated if
one of the following are true:
.Bl -tag -width Er
diff --git a/lib/libc/sys/mount.2 b/lib/libc/sys/mount.2
index 7d6bac64236..65cfd9472cf 100644
--- a/lib/libc/sys/mount.2
+++ b/lib/libc/sys/mount.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mount.2,v 1.6 1997/03/09 19:41:16 millert Exp $
+.\" $OpenBSD: mount.2,v 1.7 1998/06/08 17:17:15 deraadt Exp $
.\" $NetBSD: mount.2,v 1.12 1996/02/29 23:47:48 jtc Exp $
.\"
.\" Copyright (c) 1980, 1989, 1993
@@ -183,13 +183,13 @@ and the variable
.Va errno
is set to indicate the error.
.Pp
-.Nm Umount
+.Nm umount
returns the value 0 if the umount succeeded; otherwise -1 is returned
and the variable
.Va errno
is set to indicate the error.
.Sh ERRORS
-.Fn Mount
+.Fn mount
will fail when one of the following occurs:
.Bl -tag -width [ENAMETOOLONG]
.It Bq Er EPERM
@@ -290,7 +290,7 @@ cylinder group information.
points outside the process's allocated address space.
.El
.Pp
-.Nm Umount
+.Nm umount
may fail with one of the following errors:
.Bl -tag -width [ENAMETOOLONG]
.It Bq Er EPERM
@@ -332,7 +332,7 @@ mounted.
.Sh BUGS
Some of the error codes need translation to more obvious messages.
.Sh HISTORY
-.Fn Mount
+.Fn mount
and
.Fn umount
function calls appeared in
diff --git a/lib/libc/sys/readlink.2 b/lib/libc/sys/readlink.2
index f7b7f8009d1..726a091fd9b 100644
--- a/lib/libc/sys/readlink.2
+++ b/lib/libc/sys/readlink.2
@@ -44,14 +44,14 @@
.Ft int
.Fn readlink "const char *path" "char *buf" "size_t bufsiz"
.Sh DESCRIPTION
-.Fn Readlink
+.Fn readlink
places the contents of the symbolic link
.Fa path
in the buffer
.Fa buf ,
which has size
.Fa bufsiz .
-.Nm Readlink
+.Nm readlink
does not append a
.Dv NUL
character to
@@ -62,7 +62,7 @@ if it succeeds, or a -1 if an error occurs, placing the error
code in the global variable
.Va errno .
.Sh ERRORS
-.Fn Readlink
+.Fn readlink
will fail if:
.Bl -tag -width Er
.It Bq Er ENOTDIR
diff --git a/lib/libc/sys/select.2 b/lib/libc/sys/select.2
index ac69ffb03fc..28057986332 100644
--- a/lib/libc/sys/select.2
+++ b/lib/libc/sys/select.2
@@ -50,7 +50,7 @@
.Fn FD_ISSET fd &fdset
.Fn FD_ZERO &fdset
.Sh DESCRIPTION
-.Fn Select
+.Fn select
examines the I/O descriptor sets whose addresses are passed in
.Fa readfds ,
.Fa writefds ,
@@ -70,7 +70,7 @@ On return,
replaces the given descriptor sets
with subsets consisting of those descriptors that are ready
for the requested operation.
-.Fn Select
+.Fn select
returns the total number of ready descriptors in all the sets.
.Pp
The descriptor sets are stored as bit fields in arrays of integers.
@@ -123,7 +123,7 @@ and
.Fa exceptfds
may be given as nil pointers if no descriptors are of interest.
.Sh RETURN VALUES
-.Fn Select
+.Fn select
returns the number of ready descriptors that are contained in
the descriptor sets,
or -1 if an error occurred.
@@ -184,7 +184,7 @@ a larger definition of
before the inclusion of
.Aq Pa sys/types.h .
.Pp
-.Fn Select
+.Fn select
should probably have been designed to return the time remaining from the
original timeout, if any, by modifying the time value in place.
However, it is unlikely this semantic will ever be implemented, as the