"-1" should be "\-1"

This commit is contained in:
Michael Kerrisk 2007-04-27 17:11:22 +00:00
parent ca5ac06642
commit 0fcd5bc9cb
5 changed files with 8 additions and 7 deletions

View File

@ -40,8 +40,9 @@ mprotect \- control allowable accesses to a region of memory
The function
.BR mprotect ()
specifies the desired protection for the memory page(s) containing
part or all of the interval [\fIaddr\fP,\fIaddr\fP+\fIlen\fP-1].
If an access is disallowed by the protection given it, the program receives a
part or all of the interval [\fIaddr\fP,\fIaddr\fP+\fIlen\fP\-1].
If an access is disallowed by the protection given it,
the program receives a
.BR SIGSEGV .
.PP
.I prot

View File

@ -31,14 +31,14 @@ character, it returns the number of bytes that were consumed from \fIs\fP.
If the multibyte character is the null wide character, it returns 0.
.PP
If the \fIn\fP bytes starting at \fIs\fP do not contain a complete multibyte
character, \fBmblen\fP() returns \fI-1\fP.
character, \fBmblen\fP() returns \fI\-1\fP.
This can happen even if
\fIn\fP >= \fIMB_CUR_MAX\fP, if the multibyte string contains redundant shift
sequences.
.PP
If the multibyte string starting at \fIs\fP contains an invalid multibyte
sequence before the next complete character, \fBmblen\fP()
also returns \fI-1\fP.
also returns \fI\-1\fP.
.PP
If \fIs\fP is a NULL pointer, the \fBmblen\fP() function
.\" The Dinkumware doc and the Single Unix specification say this, but

View File

@ -35,7 +35,7 @@ of bytes that were consumed from \fIs\fP, otherwise it returns 0.
.PP
If the \fIn\fP bytes starting at \fIs\fP do not contain a complete multibyte
character, or if they contain an invalid multibyte sequence, \fBmbtowc\fP()
returns \fI-1\fP.
returns \fI\-1\fP.
This can happen even if \fIn\fP >= \fIMB_CUR_MAX\fP,
if the multibyte string contains redundant shift sequences.
.PP

View File

@ -57,7 +57,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\fP\-1 (instead of \fIhaystack\fP) is returned.
And glibc 2.0 makes it worse, and returns a pointer to the
last byte of `haystack'. This is fixed in glibc 2.1.
.SH "SEE ALSO"

View File

@ -44,7 +44,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\fP\-1 bytes
as above, and does something unspecified with the last byte.
(In other words, \fIn\fP should be even.)
.SH "RETURN VALUE"