]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
"-1" should be "\-1"
authorMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 27 Apr 2007 17:11:22 +0000 (17:11 +0000)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 27 Apr 2007 17:11:22 +0000 (17:11 +0000)
man2/mprotect.2
man3/mblen.3
man3/mbtowc.3
man3/memmem.3
man3/swab.3

index 90f61d31333cf36673f66ab88dbd5902a4bee88f..dbf4c6d134f6b5ba28e40ac61cf71221676a28fa 100644 (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
index 66d5a4f4cf74a9978836fee196407313b672f090..b84e43725e28d2becafef9c40a5e8a67f2eb16d5 100644 (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
index 4480253e1ccb66473b25870ad3b564497026dffa..2ef1b8a56c6bfa62eb787cfcc3c8951cac515c13 100644 (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
index 9d0df6e77f72dc94c72eaf91cc2030d0ee36a58a..6376083b3de25a9859aa9a02b1ee0e03f657c696 100644 (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"
index 1f2b2978407a0f10c36f0030ee58083bb04dd11b..3258ee55938f1a879697bb1fe276314e85cf4dbc 100644 (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"