From e17aa4873ced57f465c429e08f8965df1c359aca Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 29 Nov 2007 18:15:54 +0000 Subject: [PATCH] ffix --- man2/lseek.2 | 2 +- man2/time.2 | 2 +- man2/times.2 | 2 +- man3/catopen.3 | 2 +- man3/mbrlen.3 | 4 ++-- man3/mbrtowc.3 | 4 ++-- man3/memmem.3 | 2 +- man3/swab.3 | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/man2/lseek.2 b/man2/lseek.2 index 4a6b6d0b1..b22a4f5c7 100644 --- a/man2/lseek.2 +++ b/man2/lseek.2 @@ -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 diff --git a/man2/time.2 b/man2/time.2 index 642421f96..5fae9d95c 100644 --- a/man2/time.2 +++ b/man2/time.2 @@ -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 diff --git a/man2/times.2 b/man2/times.2 index 6a2ba0e38..8cd37def1 100644 --- a/man2/times.2 +++ b/man2/times.2 @@ -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. diff --git a/man3/catopen.3 b/man3/catopen.3 index 44e59fb09..0dd3c7be2 100644 --- a/man3/catopen.3 +++ b/man3/catopen.3 @@ -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. diff --git a/man3/mbrlen.3 b/man3/mbrlen.3 index f2781ba05..b322f0107 100644 --- a/man3/mbrlen.3 +++ b/man3/mbrlen.3 @@ -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 diff --git a/man3/mbrtowc.3 b/man3/mbrtowc.3 index 50dfc1118..eedba2d4d 100644 --- a/man3/mbrtowc.3 +++ b/man3/mbrtowc.3 @@ -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 () diff --git a/man3/memmem.3 b/man3/memmem.3 index 431c96ee2..b755133a1 100644 --- a/man3/memmem.3 +++ b/man3/memmem.3 @@ -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. diff --git a/man3/swab.3 b/man3/swab.3 index 8bb004af3..37ab8c10c 100644 --- a/man3/swab.3 +++ b/man3/swab.3 @@ -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"