aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2005-07-06 12:57:38 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2005-07-06 12:57:38 +0000
commit2bc2f4798feabd972879ff8f1633b08e337f57e1 (patch)
tree7c2c27db04f020b2ec55c5e24bf135161c5d0b84 /man3
parent06795d3a1f10b71e1da07ac269240455d40e62b3 (diff)
downloadman-pages-2bc2f4798feabd972879ff8f1633b08e337f57e1.tar.gz
hyphen/dash fixes
Diffstat (limited to 'man3')
-rw-r--r--man3/ccos.32
-rw-r--r--man3/ccosh.32
-rw-r--r--man3/cerf.32
-rw-r--r--man3/cosh.32
-rw-r--r--man3/csin.32
-rw-r--r--man3/csinh.32
-rw-r--r--man3/csqrt.34
-rw-r--r--man3/difftime.32
-rw-r--r--man3/div.32
-rw-r--r--man3/dlopen.36
-rw-r--r--man3/erf.32
-rw-r--r--man3/err.36
-rw-r--r--man3/errno.34
-rw-r--r--man3/expm1.32
-rw-r--r--man3/fenv.32
-rw-r--r--man3/getline.32
-rw-r--r--man3/hsearch.34
-rw-r--r--man3/iconv.310
-rw-r--r--man3/iconv_open.32
-rw-r--r--man3/isalpha.32
-rw-r--r--man3/killpg.32
-rw-r--r--man3/mbrlen.38
-rw-r--r--man3/mbrtowc.311
-rw-r--r--man3/mbsnrtowcs.34
-rw-r--r--man3/mbsrtowcs.34
-rw-r--r--man3/mbstowcs.34
-rw-r--r--man3/printf.34
-rw-r--r--man3/scandir.34
-rw-r--r--man3/signbit.34
-rw-r--r--man3/sinh.32
-rw-r--r--man3/tsearch.32
-rw-r--r--man3/wcrtomb.32
-rw-r--r--man3/wcsnrtombs.34
-rw-r--r--man3/wcsrtombs.34
-rw-r--r--man3/wcstombs.34
-rw-r--r--man3/wctrans.36
-rw-r--r--man3/wctype.324
37 files changed, 78 insertions, 77 deletions
diff --git a/man3/ccos.3 b/man3/ccos.3
index 0caec5affe..801a7b1715 100644
--- a/man3/ccos.3
+++ b/man3/ccos.3
@@ -15,7 +15,7 @@ ccos, ccosf, ccosl \- complex cosine function
.sp
Link with \-lm.
.SH DESCRIPTION
-The complex cosine function ccos(z) is defined as (exp(i*z)+exp(-i*z))/2.
+The complex cosine function ccos(z) is defined as (exp(i*z)+exp(\-i*z))/2.
.SH "CONFORMING TO"
C99
.SH "SEE ALSO"
diff --git a/man3/ccosh.3 b/man3/ccosh.3
index ca5a2aff0d..55e681c746 100644
--- a/man3/ccosh.3
+++ b/man3/ccosh.3
@@ -16,7 +16,7 @@ ccosh, ccoshf, ccoshl \- complex hyperbolic cosine
Link with \-lm.
.SH DESCRIPTION
The complex hyperbolic cosine function ccosh(z) is defined as
-(exp(z)+exp(-z))/2.
+(exp(z)+exp(\-z))/2.
.SH "CONFORMING TO"
C99
.SH "SEE ALSO"
diff --git a/man3/cerf.3 b/man3/cerf.3
index 25439ad952..d8c71baa2d 100644
--- a/man3/cerf.3
+++ b/man3/cerf.3
@@ -22,7 +22,7 @@ cerf, cerff, cerfl, cerfc, cerfcf, cerfcl \- complex error function
Link with \-lm.
.SH DESCRIPTION
The function cerf() is the complex version of the error function.
-erf(z) = 2/sqrt(pi) * integral from 0 to z of exp(-t*t) dt.
+erf(z) = 2/sqrt(pi) * integral from 0 to z of exp(\-t*t) dt.
The function cerfc() is defined as cerfc(z) = 1-cerf(z).
.\" must check 1/sqrt(2*pi) ?
.SH "CONFORMING TO"
diff --git a/man3/cosh.3 b/man3/cosh.3
index 69dca0a79d..ed6541c2f8 100644
--- a/man3/cosh.3
+++ b/man3/cosh.3
@@ -46,7 +46,7 @@ cosh, coshf, coshl \- hyperbolic cosine function
Link with \-lm.
.SH DESCRIPTION
The \fBcosh()\fP function returns the hyperbolic cosine of \fIx\fP, which
-is defined mathematically as (exp(x) + exp(-x)) / 2.
+is defined mathematically as (exp(x) + exp(\-x)) / 2.
.SH "CONFORMING TO"
SVID 3, POSIX, BSD 4.3, ISO 9899 (C99).
The float and the long double variants are C99 requirements.
diff --git a/man3/csin.3 b/man3/csin.3
index 55f0814d17..2fe270e7a0 100644
--- a/man3/csin.3
+++ b/man3/csin.3
@@ -15,7 +15,7 @@ csin, csinf, csinl \- complex sine function
.sp
Link with \-lm.
.SH DESCRIPTION
-The complex sine function csin(z) is defined as (exp(i*z)-exp(-i*z))/(2*i).
+The complex sine function csin(z) is defined as (exp(i*z)\-exp(\-i*z))/(2*i).
.SH "CONFORMING TO"
C99
.SH "SEE ALSO"
diff --git a/man3/csinh.3 b/man3/csinh.3
index c41190226b..d2c7d04a5f 100644
--- a/man3/csinh.3
+++ b/man3/csinh.3
@@ -16,7 +16,7 @@ csinh, csinhf, csinhl \- complex hyperbolic sine
Link with \-lm.
.SH DESCRIPTION
The complex hyperbolic sine function sinh(z) is defined as
-(exp(z)-exp(-z))/2.
+(exp(z)-exp(\-z))/2.
.SH "CONFORMING TO"
C99
.SH "SEE ALSO"
diff --git a/man3/csqrt.3 b/man3/csqrt.3
index d166d3ffe5..ff658c02fc 100644
--- a/man3/csqrt.3
+++ b/man3/csqrt.3
@@ -18,8 +18,8 @@ Link with \-lm.
Calculate the square root of a given complex number,
with nonnegative real part, and
with a branch cut along the negative real axis.
-(That means that csqrt(-1+eps*I) will be close to I while
-csqrt(-1-eps*I) will be close to \-I, if eps is a small positive
+(That means that csqrt(\-1+eps*I) will be close to I while
+csqrt(\-1\-eps*I) will be close to \-I, if eps is a small positive
real number.)
.SH "CONFORMING TO"
C99
diff --git a/man3/difftime.3 b/man3/difftime.3
index 21f0090f13..abdd59411e 100644
--- a/man3/difftime.3
+++ b/man3/difftime.3
@@ -48,7 +48,7 @@ On a POSIX system, time_t is an arithmetic type, and one could just
define
.RS
.nf
-#define difftime(t1,t0) (double)(t1 - t0)
+#define difftime(t1,t0) (double)(t1 \- t0)
.fi
.RE
when the possible overflow in the subtraction is not a concern.
diff --git a/man3/div.3 b/man3/div.3
index 5b32f20754..8eebbaa69a 100644
--- a/man3/div.3
+++ b/man3/div.3
@@ -62,7 +62,7 @@ The \fIdiv_t\fP (etc.) structure.
.SH EXAMPLE
After
.nf
- div_t q = div(-5, 3);
+ div_t q = div(\-5, 3);
.fi
the values \fIq.quot\fP and \fIq.rem\fP are \-1 and \-2, respectively.
.SH "CONFORMING TO"
diff --git a/man3/dlopen.3 b/man3/dlopen.3
index 26ea166f73..09f1c1f867 100644
--- a/man3/dlopen.3
+++ b/man3/dlopen.3
@@ -161,8 +161,8 @@ in that library's dependency list and any other libraries previously
opened with the
.B RTLD_GLOBAL
flag.
-If the executable was linked with the flag "-rdynamic"
-(or, synonymously, "--export-dynamic"),
+If the executable was linked with the flag "\-rdynamic"
+(or, synonymously, "\-\-export\-dynamic"),
then the global symbols in the executable will also be used
to resolve references in a dynamically loaded library.
.PP
@@ -244,7 +244,7 @@ returns. If the dynamic library exports a routine named
.BR _fini ,
then that routine is called just before the library is unloaded.
In case you need to avoid linking against the system startup files,
-this can be done by giving gcc the "-nostartfiles" parameter on
+this can be done by giving gcc the "\-nostartfiles" parameter on
the command line.
.LP
Using these routines, or the gcc
diff --git a/man3/erf.3 b/man3/erf.3
index 4bbe97eaba..2ff25e2f96 100644
--- a/man3/erf.3
+++ b/man3/erf.3
@@ -53,7 +53,7 @@ Link with \-lm.
The \fBerf()\fP function returns the error function of \fIx\fP; defined
as
.TP
-erf(x) = 2/sqrt(pi)* integral from 0 to x of exp(-t*t) dt
+erf(x) = 2/sqrt(pi)* integral from 0 to x of exp(\-t*t) dt
.PP
The \fBerfc()\fP function returns the complementary error function of
\fIx\fP, that is 1.0 \- erf(x).
diff --git a/man3/err.3 b/man3/err.3
index f32a3ad0e2..6d3f9246f0 100644
--- a/man3/err.3
+++ b/man3/err.3
@@ -124,7 +124,7 @@ Display the current errno information string and exit:
.Bd -literal -offset indent
if ((p = malloc(size)) == NULL)
err(1, NULL);
-if ((fd = open(file_name, O_RDONLY, 0)) == -1)
+if ((fd = open(file_name, O_RDONLY, 0)) == \-1)
err(1, "%s", file_name);
.Ed
.Pp
@@ -136,10 +136,10 @@ if (tm.tm_hour < START_TIME)
.Pp
Warn of an error:
.Bd -literal -offset indent
-if ((fd = open(raw_device, O_RDONLY, 0)) == -1)
+if ((fd = open(raw_device, O_RDONLY, 0)) == \-1)
warnx("%s: %s: trying the block device",
raw_device, strerror(errno));
-if ((fd = open(block_device, O_RDONLY, 0)) == -1)
+if ((fd = open(block_device, O_RDONLY, 0)) == \-1)
err(1, "%s", block_device);
.Ed
.Sh SEE ALSO
diff --git a/man3/errno.3 b/man3/errno.3
index 615adff4ee..b7cda73c61 100644
--- a/man3/errno.3
+++ b/man3/errno.3
@@ -316,7 +316,7 @@ A common mistake is to do
.RS
.nf
-if (somecall() == -1) {
+if (somecall() == \-1) {
printf("somecall() failed\en");
if (errno == ...) { ... }
}
@@ -335,7 +335,7 @@ should be preserved across a library call, it must be saved:
.RS
.nf
-if (somecall() == -1) {
+if (somecall() == \-1) {
int errsv = errno;
printf("somecall() failed\en");
if (errsv == ...) { ... }
diff --git a/man3/expm1.3 b/man3/expm1.3
index 026969dc39..d886c2bd79 100644
--- a/man3/expm1.3
+++ b/man3/expm1.3
@@ -42,7 +42,7 @@ Link with \-lm.
.BI expm1( x )
returns a value equivalent to `exp (\fIx\fP) \- 1'. It is
computed in a way that is accurate even if the value of \fIx\fP is near
-zero--a case where `exp (\fIx\fP) \- 1' would be inaccurate due to
+zero\(ema case where `exp (\fIx\fP) \- 1' would be inaccurate due to
subtraction of two numbers that are nearly equal.
.SH "CONFORMING TO"
BSD, C99.
diff --git a/man3/fenv.3 b/man3/fenv.3
index f5d7688ec9..62a3981b5d 100644
--- a/man3/fenv.3
+++ b/man3/fenv.3
@@ -75,7 +75,7 @@ is not equal to the infinite precision result.
It may occur whenever Overflow or Underflow occurs.
.LP
The Invalid exception occurs when there is no well-defined result
-for an operation, as for 0/0 or infinity \- infinity or sqrt(-1).
+for an operation, as for 0/0 or infinity \- infinity or sqrt(\-1).
.SS "Exception handling"
Exceptions are represented in two ways: as a single bit
(exception present/absent), and these bits correspond in some
diff --git a/man3/getline.3 b/man3/getline.3
index 5a51b141de..2e5c78eaf0 100644
--- a/man3/getline.3
+++ b/man3/getline.3
@@ -119,7 +119,7 @@ int main(void)
fp = fopen("/etc/motd", "r");
if (fp == NULL)
exit(EXIT_FAILURE);
- while ((read = getline(&line, &len, fp)) != -1) {
+ while ((read = getline(&line, &len, fp)) != \-1) {
printf("Retrieved line of length %zu :\en", read);
printf("%s", line);
}
diff --git a/man3/hsearch.3 b/man3/hsearch.3
index 8cb38f1714..cb72cb6c0c 100644
--- a/man3/hsearch.3
+++ b/man3/hsearch.3
@@ -182,8 +182,8 @@ some of them.
show that two are not in the table */
e.key = data[i];
ep = hsearch(e, FIND);
- printf("%9.9s -> %9.9s:%d\\n", e.key,
- ep ? ep->key : "NULL",
+ printf("%9.9s \-> %9.9s:%d\\n", e.key,
+ ep ? ep\->key : "NULL",
ep ? (int)(ep->data) : 0);
}
return 0;
diff --git a/man3/iconv.3 b/man3/iconv.3
index 4c09758d47..b69c53b501 100644
--- a/man3/iconv.3
+++ b/man3/iconv.3
@@ -42,7 +42,7 @@ output bytes, and it updates the conversion state contained in \fIcd\fP.
The conversion can stop for four reasons:
.PP
1. An invalid multibyte sequence is encountered in the input. In this case
-it sets \fBerrno\fP to \fBEILSEQ\fP and returns (size_t)(-1). \fI*inbuf\fP
+it sets \fBerrno\fP to \fBEILSEQ\fP and returns (size_t)(\-1). \fI*inbuf\fP
is left pointing to the beginning of the invalid multibyte sequence.
.PP
2. The input byte sequence has been entirely converted, i.e. \fI*inbytesleft\fP
@@ -51,11 +51,11 @@ non-reversible conversions performed during this call.
.PP
3. An incomplete multibyte sequence is encountered in the input, and the
input byte sequence terminates after it. In this case it sets \fBerrno\fP to
-\fBEINVAL\fP and returns (size_t)(-1). \fI*inbuf\fP is left pointing to the
+\fBEINVAL\fP and returns (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 \fBerrno\fP to \fBE2BIG\fP and returns (size_t)(-1).
+this case it sets \fBerrno\fP to \fBE2BIG\fP and returns (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. In this case, the
@@ -63,7 +63,7 @@ A different case is when \fIinbuf\fP is NULL or \fI*inbuf\fP is NULL, but
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
-\fBerrno\fP to \fBE2BIG\fP and returns (size_t)(-1). Otherwise it increments
+\fBerrno\fP to \fBE2BIG\fP and returns (size_t)(\-1). Otherwise it increments
\fI*outbuf\fP and decrements \fI*outbytesleft\fP by the number of bytes
written.
.PP
@@ -73,7 +73,7 @@ function sets \fIcd\fP's conversion state to the initial state.
.SH "RETURN VALUE"
The \fBiconv\fP 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 \fBerrno\fP and returns (size_t)(-1).
+In case of error, it sets \fBerrno\fP and returns (size_t)(\-1).
.SH ERRORS
The following errors can occur, among others:
.TP
diff --git a/man3/iconv_open.3 b/man3/iconv_open.3
index 4e544824ca..74a48a8049 100644
--- a/man3/iconv_open.3
+++ b/man3/iconv_open.3
@@ -39,7 +39,7 @@ state back to the initial state, use \fBiconv\fP with NULL as \fIinbuf\fP
argument.
.SH "RETURN VALUE"
The \fBiconv_open\fP function returns a freshly allocated conversion
-descriptor. In case of error, it sets \fBerrno\fP and returns (iconv_t)(-1).
+descriptor. In case of error, it sets \fBerrno\fP and returns (iconv_t)(\-1).
.SH ERRORS
The following error can occur, among others:
.TP
diff --git a/man3/isalpha.3 b/man3/isalpha.3
index f9220395c3..43f412758b 100644
--- a/man3/isalpha.3
+++ b/man3/isalpha.3
@@ -80,7 +80,7 @@ locale, it is equivalent to
.BI "(isupper(" c ") || islower(" c "))" \fR.
In some locales, there may be additional characters for which
.B isalpha()
-is true--letters which are neither upper case nor lower
+is true\(emletters which are neither upper case nor lower
case.
.TP
.B "isascii()"
diff --git a/man3/killpg.3 b/man3/killpg.3
index 5cb52b027d..ca9e69f1fd 100644
--- a/man3/killpg.3
+++ b/man3/killpg.3
@@ -48,7 +48,7 @@ If
is greater than 1, it is equivalent to
.nf
.sp
-.BI kill(- pgrp , signal );
+.BI kill(\-pgrp , signal );
.fi
.SH "RETURN VALUE"
The value returned is \-1 on error, or 0 for success.
diff --git a/man3/mbrlen.3 b/man3/mbrlen.3
index ca9ecc0c1e..405ffe060a 100644
--- a/man3/mbrlen.3
+++ b/man3/mbrlen.3
@@ -29,13 +29,13 @@ null wide character, it returns the number of bytes that were consumed from
shift state \fI*ps\fP to the initial state and returns 0.
.PP
If the \fIn\fP bytes starting at \fIs\fP do not contain a complete multibyte
-character, \fBmbrlen\fP returns \fI(size_t)(-2)\fP. This can happen even if
+character, \fBmbrlen\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.
.PP
If the multibyte string starting at \fIs\fP contains an invalid multibyte
sequence before the next complete character, \fBmbrlen\fP returns
-\fI(size_t)(-1)\fP and sets \fBerrno\fP to \fBEILSEQ\fP. In this case,
+\fI(size_t)(\-1)\fP and sets \fBerrno\fP to \fBEILSEQ\fP. In this case,
the effects on \fI*ps\fP are undefined.
.PP
If \fIps\fP is a NULL pointer, a static anonymous state only known to the
@@ -43,9 +43,9 @@ mbrlen function is used instead.
.SH "RETURN VALUE"
The \fBmbrlen\fP function returns the number of bytes 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 (size_t)(-1)
+It returns 0, if a null wide character was recognized. It returns (size_t)(\-1)
and sets \fBerrno\fP to \fBEILSEQ\fP, if an invalid multibyte sequence was
-encountered. It returns (size_t)(-2) if it couldn't parse a complete multibyte
+encountered. It returns (size_t)(\-2) if it couldn't parse a complete multibyte
character, meaning that \fIn\fP should be increased.
.SH "CONFORMING TO"
ISO/ANSI C, UNIX98
diff --git a/man3/mbrtowc.3 b/man3/mbrtowc.3
index d32e93768a..3d1c765b35 100644
--- a/man3/mbrtowc.3
+++ b/man3/mbrtowc.3
@@ -32,13 +32,13 @@ from \fIs\fP. If the converted wide character is L'\\0', it resets the shift
state \fI*ps\fP to the initial state and returns 0.
.PP
If the \fIn\fP bytes starting at \fIs\fP do not contain a complete multibyte
-character, \fBmbrtowc\fP returns \fI(size_t)(-2)\fP. This can happen even if
+character, \fBmbrtowc\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.
.PP
If the multibyte string starting at \fIs\fP contains an invalid multibyte
sequence before the next complete character, \fBmbrtowc\fP returns
-\fI(size_t)(-1)\fP and sets \fBerrno\fP to \fBEILSEQ\fP. In this case,
+\fI(size_t)(\-1)\fP and sets \fBerrno\fP to \fBEILSEQ\fP. In this case,
the effects on \fI*ps\fP are undefined.
.PP
A different case is when \fIs\fP is not NULL but \fIpwc\fP is NULL. In this
@@ -48,7 +48,7 @@ store the converted wide character in memory.
A third case is when \fIs\fP is NULL. In this case, \fIpwc\fP and \fIn\fP are
ignored. If the conversion state represented by \fI*ps\fP denotes an
incomplete multibyte character conversion, the \fBmbrtowc\fP function
-returns \fI(size_t)(-1)\fP, sets \fBerrno\fP to \fBEILSEQ\fP, and
+returns \fI(size_t)(\-1)\fP, sets \fBerrno\fP to \fBEILSEQ\fP, and
leaves \fI*ps\fP in an undefined state. Otherwise, the \fBmbrtowc\fP function
puts \fI*ps\fP in the initial state and returns 0.
.PP
@@ -65,9 +65,10 @@ memset(&a, 0, sizeof(a));
The \fBmbrtowc\fP function returns the number of bytes parsed from the
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 (size_t)(-1)
+It returns 0, if a L'\\0' wide character was recognized.
+It returns (size_t)(\-1)
and sets \fBerrno\fP to \fBEILSEQ\fP, if an invalid multibyte sequence was
-encountered. It returns (size_t)(-2) if it couldn't parse a complete multibyte
+encountered. It returns (size_t)(\-2) if it couldn't parse a complete multibyte
character, meaning that \fIn\fP should be increased.
.SH "CONFORMING TO"
ISO/ANSI C, UNIX98
diff --git a/man3/mbsnrtowcs.3 b/man3/mbsnrtowcs.3
index 42a912c647..fb41523cd7 100644
--- a/man3/mbsnrtowcs.3
+++ b/man3/mbsnrtowcs.3
@@ -36,7 +36,7 @@ positive number, as long as this call succeeds, and then incrementing
conversion can stop for three reasons:
.PP
1. An invalid multibyte sequence has been encountered. In this case \fI*src\fP
-is left pointing to the invalid multibyte sequence, (size_t)(-1) is returned,
+is left pointing to the invalid multibyte sequence, (size_t)(\-1) is returned,
and \fBerrno\fP is set to \fBEILSEQ\fP.
.PP
2. The \fInms\fP limit forces a stop, or \fIlen\fP non-L'\\0' wide characters
@@ -63,7 +63,7 @@ characters at \fIdest\fP.
The \fBmbsnrtowcs\fP function returns the number of wide characters 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, (size_t)(-1) is returned, and \fBerrno\fP set to \fBEILSEQ\fP.
+encountered, (size_t)(\-1) is returned, and \fBerrno\fP set to \fBEILSEQ\fP.
.SH "CONFORMING TO"
This function is a GNU extension.
.SH "SEE ALSO"
diff --git a/man3/mbsrtowcs.3 b/man3/mbsrtowcs.3
index a7cea5cdbe..4fcc83ca28 100644
--- a/man3/mbsrtowcs.3
+++ b/man3/mbsrtowcs.3
@@ -32,7 +32,7 @@ positive number, as long as this call succeeds, and then incrementing
conversion can stop for three reasons:
.PP
1. An invalid multibyte sequence has been encountered. In this case \fI*src\fP
-is left pointing to the invalid multibyte sequence, (size_t)(-1) is returned,
+is left pointing to the invalid multibyte sequence, (size_t)(\-1) is returned,
and \fBerrno\fP is set to \fBEILSEQ\fP.
.PP
2. \fIlen\fP non-L'\\0' wide characters have been stored at \fIdest\fP. In this
@@ -58,7 +58,7 @@ characters at \fIdest\fP.
The \fBmbsrtowcs\fP function returns the number of wide characters 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, (size_t)(-1) is returned, and \fBerrno\fP set to \fBEILSEQ\fP.
+encountered, (size_t)(\-1) is returned, and \fBerrno\fP set to \fBEILSEQ\fP.
.SH "CONFORMING TO"
ISO/ANSI C, UNIX98
.SH "SEE ALSO"
diff --git a/man3/mbstowcs.3 b/man3/mbstowcs.3
index 59dc61bd7a..cfbabe9587 100644
--- a/man3/mbstowcs.3
+++ b/man3/mbstowcs.3
@@ -27,7 +27,7 @@ At most \fIn\fP wide characters are written to \fIdest\fP. The conversion starts
in the initial state. The conversion can stop for three reasons:
.PP
1. An invalid multibyte sequence has been encountered. In this case
-(size_t)(-1) is returned.
+(size_t)(\-1) is returned.
.PP
2. \fIn\fP non-L'\\0' wide characters have been stored at \fIdest\fP. In this
case the number of wide characters written to \fIdest\fP is returned, but the
@@ -50,7 +50,7 @@ greater or equal to \fImbstowcs(NULL,src,0)+1\fP.
The \fBmbstowcs\fP function returns the number of wide characters 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, (size_t)(-1) is returned.
+encountered, (size_t)(\-1) is returned.
.SH "CONFORMING TO"
ISO/ANSI C, UNIX98
.SH "SEE ALSO"
diff --git a/man3/printf.3 b/man3/printf.3
index 5a13dd0aee..59cdc7d887 100644
--- a/man3/printf.3
+++ b/man3/printf.3
@@ -773,10 +773,10 @@ make_message(const char *fmt, ...) {
n = vsnprintf (p, size, fmt, ap);
va_end(ap);
/* If that worked, return the string. */
- if (n > -1 && n < size)
+ if (n > \-1 && n < size)
return p;
/* Else try again with more space. */
- if (n > -1) /* glibc 2.1 */
+ if (n > \-1) /* glibc 2.1 */
size = n+1; /* precisely what is needed */
else /* glibc 2.0 */
size *= 2; /* twice the old size */
diff --git a/man3/scandir.3 b/man3/scandir.3
index 27b7256845..f11c96fddf 100644
--- a/man3/scandir.3
+++ b/man3/scandir.3
@@ -124,8 +124,8 @@ main(){
if (n < 0)
perror("scandir");
else {
- while(n--) {
- printf("%s\en", namelist[n]->d_name);
+ while(n\-\-) {
+ printf("%s\en", namelist[n]\->d_name);
free(namelist[n]);
}
free(namelist);
diff --git a/man3/signbit.3 b/man3/signbit.3
index 638ffcb6f3..f36e100475 100644
--- a/man3/signbit.3
+++ b/man3/signbit.3
@@ -16,8 +16,8 @@ types. It returns a non-zero value if the value of X has its sign
bit set.
.PP
This is not the same as `x < 0.0', because IEEE 754 floating point
-allows zero to be signed. The comparison `-0.0 < 0.0' is false,
-but `signbit (-0.0)' will return a non-zero value.
+allows zero to be signed. The comparison `\-0.0 < 0.0' is false,
+but `signbit (\-0.0)' will return a non-zero value.
.SH "CONFORMING TO"
This function is defined in IEC 559 (and the appendix with
recommended functions in IEEE 754/IEEE 854).
diff --git a/man3/sinh.3 b/man3/sinh.3
index 572be0f6d2..37734eb61a 100644
--- a/man3/sinh.3
+++ b/man3/sinh.3
@@ -46,7 +46,7 @@ sinh, sinhf, sinhl \- hyperbolic sine function
Link with \-lm.
.SH DESCRIPTION
The \fBsinh()\fP function returns the hyperbolic sine of \fIx\fP, which
-is defined mathematically as (exp(x) \- exp(-x)) / 2.
+is defined mathematically as (exp(x) \- exp(\-x)) / 2.
.SH "CONFORMING TO"
SVID 3, POSIX, BSD 4.3, ISO 9899 (C99).
The float and the long double variants are C99 requirements.
diff --git a/man3/tsearch.3 b/man3/tsearch.3
index 94686470f6..98f326c6f7 100644
--- a/man3/tsearch.3
+++ b/man3/tsearch.3
@@ -149,7 +149,7 @@ in order.
}
int compare(const void *pa, const void *pb) {
- if (*(int *)pa < *(int *)pb) return -1;
+ if (*(int *)pa < *(int *)pb) return \-1;
if (*(int *)pa > *(int *)pb) return 1;
return 0;
}
diff --git a/man3/wcrtomb.3 b/man3/wcrtomb.3
index fdac276d89..861b931ebe 100644
--- a/man3/wcrtomb.3
+++ b/man3/wcrtomb.3
@@ -46,7 +46,7 @@ state only known to the wcrtomb function is used instead.
The \fBwcrtomb\fP function returns the number of 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),
-(size_t)(-1) is returned, and \fBerrno\fP set to \fBEILSEQ\fP.
+(size_t)(\-1) is returned, and \fBerrno\fP set to \fBEILSEQ\fP.
.SH "CONFORMING TO"
ISO/ANSI C, UNIX98
.SH "SEE ALSO"
diff --git a/man3/wcsnrtombs.3 b/man3/wcsnrtombs.3
index 3ed5367731..efc77a41f7 100644
--- a/man3/wcsnrtombs.3
+++ b/man3/wcsnrtombs.3
@@ -36,7 +36,7 @@ by one. The conversion can stop for three reasons:
.PP
1. A wide character has been encountered that can not be represented as a
multibyte sequence (according to the current locale). In this case \fI*src\fP
-is left pointing to the invalid wide character, (size_t)(-1) is returned,
+is left pointing to the invalid wide character, (size_t)(\-1) is returned,
and \fBerrno\fP is set to \fBEILSEQ\fP.
.PP
2. \fInwc\fP wide characters have been converted without encountering a L'\\0',
@@ -62,7 +62,7 @@ at \fIdest\fP.
.SH "RETURN VALUE"
The \fBwcsnrtombs\fP 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, (size_t)(-1)
+If a wide character was encountered which could not be converted, (size_t)(\-1)
is returned, and \fBerrno\fP set to \fBEILSEQ\fP.
.SH "CONFORMING TO"
This function is a GNU extension.
diff --git a/man3/wcsrtombs.3 b/man3/wcsrtombs.3
index 51d5d099af..28738b99d1 100644
--- a/man3/wcsrtombs.3
+++ b/man3/wcsrtombs.3
@@ -32,7 +32,7 @@ by one. The conversion can stop for three reasons:
.PP
1. A wide character has been encountered that can not be represented as a
multibyte sequence (according to the current locale). In this case \fI*src\fP
-is left pointing to the invalid wide character, (size_t)(-1) is returned,
+is left pointing to the invalid wide character, (size_t)(\-1) is returned,
and
.I errno
is set to \fBEILSEQ\fP.
@@ -59,7 +59,7 @@ at \fIdest\fP.
.SH "RETURN VALUE"
The \fBwcsrtombs\fP 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, (size_t)(-1)
+If a wide character was encountered which could not be converted, (size_t)(\-1)
is returned, and
.I errno
set to \fBEILSEQ\fP.
diff --git a/man3/wcstombs.3 b/man3/wcstombs.3
index 17ce12ea24..b653b92811 100644
--- a/man3/wcstombs.3
+++ b/man3/wcstombs.3
@@ -28,7 +28,7 @@ starts in the initial state. The conversion can stop for three reasons:
.PP
1. A wide character has been encountered that can not be represented as a
multibyte sequence (according to the current locale). In this case
-(size_t)(-1) is returned.
+(size_t)(\-1) is returned.
.PP
2. The length limit forces a stop. In this case the number of bytes written to
\fIdest\fP is returned, but the shift state at this point is lost.
@@ -50,7 +50,7 @@ is greater or equal to \fIwcstombs(NULL,src,0)+1\fP.
.SH "RETURN VALUE"
The \fBwcstombs\fP 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, (size_t)(-1)
+If a wide character was encountered which could not be converted, (size_t)(\-1)
is returned.
.SH "CONFORMING TO"
ISO/ANSI C, UNIX98
diff --git a/man3/wctrans.3 b/man3/wctrans.3
index 832ded37bf..5275d8a4c3 100644
--- a/man3/wctrans.3
+++ b/man3/wctrans.3
@@ -23,7 +23,7 @@ wctrans \- wide character translation mapping
.SH DESCRIPTION
The \fBwctrans_t\fP type represents a mapping which can map a wide character to
another wide character. Its nature is implementation dependent, but the special
-value \fI(wctrans_t)0\fP denotes an invalid mapping. Nonzero \fBwctrans_t\fP
+value \fI(wctrans_t)\ 0\fP denotes an invalid mapping. Nonzero \fBwctrans_t\fP
values can be passed to the \fBtowctrans\fP function to actually perform
the wide character mapping.
.PP
@@ -31,8 +31,8 @@ The \fBwctrans\fP function returns a mapping, given by its name. The set of
valid names depends on the LC_CTYPE category of the current locale, but the
following names are valid in all locales.
.nf
- "tolower" - realizes the \fBtolower\fP(3) mapping
- "toupper" - realizes the \fBtoupper\fP(3) mapping
+ "tolower" \- realizes the \fBtolower\fP(3) mapping
+ "toupper" \- realizes the \fBtoupper\fP(3) mapping
.fi
.SH "RETURN VALUE"
The \fBwctrans\fP function returns a mapping descriptor if the \fIname\fP
diff --git a/man3/wctype.3 b/man3/wctype.3
index c6fba8e927..81eeba800b 100644
--- a/man3/wctype.3
+++ b/man3/wctype.3
@@ -32,18 +32,18 @@ The \fBwctype\fP function returns a property, given by its name. The set of
valid names depends on the LC_CTYPE category of the current locale, but the
following names are valid in all locales.
.nf
- "alnum" - realizes the \fBisalnum\fP classification function
- "alpha" - realizes the \fBisalpha\fP classification function
- "blank" - realizes the \fBisblank\fP classification function
- "cntrl" - realizes the \fBiscntrl\fP classification function
- "digit" - realizes the \fBisdigit\fP classification function
- "graph" - realizes the \fBisgraph\fP classification function
- "lower" - realizes the \fBislower\fP classification function
- "print" - realizes the \fBisprint\fP classification function
- "punct" - realizes the \fBispunct\fP classification function
- "space" - realizes the \fBisspace\fP classification function
- "upper" - realizes the \fBisupper\fP classification function
- "xdigit" - realizes the \fBisxdigit\fP classification function
+ "alnum" \- realizes the \fBisalnum\fP classification function
+ "alpha" \- realizes the \fBisalpha\fP classification function
+ "blank" \- realizes the \fBisblank\fP classification function
+ "cntrl" \- realizes the \fBiscntrl\fP classification function
+ "digit" \- realizes the \fBisdigit\fP classification function
+ "graph" \- realizes the \fBisgraph\fP classification function
+ "lower" \- realizes the \fBislower\fP classification function
+ "print" \- realizes the \fBisprint\fP classification function
+ "punct" \- realizes the \fBispunct\fP classification function
+ "space" \- realizes the \fBisspace\fP classification function
+ "upper" \- realizes the \fBisupper\fP classification function
+ "xdigit" \- realizes the \fBisxdigit\fP classification function
.fi
.SH "RETURN VALUE"
The \fBwctype\fP function returns a property descriptor if the \fIname\fP is