summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/alarm.32
-rw-r--r--lib/libc/gen/basename.38
-rw-r--r--lib/libc/gen/ctermid.38
-rw-r--r--lib/libc/gen/dirname.36
-rw-r--r--lib/libc/gen/fnmatch.32
-rw-r--r--lib/libc/gen/frexp.310
-rw-r--r--lib/libc/gen/getgrent.36
-rw-r--r--lib/libc/gen/getpwent.32
-rw-r--r--lib/libc/gen/modf.32
-rw-r--r--lib/libc/gen/setjmp.32
-rw-r--r--lib/libc/gen/signal.32
-rw-r--r--lib/libc/gen/sigsetops.34
-rw-r--r--lib/libc/gen/stringlist.334
-rw-r--r--lib/libc/gen/tcsetattr.36
-rw-r--r--lib/libc/gen/timezone.38
-rw-r--r--lib/libc/gen/ttyname.32
-rw-r--r--lib/libc/gen/ualarm.36
-rw-r--r--lib/libc/gen/ulimit.32
-rw-r--r--lib/libc/gen/unvis.324
-rw-r--r--lib/libc/gen/valloc.32
-rw-r--r--lib/libc/gen/vis.34
21 files changed, 71 insertions, 71 deletions
diff --git a/lib/libc/gen/alarm.3 b/lib/libc/gen/alarm.3
index 2aac738..b85b879 100644
--- a/lib/libc/gen/alarm.3
+++ b/lib/libc/gen/alarm.3
@@ -69,7 +69,7 @@ alarm and the signal SIGALRM will not be delivered.
Due to
.Xr setitimer 2
restriction the maximum number of
-.Ar seconds
+.Fa seconds
allowed is 100000000.
.Sh RETURN VALUES
The return value of
diff --git a/lib/libc/gen/basename.3 b/lib/libc/gen/basename.3
index 85c65f6..5da5e4f7 100644
--- a/lib/libc/gen/basename.3
+++ b/lib/libc/gen/basename.3
@@ -42,19 +42,19 @@ The
.Fn basename
function
returns the last component from the pathname pointed to by
-.Ar path ,
+.Fa path ,
deleting any trailing
.Sq \&/
characters.
If
-.Ar path
+.Fa path
consists entirely of
.Sq \&/
characters, a pointer to the string
.Qq \&/
is returned.
If
-.Ar path
+.Fa path
is a null pointer or the empty string, a pointer to the string
.Qq \&.
is returned.
@@ -62,7 +62,7 @@ is returned.
On successful completion,
.Fn basename
returns a pointer to the last component of
-.Ar path .
+.Fa path .
.Pp
If
.Fn basename
diff --git a/lib/libc/gen/ctermid.3 b/lib/libc/gen/ctermid.3
index e0fc487..71e20ac 100644
--- a/lib/libc/gen/ctermid.3
+++ b/lib/libc/gen/ctermid.3
@@ -53,14 +53,14 @@ function generates a string, that, when used as a pathname, refers to
the current controlling terminal of the calling process.
.Pp
If
-.Ar buf
+.Fa buf
is the
.Dv NULL
pointer, a pointer to a static area is returned.
Otherwise, the pathname is copied into the memory referenced by
-.Ar buf .
+.Fa buf .
The argument
-.Ar buf
+.Fa buf
is assumed to be at least
.Dv L_ctermid
(as defined in the include
@@ -74,7 +74,7 @@ function
provides the same functionality as
.Fn ctermid
except that if
-.Ar buf
+.Fa buf
is a
.Dv NULL
pointer,
diff --git a/lib/libc/gen/dirname.3 b/lib/libc/gen/dirname.3
index 30d0be7..e774fda 100644
--- a/lib/libc/gen/dirname.3
+++ b/lib/libc/gen/dirname.3
@@ -44,13 +44,13 @@ function
is the converse of
.Xr basename 3 ;
it returns a pointer to the parent directory of the pathname pointed to by
-.Ar path .
+.Fa path .
Any trailing
.Sq \&/
characters are not counted as part of the directory
name.
If
-.Ar path
+.Fa path
is a null pointer, the empty string, or contains no
.Sq \&/
characters,
@@ -62,7 +62,7 @@ signifying the current directory.
On successful completion,
.Fn dirname
returns a pointer to the parent directory of
-.Ar path .
+.Fa path .
.Pp
If
.Fn dirname
diff --git a/lib/libc/gen/fnmatch.3 b/lib/libc/gen/fnmatch.3
index 004b31f..c96b164 100644
--- a/lib/libc/gen/fnmatch.3
+++ b/lib/libc/gen/fnmatch.3
@@ -101,7 +101,7 @@ is related to the specification of
A period is always
.Dq leading
if it is the first character in
-.Ar string .
+.Fa string .
Additionally, if
.Dv FNM_PATHNAME
is set,
diff --git a/lib/libc/gen/frexp.3 b/lib/libc/gen/frexp.3
index 8236810..9e9c01c 100644
--- a/lib/libc/gen/frexp.3
+++ b/lib/libc/gen/frexp.3
@@ -54,24 +54,24 @@ The
function breaks a floating-point number into a normalized
fraction and an integral power of 2.
It stores the integer in the
-.Em int
+.Vt int
object pointed to by
.Fa exp .
.Sh RETURN VALUES
The
.Fn frexp
function returns the value
-.Em x ,
+.Va x ,
such that
-.Em x
+.Va x
is a
-.Em double
+.Vt double
with magnitude in the interval
.Bo 1/2 , 1 Pc
or zero, and
.Fa value
equals
-.Em x
+.Va x
times 2 raised to the power
.Fa *exp .
If
diff --git a/lib/libc/gen/getgrent.3 b/lib/libc/gen/getgrent.3
index 56ef46a..e0a5566 100644
--- a/lib/libc/gen/getgrent.3
+++ b/lib/libc/gen/getgrent.3
@@ -69,7 +69,7 @@ which is described
in
.Xr group 5 .
Each line of the database is defined by the structure
-.Ar group
+.Vt group
found in the include
file
.Aq Pa grp.h :
@@ -87,9 +87,9 @@ The functions
and
.Fn getgrgid
search the group database for the given group name pointed to by
-.Ar name
+.Fa name
or the group id pointed to by
-.Ar gid ,
+.Fa gid ,
respectively, returning the first one encountered. Identical group
names or group gids may result in undefined behavior.
.Pp
diff --git a/lib/libc/gen/getpwent.3 b/lib/libc/gen/getpwent.3
index ec0e2b7..89662cc 100644
--- a/lib/libc/gen/getpwent.3
+++ b/lib/libc/gen/getpwent.3
@@ -67,7 +67,7 @@ which is described
in
.Xr passwd 5 .
Each entry in the database is defined by the structure
-.Ar passwd
+.Vt passwd
found in the include
file
.Aq Pa pwd.h :
diff --git a/lib/libc/gen/modf.3 b/lib/libc/gen/modf.3
index 9089b00..4afd4e6 100644
--- a/lib/libc/gen/modf.3
+++ b/lib/libc/gen/modf.3
@@ -56,7 +56,7 @@ function breaks the argument
into integral and fractional parts, each of which has the
same sign as the argument.
It stores the integral part as a
-.Em double
+.Vt double
in the object pointed to by
.Fa iptr .
.Sh RETURN VALUES
diff --git a/lib/libc/gen/setjmp.3 b/lib/libc/gen/setjmp.3
index dd63909..fb9753a 100644
--- a/lib/libc/gen/setjmp.3
+++ b/lib/libc/gen/setjmp.3
@@ -116,7 +116,7 @@ All accessible objects have values as of the time
.Fn longjmp
routine was called, except that the values of objects of automatic storage
invocation duration that do not have the
-.Em volatile
+.Vt volatile
type and have been changed between the
.Fn setjmp
invocation and
diff --git a/lib/libc/gen/signal.3 b/lib/libc/gen/signal.3
index 393be6d..a311e86 100644
--- a/lib/libc/gen/signal.3
+++ b/lib/libc/gen/signal.3
@@ -218,7 +218,7 @@ will fail and no action will take place if one of the
following occur:
.Bl -tag -width Er
.It Bq Er EINVAL
-.Em Sig
+.Fa sig
is not a valid signal number.
.It Bq Er EINVAL
An attempt is made to ignore or supply a handler for
diff --git a/lib/libc/gen/sigsetops.3 b/lib/libc/gen/sigsetops.3
index b0296c7..839dff2 100644
--- a/lib/libc/gen/sigsetops.3
+++ b/lib/libc/gen/sigsetops.3
@@ -96,8 +96,8 @@ is contained in the signal set.
These functions
are provided as macros in the include file <signal.h>.
Actual functions are available
-if their names are undefined (with #undef
-.Em name ) .
+if their names are undefined (with
+.Ic #undef Ar name ) .
.Sh RETURN VALUES
The
.Fn sigismember
diff --git a/lib/libc/gen/stringlist.3 b/lib/libc/gen/stringlist.3
index d3806f5..496ad98 100644
--- a/lib/libc/gen/stringlist.3
+++ b/lib/libc/gen/stringlist.3
@@ -64,7 +64,7 @@ functions manipulate stringlists, which are lists of
strings that extend automatically if necessary.
.Pp
The
-.Ar StringList
+.Vt StringList
structure has the following definition:
.Bd -literal -offset indent
typedef struct _stringlist {
@@ -75,14 +75,14 @@ typedef struct _stringlist {
.Ed
.Pp
.Bl -tag -width "sl_str" -offset indent
-.It Ar sl_str
+.It Va sl_str
a pointer to the base of the array containing the list.
-.It Ar sl_max
+.It Va sl_max
the size of
-.Ar sl_str .
-.It Ar sl_cur
+.Va sl_str .
+.It Va sl_cur
the offset in
-.Ar sl_str
+.Va sl_str
of the current element.
.El
.Pp
@@ -91,32 +91,32 @@ The following stringlist manipulation functions are available:
.It Fn sl_init
Create a stringlist.
Returns a pointer to a
-.Ar StringList .
+.Vt StringList .
.It Fn sl_free
Releases memory occupied by
-.Ar sl
+.Fa sl
and the
-.Ar sl->sl_str
+.Fa sl->sl_str
array.
If
-.Ar freeall
+.Fa freeall
is non-zero, then each of the items within
-.Ar sl->sl_str
+.Fa sl->sl_str
is released as well.
.It Fn sl_add
Add
-.Ar item
+.Fa item
to
-.Ar sl->sl_str
+.Fa sl->sl_str
at
-.Ar sl->sl_cur ,
+.Fa sl->sl_cur ,
extending the size of
-.Ar sl->sl_str
+.Fa sl->sl_str
.It Fn sl_find
Find
-.Ar item
+.Fa item
in
-.Ar sl ,
+.Fa sl ,
returning NULL if it's not found.
.El
.Sh SEE ALSO
diff --git a/lib/libc/gen/tcsetattr.3 b/lib/libc/gen/tcsetattr.3
index b83ccba..24717a8 100644
--- a/lib/libc/gen/tcsetattr.3
+++ b/lib/libc/gen/tcsetattr.3
@@ -240,10 +240,10 @@ If this value is
into the
.Fa action
value, the values of the
-.Em c_cflag ,
-.Em c_ispeed ,
+.Va c_cflag ,
+.Va c_ispeed ,
and
-.Em c_ospeed
+.Va c_ospeed
fields are ignored.
.El
.Pp
diff --git a/lib/libc/gen/timezone.3 b/lib/libc/gen/timezone.3
index a30cb97..e506d61 100644
--- a/lib/libc/gen/timezone.3
+++ b/lib/libc/gen/timezone.3
@@ -54,13 +54,13 @@ See
The
.Fn timezone
function returns a pointer to a time zone abbreviation for the specified
-.Ar zone
+.Fa zone
and
-.Ar dst
+.Fa dst
values.
-.Ar Zone
+.Fa Zone
is the number of minutes west of GMT and
-.Ar dst
+.Fa dst
is non-zero if daylight savings time is in effect.
.Sh SEE ALSO
.Xr ctime 3
diff --git a/lib/libc/gen/ttyname.3 b/lib/libc/gen/ttyname.3
index ce14a0d..324ebb1 100644
--- a/lib/libc/gen/ttyname.3
+++ b/lib/libc/gen/ttyname.3
@@ -59,7 +59,7 @@ These descriptors are not related to the standard
typedef, but refer to the special device files found in
.Pa /dev
and named
-.Pa /dev/tty Ns Em xx
+.Pa /dev/tty Ns Ar xx
and for which an entry exists
in the initialization file
.Pa /etc/ttys .
diff --git a/lib/libc/gen/ualarm.3 b/lib/libc/gen/ualarm.3
index 78bdfd4..361319a 100644
--- a/lib/libc/gen/ualarm.3
+++ b/lib/libc/gen/ualarm.3
@@ -54,7 +54,7 @@ The
.Fn ualarm
function
waits a count of
-.Ar microseconds
+.Fa microseconds
before asserting the terminating signal
.Dv SIGALRM .
System activity or time used in processing the call may cause a slight
@@ -74,9 +74,9 @@ microseconds have passed).
Due to
.Xr setitimer 2
restriction the maximum number of
-.Ar microseconds
+.Fa microseconds
and
-.Ar interval
+.Fa interval
is limited to 100000000000000
(in case this value fit in the unsigned integer).
.Sh RETURN VALUES
diff --git a/lib/libc/gen/ulimit.3 b/lib/libc/gen/ulimit.3
index 537d437..fc58dfe 100644
--- a/lib/libc/gen/ulimit.3
+++ b/lib/libc/gen/ulimit.3
@@ -56,7 +56,7 @@ Upon successful completion,
.Fn ulimit
returns the value requested;
otherwise the value \-1 is returned and the global variable
-.Ar errno
+.Va errno
is set to indicate the error.
.Sh ERRORS
The
diff --git a/lib/libc/gen/unvis.3 b/lib/libc/gen/unvis.3
index 9f044b9..59cd85e 100644
--- a/lib/libc/gen/unvis.3
+++ b/lib/libc/gen/unvis.3
@@ -61,33 +61,33 @@ by the
.Xr vis 3
function, back into
the original form. Unvis is called with successive characters in
-.Ar c
+.Fa c
until a valid
sequence is recognized, at which time the decoded character is
available at the character pointed to by
-.Ar cp .
+.Fa cp .
Strunvis decodes the
characters pointed to by
-.Ar src
+.Fa src
into the buffer pointed to by
-.Ar dst .
+.Fa dst .
.Pp
The
.Fn strunvis
function
simply copies
-.Ar src
+.Fa src
to
-.Ar dst ,
+.Fa dst ,
decoding any escape sequences along the way,
and returns the number of characters placed into
-.Ar dst ,
+.Fa dst ,
or \-1 if an
invalid escape sequence was detected. The size of
-.Ar dst
+.Fa dst
should be
equal to the size of
-.Ar src
+.Fa src
(that is, no expansion takes place during
decoding).
.Pp
@@ -97,7 +97,7 @@ function does the same as the
.Fn strunvis
function,
but it allows you to add a flag that specifies the style the string
-.Ar src
+.Fa src
is encoded with.
Currently, the only supported flag is
.Dv VIS_HTTPSTYLE .
@@ -141,13 +141,13 @@ unknown state. The decoder is placed into the starting state.
When all bytes in the stream have been processed, call
.Fn unvis
one more time with
-.Ar flag
+.Fa flag
set to
.Dv UNVIS_END
to extract any remaining character (the character passed in is ignored).
.Pp
The
-.Ar flag
+.Fa flag
argument is also used to specify the encoding style of the source.
If set to
.Dv VIS_HTTPSTYLE ,
diff --git a/lib/libc/gen/valloc.3 b/lib/libc/gen/valloc.3
index 06d2907..fceec47 100644
--- a/lib/libc/gen/valloc.3
+++ b/lib/libc/gen/valloc.3
@@ -76,6 +76,6 @@ function appeared in
.Bx 3.0 .
.Sh BUGS
A
-.Em vfree
+.Fn vfree
function
has not been implemented.
diff --git a/lib/libc/gen/vis.3 b/lib/libc/gen/vis.3
index dcb239a..67bbc1f 100644
--- a/lib/libc/gen/vis.3
+++ b/lib/libc/gen/vis.3
@@ -243,13 +243,13 @@ Use URI encoding as described in RFC 1808.
The form is
.Ql %dd
where
-.Em d
+.Ar d
represents a hexadecimal digit.
.It Dv VIS_OCTAL
Use a three digit octal sequence. The form is
.Ql \eddd
where
-.Em d
+.Ar d
represents an octal digit.
.El
.Pp
OpenPOWER on IntegriCloud