mirror of https://github.com/mkerrisk/man-pages
ffix
This commit is contained in:
parent
d243a27fd8
commit
e17aa4873c
|
@ -88,7 +88,7 @@ Upon successful completion,
|
|||
.BR lseek ()
|
||||
returns the resulting offset location as measured in bytes from the
|
||||
beginning of the file.
|
||||
Otherwise, a value of \fI(off_t)\-1\fP is returned and
|
||||
Otherwise, a value of \fI(off_t)\ \-1\fP is returned and
|
||||
.I errno
|
||||
is set to indicate the error.
|
||||
.SH ERRORS
|
||||
|
|
|
@ -45,7 +45,7 @@ the return value is also stored in the memory pointed to by
|
|||
.IR t .
|
||||
.SH "RETURN VALUE"
|
||||
On success, the value of time in seconds since the Epoch is returned.
|
||||
On error, \fI((time_t)\-1)\fP is returned, and \fIerrno\fP is set
|
||||
On error, \fI((time_t)\ \-1)\fP is returned, and \fIerrno\fP is set
|
||||
appropriately.
|
||||
.SH ERRORS
|
||||
.TP
|
||||
|
|
|
@ -107,7 +107,7 @@ Since Linux 2.6, this point is \fI(2^32/HZ) \- 300\fP
|
|||
(i.e., about 429 million) seconds before system boot time.
|
||||
The return value may overflow the possible range of type
|
||||
.IR clock_t .
|
||||
On error, \fI(clock_t) \-1\fP is returned, and
|
||||
On error, \fI(clock_t)\ \-1\fP is returned, and
|
||||
.I errno
|
||||
is set appropriately.
|
||||
.\" The only possible error is EFAULT.
|
||||
|
|
|
@ -113,7 +113,7 @@ The function
|
|||
returns a message catalog descriptor of type
|
||||
.I nl_catd
|
||||
on success.
|
||||
On failure, it returns \fI(nl_catd) \-1\fP
|
||||
On failure, it returns \fI(nl_catd)\ \-1\fP
|
||||
and sets
|
||||
.I errno
|
||||
to indicate the error.
|
||||
|
|
|
@ -44,7 +44,7 @@ If the multibyte string starting at \fIs\fP contains an invalid multibyte
|
|||
sequence before the next complete character,
|
||||
.BR mbrlen ()
|
||||
returns
|
||||
\fI(size_t)(\-1)\fP and sets \fIerrno\fP to \fBEILSEQ\fP.
|
||||
\fI(size_t) \-1\fP and sets \fIerrno\fP to \fBEILSEQ\fP.
|
||||
In this case,
|
||||
the effects on \fI*ps\fP are undefined.
|
||||
.PP
|
||||
|
@ -58,7 +58,7 @@ parsed from the multibyte
|
|||
sequence starting at \fIs\fP, if a non-null wide character was recognized.
|
||||
It returns 0, if a null wide character was recognized.
|
||||
It returns
|
||||
.I (size_t)(\-1)
|
||||
.I "(size_t) \-1"
|
||||
and sets \fIerrno\fP to \fBEILSEQ\fP, if an invalid multibyte sequence was
|
||||
encountered.
|
||||
It returns \fI(size_t)(\-2)\fP if it couldn't parse a complete multibyte
|
||||
|
|
|
@ -49,7 +49,7 @@ If the multibyte string starting at \fIs\fP contains an invalid multibyte
|
|||
sequence before the next complete character,
|
||||
.BR mbrtowc ()
|
||||
returns
|
||||
\fI(size_t)(\-1)\fP and sets \fIerrno\fP to \fBEILSEQ\fP.
|
||||
\fI(size_t)\ \-1\fP and sets \fIerrno\fP to \fBEILSEQ\fP.
|
||||
In this case,
|
||||
the effects on \fI*ps\fP are undefined.
|
||||
.PP
|
||||
|
@ -67,7 +67,7 @@ If the conversion state represented by \fI*ps\fP denotes an
|
|||
incomplete multibyte character conversion, the
|
||||
.BR mbrtowc ()
|
||||
function
|
||||
returns \fI(size_t)(\-1)\fP, sets \fIerrno\fP to \fBEILSEQ\fP, and
|
||||
returns \fI(size_t)\ \-1\fP, sets \fIerrno\fP to \fBEILSEQ\fP, and
|
||||
leaves \fI*ps\fP in an undefined state.
|
||||
Otherwise, the
|
||||
.BR mbrtowc ()
|
||||
|
|
|
@ -61,7 +61,7 @@ Since libc 5.0.9 is still widely used, this is a
|
|||
dangerous function to use.
|
||||
.br
|
||||
Both old and new libc's have the bug that if \fIneedle\fP is empty
|
||||
\fIhaystack\fP\-1 (instead of \fIhaystack\fP) is returned.
|
||||
\fIhaystack\-1\fP (instead of \fIhaystack\fP) is returned.
|
||||
And glibc 2.0 makes it worse, and returns a pointer to the
|
||||
last byte of \fIhaystack\fP.
|
||||
This is fixed in glibc 2.1.
|
||||
|
|
|
@ -46,7 +46,7 @@ This function is used to exchange data
|
|||
between machines that have different low/high byte ordering.
|
||||
.LP
|
||||
This function does nothing when \fIn\fP is negative.
|
||||
When \fIn\fP is positive and odd, it handles \fIn\fP\-1 bytes
|
||||
When \fIn\fP is positive and odd, it handles \fIn\-1\fP bytes
|
||||
as above, and does something unspecified with the last byte.
|
||||
(In other words, \fIn\fP should be even.)
|
||||
.SH "RETURN VALUE"
|
||||
|
|
Loading…
Reference in New Issue