]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
Format casts so that there is a non-breaking space after the
authorMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 22 Dec 2007 16:26:51 +0000 (16:26 +0000)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 22 Dec 2007 16:26:51 +0000 (16:26 +0000)
type, and remove unnecessary parentheses around the casted value.
Thus, for example, the following:

     .IR "(size_t) (\-1)" .

becomes:
    .IR "(size_t)\ \-1" .

17 files changed:
man2/getsid.2
man2/mmap.2
man2/mremap.2
man2/shmop.2
man3/clock.3
man3/ctime.3
man3/iconv.3
man3/iconv_open.3
man3/mbrlen.3
man3/mbrtowc.3
man3/mbsnrtowcs.3
man3/mbsrtowcs.3
man3/mbstowcs.3
man3/wcrtomb.3
man3/wcsnrtombs.3
man3/wcsrtombs.3
man3/wcstombs.3

index 1d00fe24bb2134b8e2f6effe13da3a668db6cf2c..4e252fd0ef7106f2099c936dba91b96b551510b3 100644 (file)
@@ -47,7 +47,7 @@ returns the session ID of the process with process ID
 session leader.)
 .SH RETURN VALUE
 On success, a session ID is returned.
-On error, \fI(pid_t) \-1\fP will be returned, and
+On error, \fI(pid_t)\ \-1\fP will be returned, and
 .I errno
 is set appropriately.
 .SH ERRORS
index da5c07cb072617a20e1a483ddfa5a36531023344..9d97c91f13c5fedff5a47c9a3ea64aa8b1d3bfd4 100644 (file)
@@ -327,7 +327,7 @@ returns a pointer to the mapped area.
 On error, the value
 .B MAP_FAILED
 (that is,
-.IR "(void *) \-1" )
+.IR "(void\ *)\ \-1" )
 is returned, and
 .I errno
 is set appropriately.
index c74ab9a08f1cb03c46678b5cfe57c93447037e7d..9f40ed20cdaa5f63ccc0bc497c6287cbd7ce9add 100644 (file)
@@ -125,7 +125,7 @@ On success
 returns a pointer to the new virtual memory area.
 On error, the value
 .B MAP_FAILED
-(that is, \fI(void *) \-1\fP) is returned,
+(that is, \fI(void\ *)\ \-1\fP) is returned,
 and \fIerrno\fP is set appropriately.
 .SH ERRORS
 .TP
index 03c3eb6a017a3548a896d58ea184c6f0daa4cba5..6a0676e64f2996a730e571660fff2afc1750483c 100644 (file)
@@ -170,7 +170,7 @@ all attached shared memory segments are detached from the process.
 On success
 .BR shmat ()
 returns the address of the attached shared memory segment; on error
-.I (void *) \-1
+.I (void\ *)\ \-1
 is returned, and
 .I errno
 is set to indicate the cause of the error.
index b8f6685ebec5e1d657f20158daafa1a7113e4e78..88f37edaf9f49328082fd4d537ba95d305e10a60 100644 (file)
@@ -44,7 +44,7 @@ to get the number of seconds used, divide by
 .BR CLOCKS_PER_SEC .
 If the processor time used is not available or its value cannot
 be represented, the function returns the value
-.IR (clock_t)\-1 .
+.IR (clock_t)\ \-1 .
 .SH "CONFORMING TO"
 C89, C99, POSIX.1-2001.
 POSIX requires that
index 19d8c768c9abbf983c3f7eb2267b8ba0026c5ee6..f437e75bebbd94bcd3a85a13867b5e1ab856206d 100644 (file)
@@ -232,7 +232,7 @@ If the specified broken-down
 time cannot be represented as calendar time (seconds since the Epoch),
 .BR mktime ()
 returns a value of
-.I (time_t)(\-1)
+.I (time_t)\ \-1
 and does not alter the
 \fItm_wday\fP and \fItm_yday\fP members of the broken-down time structure.
 .SH "RETURN VALUE"
index ac71f061d0c4a3ab4698f7b90d1581704f66ddb0..1f844191f51691c154ef37c04041d36e524dd870 100644 (file)
@@ -49,7 +49,7 @@ The conversion can stop for four reasons:
 1. An invalid multibyte sequence is encountered in the input.
 In this case
 it sets \fIerrno\fP to \fBEILSEQ\fP and returns
-.IR (size_t)(\-1) .
+.IR (size_t)\ \-1 .
 \fI*inbuf\fP
 is left pointing to the beginning of the invalid multibyte sequence.
 .PP
@@ -64,13 +64,13 @@ non-reversible conversions performed during this call.
 input byte sequence terminates after it.
 In this case it sets \fIerrno\fP to
 \fBEINVAL\fP and returns
-.IR (size_t)(\-1) .
+.IR (size_t)\ \-1 .
 \fI*inbuf\fP is left pointing to the
 beginning of the incomplete multibyte sequence.
 .PP
 4. The output buffer has no more room for the next converted character.
 In this case it sets \fIerrno\fP to \fBE2BIG\fP and returns
-.IR (size_t)(\-1) .
+.IR (size_t)\ \-1 .
 .PP
 A different case is when \fIinbuf\fP is NULL or \fI*inbuf\fP is NULL, but
 \fIoutbuf\fP is not NULL and \fI*outbuf\fP is not NULL.
@@ -81,7 +81,7 @@ initial state and store a corresponding shift sequence at \fI*outbuf\fP.
 At most \fI*outbytesleft\fP bytes, starting at \fI*outbuf\fP, will be written.
 If the output buffer has no more room for this reset sequence, it sets
 \fIerrno\fP to \fBE2BIG\fP and returns
-.IR (size_t)(\-1) .
+.IR (size_t)\ \-1 .
 Otherwise it increments
 \fI*outbuf\fP and decrements \fI*outbytesleft\fP by the number of bytes
 written.
@@ -97,7 +97,7 @@ The
 function returns the number of characters converted in a
 non-reversible way during this call; reversible conversions are not counted.
 In case of error, it sets \fIerrno\fP and returns
-.IR (size_t)(\-1) .
+.IR (size_t)\ \-1 .
 .SH ERRORS
 The following errors can occur, among others:
 .TP
index 761f157ac954b477440d02922bc7f2b85f6c520f..ec7421deaf4b36ed6ebc8b34236b577a7bb244d6 100644 (file)
@@ -72,7 +72,7 @@ The
 function returns a freshly allocated conversion
 descriptor.
 In case of error, it sets \fIerrno\fP and returns
-.IR (iconv_t)(\-1) .
+.IR (iconv_t)\ \-1 .
 .SH ERRORS
 The following error can occur, among others:
 .TP
index 243fbdf4b5a4f88f8e8e33746b28fb337899b199..f73f96e25d0ceb6bc41ac2f99132c0dc31dd0e9e 100644 (file)
@@ -35,7 +35,7 @@ shift state \fI*ps\fP to the initial state and returns 0.
 If the \fIn\fP bytes starting at \fIs\fP do not contain a complete multibyte
 character,
 .BR mbrlen ()
-returns \fI(size_t)(\-2)\fP.
+returns \fI(size_t)\ \-2\fP.
 This can happen even if
 \fIn\fP >= \fIMB_CUR_MAX\fP, if the multibyte string contains redundant shift
 sequences.
@@ -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
@@ -59,10 +59,10 @@ 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
+It returns \fI(size_t)\ \-2\fP if it couldn't parse a complete multibyte
 character, meaning that \fIn\fP should be increased.
 .SH "CONFORMING TO"
 C99
index 7ac378d7971cd63427020864376ac3832b6cf24c..df98cc157a5d2263fe68f1169a9b1db1c1c81c50 100644 (file)
@@ -40,7 +40,7 @@ state \fI*ps\fP to the initial state and returns 0.
 If the \fIn\fP bytes starting at \fIs\fP do not contain a complete multibyte
 character,
 .BR mbrtowc ()
-returns \fI(size_t)(\-2)\fP.
+returns \fI(size_t)\ \-2\fP.
 This can happen even if
 \fIn\fP >= \fIMB_CUR_MAX\fP, if the multibyte string contains redundant shift
 sequences.
@@ -91,10 +91,10 @@ multibyte sequence starting at \fIs\fP, if a non-L'\\0' wide character
 was recognized.
 It returns 0, if a L'\\0' 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
+It returns \fI(size_t)\ \-2\fP if it couldn't parse a complete multibyte
 character, meaning that \fIn\fP should be increased.
 .SH "CONFORMING TO"
 C99
index 4e6dbea3f0b1568970effe4186e3b3080bd18250..c0dda1427359f253ccf2af3d9f17b58b2d849e8e 100644 (file)
@@ -50,7 +50,7 @@ conversion can stop for three reasons:
 1. An invalid multibyte sequence has been encountered.
 In this case \fI*src\fP
 is left pointing to the invalid multibyte sequence,
-.I (size_t)(\-1)
+.I (size_t)\ \-1
 is returned,
 and \fIerrno\fP is set to \fBEILSEQ\fP.
 .PP
@@ -85,7 +85,7 @@ that make up the converted part of the wide-character string,
 not including the terminating null wide character.
 If an invalid multibyte sequence was
 encountered,
-.I (size_t)(\-1)
+.I (size_t)\ \-1
 is returned, and \fIerrno\fP set to \fBEILSEQ\fP.
 .SH "CONFORMING TO"
 This function is a GNU extension.
index 7bc3297e61f8ca5305933245b12cc06332d5e588..b9e212fba3f854909bddf33648369922f6cef19f 100644 (file)
@@ -40,7 +40,7 @@ The conversion can stop for three reasons:
 1. An invalid multibyte sequence has been encountered.
 In this case \fI*src\fP
 is left pointing to the invalid multibyte sequence,
-.I (size_t)(\-1)
+.I (size_t)\ \-1
 is returned,
 and \fIerrno\fP is set to \fBEILSEQ\fP.
 .PP
@@ -79,7 +79,7 @@ up the converted part of the wide-character string, not including the
 terminating null wide character.
 If an invalid multibyte sequence was
 encountered,
-.I (size_t)(\-1)
+.I (size_t)\ \-1
 is returned, and \fIerrno\fP set to \fBEILSEQ\fP.
 .SH "CONFORMING TO"
 C99
index f3e42ce37c7865b25c6fe307daa72c7b4db660ea..2f0244682a8dcb2aeed5b57ec598bdbef220889c 100644 (file)
@@ -33,7 +33,7 @@ The conversion can stop for three reasons:
 .PP
 1. An invalid multibyte sequence has been encountered.
 In this case
-.I (size_t)(\-1)
+.I (size_t)\ \-1
 is returned.
 .PP
 2. \fIn\fP non-L'\\0' wide characters have been stored at \fIdest\fP.
@@ -63,7 +63,7 @@ up the converted part of the wide-character string, not including the
 terminating null wide character.
 If an invalid multibyte sequence was
 encountered,
-.I (size_t)(\-1)
+.I (size_t)\ \-1
 is returned.
 .SH "CONFORMING TO"
 C99
index 065ae109bb5733b62b11d736a5bd610fed3157ea..b4865b6408ba518d36fc3673fea326e04650a531 100644 (file)
@@ -67,7 +67,7 @@ bytes that have been or would
 have been written to the byte array at \fIs\fP.
 If \fIwc\fP can not be
 represented as a multibyte sequence (according to the current locale),
-.I (size_t)(\-1)
+.I (size_t)\ \-1
 is returned, and \fIerrno\fP set to \fBEILSEQ\fP.
 .SH "CONFORMING TO"
 C99.
index 387996625d7fd6e8f51665e9c56116c7d9400887..c4c287de9fde8e80601d38c7e951c40e1b199fc8 100644 (file)
@@ -53,7 +53,7 @@ The conversion can stop for three reasons:
 multibyte sequence (according to the current locale).
 In this case \fI*src\fP
 is left pointing to the invalid wide character,
-.I (size_t)(\-1)
+.I (size_t)\ \-1
 is returned,
 and \fIerrno\fP is set to \fBEILSEQ\fP.
 .PP
@@ -91,7 +91,7 @@ converted part of multibyte sequence,
 not including the terminating null byte.
 If a wide character was encountered which
 could not be converted,
-.I (size_t)(\-1)
+.I (size_t)\ \-1
 is returned, and \fIerrno\fP set to \fBEILSEQ\fP.
 .SH "CONFORMING TO"
 This function is a GNU extension.
index e8c610191e20d590c72386e09defc343fa154a66..0b73308d1ec7bae5e7ba9a49b16a72d82adec1d3 100644 (file)
@@ -44,7 +44,7 @@ The conversion can stop for three reasons:
 multibyte sequence (according to the current locale).
 In this case \fI*src\fP
 is left pointing to the invalid wide character,
-.I (size_t)(\-1)
+.I (size_t)\ \-1
 is returned,
 and
 .I errno
@@ -83,7 +83,7 @@ converted part of multibyte sequence,
 not including the terminating null byte.
 If a wide character was encountered
 which could not be converted,
-.I (size_t)(\-1)
+.I (size_t)\ \-1
 is returned, and
 .I errno
 set to \fBEILSEQ\fP.
index 650bd7bd2fd832298f36b1791639b6c309cd0112..2dfdd5ea8ddbe01a20ce9706520f69653c1d38b7 100644 (file)
@@ -34,7 +34,7 @@ The conversion can stop for three reasons:
 1. A wide character has been encountered that can not be represented as a
 multibyte sequence (according to the current locale).
 In this case
-.I (size_t)(\-1)
+.I (size_t)\ \-1
 is returned.
 .PP
 2. The length limit forces a stop.
@@ -63,7 +63,7 @@ function returns the number of bytes that make up the
 converted part of multibyte sequence, not including the terminating null byte.
 If a wide character was encountered which could not be
 converted,
-.I (size_t)(\-1)
+.I (size_t)\ \-1
 is returned.
 .SH "CONFORMING TO"
 C99.