This commit is contained in:
Michael Kerrisk 2007-07-10 19:50:57 +00:00
parent 7a63e1d7be
commit f3fef7367d
8 changed files with 22 additions and 17 deletions

View File

@ -114,11 +114,13 @@ is set appropriately.
.SH "CONFORMING TO" .SH "CONFORMING TO"
SVr4, 4.3BSD, POSIX.1-2001. SVr4, 4.3BSD, POSIX.1-2001.
.SH NOTES .SH NOTES
The number of clock ticks per second can be obtained using The number of clock ticks per second can be obtained using:
.RS .RS
sysconf(_SC_CLK_TCK); sysconf(_SC_CLK_TCK);
.RE .RE
In POSIX-1996 the symbol CLK_TCK (defined in .PP
In POSIX.1-1996 the symbol \fBCLK_TCK\fP (defined in
.IR <time.h> ) .IR <time.h> )
is mentioned as obsolescent. is mentioned as obsolescent.
It is obsolete now. It is obsolete now.

View File

@ -25,7 +25,7 @@ If \fIwc\fP is a wide character, the
.BR towctrans () .BR towctrans ()
function function
translates it according to the transliteration descriptor \fIdesc\fP. translates it according to the transliteration descriptor \fIdesc\fP.
If \fIwc\fP is WEOF, WEOF is returned. If \fIwc\fP is \fBWEOF\fP, \fBWEOF\fP is returned.
.PP .PP
\fIdesc\fP must be a transliteration descriptor returned by \fIdesc\fP must be a transliteration descriptor returned by
the the
@ -35,7 +35,7 @@ function.
The The
.BR towctrans () .BR towctrans ()
function returns the translated wide character, function returns the translated wide character,
or WEOF if \fIwc\fP is WEOF. or \fBWEOF\fP if \fIwc\fP is \fBWEOF\fP.
.SH "CONFORMING TO" .SH "CONFORMING TO"
C99. C99.
.SH NOTES .SH NOTES

View File

@ -29,12 +29,12 @@ function.
If \fIwc\fP is a wide character, it is converted to If \fIwc\fP is a wide character, it is converted to
lowercase. lowercase.
Characters which do not have case are returned unchanged. Characters which do not have case are returned unchanged.
If \fIwc\fP is WEOF, WEOF is returned. If \fIwc\fP is \fBWEOF\fP, \fBWEOF\fP is returned.
.SH "RETURN VALUE" .SH "RETURN VALUE"
The The
.BR towlower () .BR towlower ()
function returns the lowercase equivalent of \fIwc\fP, function returns the lowercase equivalent of \fIwc\fP,
or WEOF if \fIwc\fP is WEOF. or \fBWEOF\fP if \fIwc\fP is \fBWEOF\fP.
.SH "CONFORMING TO" .SH "CONFORMING TO"
C99. C99.
.SH NOTES .SH NOTES

View File

@ -29,12 +29,12 @@ function.
If \fIwc\fP is a wide character, it is converted to If \fIwc\fP is a wide character, it is converted to
uppercase. uppercase.
Characters which do not have case are returned unchanged. Characters which do not have case are returned unchanged.
If \fIwc\fP is WEOF, WEOF is returned. If \fIwc\fP is \fBWEOF\fP, \fBWEOF\fP is returned.
.SH "RETURN VALUE" .SH "RETURN VALUE"
The The
.BR towupper () .BR towupper ()
function returns the uppercase equivalent of \fIwc\fP, function returns the uppercase equivalent of \fIwc\fP,
or WEOF if \fIwc\fP is WEOF. or \fBWEOF\fP if \fIwc\fP is \fBWEOF\fP.
.SH "CONFORMING TO" .SH "CONFORMING TO"
C99. C99.
.SH NOTES .SH NOTES

View File

@ -28,9 +28,9 @@ function is the wide-character equivalent of the
function. function.
It pushes back a wide character onto \fIstream\fP and returns it. It pushes back a wide character onto \fIstream\fP and returns it.
.PP .PP
If \fIwc\fP is WEOF, it returns WEOF. If \fIwc\fP is \fBWEOF\fP, it returns \fBWEOF\fP.
If \fIwc\fP is an invalid wide character, If \fIwc\fP is an invalid wide character,
it sets \fIerrno\fP to \fBEILSEQ\fP and returns WEOF. it sets \fIerrno\fP to \fBEILSEQ\fP and returns \fBWEOF\fP.
.PP .PP
If \fIwc\fP is a valid wide character, it is pushed back onto the stream If \fIwc\fP is a valid wide character, it is pushed back onto the stream
and thus becomes available for future wide-character read operations. and thus becomes available for future wide-character read operations.
@ -48,7 +48,7 @@ level of push-back is guaranteed.
.SH "RETURN VALUE" .SH "RETURN VALUE"
The The
.BR ungetwc () .BR ungetwc ()
function returns \fIwc\fP when successful, or WEOF upon function returns \fIwc\fP when successful, or \fBWEOF\fP upon
failure. failure.
.SH "CONFORMING TO" .SH "CONFORMING TO"
C99. C99.

View File

@ -38,7 +38,7 @@ multi-byte characters.
The The
.BR wctob () .BR wctob ()
function returns the single-byte representation of \fIc\fP, function returns the single-byte representation of \fIc\fP,
if it exists, of EOF otherwise. if it exists, of \fBEOF\fP otherwise.
.SH "CONFORMING TO" .SH "CONFORMING TO"
C99. C99.
.SH NOTES .SH NOTES

View File

@ -185,12 +185,15 @@ one of the following five values is returned.
Illegal occurrence of newline or one of |, &, ;, <, >, (, ), {, }. Illegal occurrence of newline or one of |, &, ;, <, >, (, ), {, }.
.TP .TP
.B WRDE_BADVAL .B WRDE_BADVAL
An undefined shell variable was referenced, and the WRDE_UNDEF flag An undefined shell variable was referenced, and the
.B WRDE_UNDEF
flag
told us to consider this an error. told us to consider this an error.
.TP .TP
.B WRDE_CMDSUB .B WRDE_CMDSUB
Command substitution occurred, and the WRDE_NOCMD flag Command substitution occurred, and the
told us to consider this an error. .B WRDE_NOCMD
flag told us to consider this an error.
.TP .TP
.B WRDE_NOSPACE .B WRDE_NOSPACE
Out of memory. Out of memory.

View File

@ -56,8 +56,8 @@ Print version information on standard output, then exit successfully.
.B "\-\-" .B "\-\-"
Terminate option list. Terminate option list.
.SH ENVIRONMENT .SH ENVIRONMENT
The variables LANG, LC_ALL, LC_CTYPE, and LC_MESSAGES have the The variables \fBLANG\fP, \fBLC_ALL\fP, \fBLC_CTYPE\fP,
usual meaning. and \fBLC_MESSAGES\fP have the usual meaning.
.SH "CONFORMING TO" .SH "CONFORMING TO"
POSIX.2 POSIX.2
.SH NOTES .SH NOTES