mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Very minor mdoc cleanup.
This commit is contained in:
parent
bba323e822
commit
c492ccdb9a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22147
|
@ -242,13 +242,11 @@ can be found in the
|
|||
library (the standard C library,
|
||||
.Nm libc ,
|
||||
only contains stubs to these routines).
|
||||
|
||||
.Sh SEE ALSO
|
||||
.Xr login 1 ,
|
||||
.Xr passwd 1 ,
|
||||
.Xr getpass 3 ,
|
||||
.Xr passwd 5
|
||||
.sp
|
||||
.Rs
|
||||
.%T "Mathematical Cryptology for Computer Scientists and Mathematicians"
|
||||
.%A Wayne Patterson
|
||||
|
|
|
@ -130,22 +130,24 @@ listed here, and described in separate sections below.
|
|||
.Pp
|
||||
For example, the following retrieves the maximum number of processes allowed
|
||||
in the system:
|
||||
.Pp
|
||||
.Bd -literal -offset indent -compact
|
||||
int mib[2], maxproc;
|
||||
size_t len;
|
||||
.sp
|
||||
|
||||
mib[0] = CTL_KERN;
|
||||
mib[1] = KERN_MAXPROC;
|
||||
len = sizeof(maxproc);
|
||||
sysctl(mib, 2, &maxproc, &len, NULL, 0);
|
||||
.Ed
|
||||
.sp
|
||||
.Pp
|
||||
To retrieve the standard search path for the system utilities:
|
||||
.Pp
|
||||
.Bd -literal -offset indent -compact
|
||||
int mib[2];
|
||||
size_t len;
|
||||
char *p;
|
||||
.sp
|
||||
|
||||
mib[0] = CTL_USER;
|
||||
mib[1] = USER_CS_PATH;
|
||||
sysctl(mib, 2, NULL, &len, NULL, 0);
|
||||
|
|
|
@ -89,7 +89,7 @@ as follows:
|
|||
.Bd -literal
|
||||
byte0 << ((\fIlen\fPN-1) * 8) | byte1 << ((\fIlen\fPN-2) * 8) | ... | byte\fIlen\fPN-1
|
||||
.Ed
|
||||
.sp
|
||||
.Pp
|
||||
The result is then ANDed with
|
||||
.Ar ~mask
|
||||
and ORed with
|
||||
|
@ -98,23 +98,23 @@ Codesets 2 and 3 are special in that the leading byte (0x8e or 0x8f) is
|
|||
first removed and the
|
||||
.Ar lenN
|
||||
argument is reduced by 1.
|
||||
.sp
|
||||
.Pp
|
||||
For example, the Japanese locale has the following
|
||||
.Ev VARIABLE
|
||||
line:
|
||||
.Bd -literal
|
||||
VARIABLE 1 0x0000 2 0x8080 2 0x0080 3 0x8000 0x8080
|
||||
.Ed
|
||||
.sp
|
||||
.Pp
|
||||
Codeset 1 consists of the values 0x0000 - 0x007f.
|
||||
.sp
|
||||
.Pp
|
||||
Codeset 2 consists of the values who have the bits 0x8080 set.
|
||||
.sp
|
||||
.Pp
|
||||
Codeset 3 consists of the values 0x0080 - 0x00ff.
|
||||
.sp
|
||||
.Pp
|
||||
Codeset 4 consists of the values 0x8000 - 0xff7f excluding the values
|
||||
which have the 0x0080 bit set.
|
||||
.sp
|
||||
.Pp
|
||||
Notice that the global
|
||||
.Ar mask
|
||||
is set to 0x8080, this implies that from those 2 bits the codeset can
|
||||
|
|
|
@ -89,7 +89,7 @@ as follows:
|
|||
.Bd -literal
|
||||
byte0 << ((\fIlen\fPN-1) * 8) | byte1 << ((\fIlen\fPN-2) * 8) | ... | byte\fIlen\fPN-1
|
||||
.Ed
|
||||
.sp
|
||||
.Pp
|
||||
The result is then ANDed with
|
||||
.Ar ~mask
|
||||
and ORed with
|
||||
|
@ -98,23 +98,23 @@ Codesets 2 and 3 are special in that the leading byte (0x8e or 0x8f) is
|
|||
first removed and the
|
||||
.Ar lenN
|
||||
argument is reduced by 1.
|
||||
.sp
|
||||
.Pp
|
||||
For example, the Japanese locale has the following
|
||||
.Ev VARIABLE
|
||||
line:
|
||||
.Bd -literal
|
||||
VARIABLE 1 0x0000 2 0x8080 2 0x0080 3 0x8000 0x8080
|
||||
.Ed
|
||||
.sp
|
||||
.Pp
|
||||
Codeset 1 consists of the values 0x0000 - 0x007f.
|
||||
.sp
|
||||
.Pp
|
||||
Codeset 2 consists of the values who have the bits 0x8080 set.
|
||||
.sp
|
||||
.Pp
|
||||
Codeset 3 consists of the values 0x0080 - 0x00ff.
|
||||
.sp
|
||||
.Pp
|
||||
Codeset 4 consists of the values 0x8000 - 0xff7f excluding the values
|
||||
which have the 0x0080 bit set.
|
||||
.sp
|
||||
.Pp
|
||||
Notice that the global
|
||||
.Ar mask
|
||||
is set to 0x8080, this implies that from those 2 bits the codeset can
|
||||
|
|
|
@ -54,7 +54,7 @@ or
|
|||
.Xr isdigit 3
|
||||
is true.
|
||||
In the ASCII character set, this includes the following characters:
|
||||
.sp
|
||||
.Pp
|
||||
.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__
|
||||
.It \&060\ ``0'' \t061\ ``1'' \t062\ ``2'' \t063\ ``3'' \t064\ ``4''
|
||||
.It \&065\ ``5'' \t066\ ``6'' \t067\ ``7'' \t070\ ``8'' \t071\ ``9''
|
||||
|
|
|
@ -54,7 +54,7 @@ or
|
|||
.Xr islower 3
|
||||
is true.
|
||||
In the ASCII character set, this includes the following characters:
|
||||
.sp
|
||||
.Pp
|
||||
.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__
|
||||
.It \&101\ ``A'' \t102\ ``B'' \t103\ ``C'' \t104\ ``D'' \t105\ ``E''
|
||||
.It \&106\ ``F'' \t107\ ``G'' \t110\ ``H'' \t111\ ``I'' \t112\ ``J''
|
||||
|
|
|
@ -50,7 +50,7 @@ The
|
|||
.Fn iscntrl
|
||||
function tests for any control character.
|
||||
In the ASCII character set, this includes the following characters:
|
||||
.sp
|
||||
.Pp
|
||||
.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__
|
||||
.It \&000\ nul \t001\ soh \t002\ stx \t003\ etx \t004\ eot
|
||||
.It \&005\ enq \t006\ ack \t007\ bel \t010\ bs \t011\ ht
|
||||
|
|
|
@ -50,7 +50,7 @@ The
|
|||
.Fn isdigit
|
||||
function tests for any decimal-digit character.
|
||||
In the ASCII character set, this includes the following characters:
|
||||
.sp
|
||||
.Pp
|
||||
.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__
|
||||
.It \&060\ ``0'' \t061\ ``1'' \t062\ ``2'' \t063\ ``3'' \t064\ ``4''
|
||||
.It \&065\ ``5'' \t066\ ``6'' \t067\ ``7'' \t070\ ``8'' \t071\ ``9''
|
||||
|
|
|
@ -50,7 +50,7 @@ The
|
|||
.Fn isgraph
|
||||
function tests for any printing character except space.
|
||||
In the ASCII character set, this includes the following characters:
|
||||
.sp
|
||||
.Pp
|
||||
.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__
|
||||
.It \&041\ ``!'' \t042\ ``"'' \t043\ ``#'' \t044\ ``$'' \t045\ ``%''
|
||||
.It \&046\ ``&'' \t047\ ``''' \t050\ ``('' \t051\ ``)'' \t052\ ``*''
|
||||
|
|
|
@ -50,7 +50,7 @@ The
|
|||
.Fn islower
|
||||
function tests for any lower-case letters.
|
||||
In the ASCII character set, this includes the following characters:
|
||||
.sp
|
||||
.Pp
|
||||
.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__
|
||||
.It \&141\ ``a'' \t142\ ``b'' \t143\ ``c'' \t144\ ``d'' \t145\ ``e''
|
||||
.It \&146\ ``f'' \t147\ ``g'' \t150\ ``h'' \t151\ ``i'' \t152\ ``j''
|
||||
|
|
|
@ -50,7 +50,7 @@ The
|
|||
.Fn isprint
|
||||
function tests for any printing character including space (' ').
|
||||
In the ASCII character set, this includes the following characters:
|
||||
.sp
|
||||
.Pp
|
||||
.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__
|
||||
.It \&040\ sp \t041\ ``!'' \t042\ ``"'' \t043\ ``#'' \t044\ ``$''
|
||||
.It \&045\ ``%'' \t046\ ``&'' \t047\ ``''' \t050\ ``('' \t051\ ``)''
|
||||
|
|
|
@ -53,7 +53,7 @@ character for which
|
|||
.Xr isalnum 3
|
||||
is true.
|
||||
In the ASCII character set, this includes the following characters:
|
||||
.sp
|
||||
.Pp
|
||||
.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__
|
||||
.It \&041\ ``!'' \t042\ ``"'' \t043\ ``#'' \t044\ ``$'' \t045\ ``%''
|
||||
.It \&046\ ``&'' \t047\ ``''' \t050\ ``('' \t051\ ``)'' \t052\ ``*''
|
||||
|
|
|
@ -50,7 +50,7 @@ The
|
|||
.Fn isspace
|
||||
function tests for the standard white-space characters.
|
||||
In the ASCII character set, this includes the following characters:
|
||||
.sp
|
||||
.Pp
|
||||
.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__
|
||||
.It \&011\ ht \t012\ nl \t013\ vt \t014\ np \t015\ cr
|
||||
.It \&040\ sp
|
||||
|
|
|
@ -50,7 +50,7 @@ The
|
|||
.Fn isupper
|
||||
function tests for any upper-case letter.
|
||||
In the ASCII character set, this includes the following characters:
|
||||
.sp
|
||||
.Pp
|
||||
.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__
|
||||
.It \&101\ ``A'' \t102\ ``B'' \t103\ ``C'' \t104\ ``D'' \t105\ ``E''
|
||||
.It \&106\ ``F'' \t107\ ``G'' \t110\ ``H'' \t111\ ``I'' \t112\ ``J''
|
||||
|
|
|
@ -50,7 +50,7 @@ The
|
|||
.Fn isxdigit
|
||||
function tests for any hexadecimal-digit character.
|
||||
In the ASCII character set, this includes the following characters:
|
||||
.sp
|
||||
.Pp
|
||||
.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__
|
||||
.It \&060\ ``0'' \t061\ ``1'' \t062\ ``2'' \t063\ ``3'' \t064\ ``4''
|
||||
.It \&065\ ``5'' \t066\ ``6'' \t067\ ``7'' \t070\ ``8'' \t071\ ``9''
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
.Fn sgetrune "const char *string" "size_t n" "char const **result"
|
||||
.Ft int
|
||||
.Fn sputrune "rune_t rune" "char *string" "size_t n" "char **result"
|
||||
.sp
|
||||
.Pp
|
||||
.Fd #include <stdio.h>
|
||||
.Ft long
|
||||
.Fn fgetrune "FILE *stream"
|
||||
|
|
|
@ -62,7 +62,7 @@ encoding is represented by the following table:
|
|||
[0x0080 - 0x03ff] [00000bbb.bbbbbbbb] -> 110bbbbb, 10bbbbbb
|
||||
[0x0400 - 0xffff] [bbbbbbbb.bbbbbbbb] -> 1110bbbb, 10bbbbbb, 10bbbbbb
|
||||
.Ed
|
||||
.sp
|
||||
.Pp
|
||||
If more than a single representation of a value exists (for example,
|
||||
0x00; 0xC0 0x80; 0xE0 0x80 0x80) the shortest representation is always
|
||||
used (but the longer ones will be correctly decoded).
|
||||
|
@ -78,7 +78,7 @@ The final three encodings provided by X-Open:
|
|||
[0bbbbbbb.bbbbbbbb.bbbbbbbb.bbbbbbbb] ->
|
||||
1111110b, 10bbbbbb, 10bbbbbb, 10bbbbbb, 10bbbbbb, 10bbbbbb
|
||||
.Ed
|
||||
.sp
|
||||
.Pp
|
||||
which provides for the entire proposed ISO-10646 31 bit standard are currently
|
||||
not implemented.
|
||||
.Sh "SEE ALSO"
|
||||
|
|
|
@ -62,7 +62,7 @@ encoding is represented by the following table:
|
|||
[0x0080 - 0x03ff] [00000bbb.bbbbbbbb] -> 110bbbbb, 10bbbbbb
|
||||
[0x0400 - 0xffff] [bbbbbbbb.bbbbbbbb] -> 1110bbbb, 10bbbbbb, 10bbbbbb
|
||||
.Ed
|
||||
.sp
|
||||
.Pp
|
||||
If more than a single representation of a value exists (for example,
|
||||
0x00; 0xC0 0x80; 0xE0 0x80 0x80) the shortest representation is always
|
||||
used (but the longer ones will be correctly decoded).
|
||||
|
@ -78,7 +78,7 @@ The final three encodings provided by X-Open:
|
|||
[0bbbbbbb.bbbbbbbb.bbbbbbbb.bbbbbbbb] ->
|
||||
1111110b, 10bbbbbb, 10bbbbbb, 10bbbbbb, 10bbbbbb, 10bbbbbb
|
||||
.Ed
|
||||
.sp
|
||||
.Pp
|
||||
which provides for the entire proposed ISO-10646 31 bit standard are currently
|
||||
not implemented.
|
||||
.Sh "SEE ALSO"
|
||||
|
|
|
@ -87,7 +87,7 @@ This incompatibility is required by
|
|||
From the
|
||||
.St -p1003.1-88
|
||||
Rationale:
|
||||
.sp
|
||||
.Pp
|
||||
.Bx 4.3
|
||||
provides a
|
||||
.Fn getpgrp
|
||||
|
|
Loading…
Reference in a new issue