diff options
author | Michael Kerrisk <mtk.manpages@gmail.com> | 2005-07-06 12:57:38 +0000 |
---|---|---|
committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2005-07-06 12:57:38 +0000 |
commit | 2bc2f4798feabd972879ff8f1633b08e337f57e1 (patch) | |
tree | 7c2c27db04f020b2ec55c5e24bf135161c5d0b84 | |
parent | 06795d3a1f10b71e1da07ac269240455d40e62b3 (diff) |
hyphen/dash fixes
67 files changed, 173 insertions, 172 deletions
@@ -46,7 +46,7 @@ may be shorter. .PP The numeric-valued options below (bytes and blocks) can be followed by a multiplier: `k'=1024, `b'=512, `w'=2, `c'=1 -(`w' and `c' are GNU extensions; `w' should never be used - +(`w' and `c' are GNU extensions; `w' should never be used \- it means 2 in System V and 4 in 4.2BSD). Two or more of such numeric expressions can be multiplied by putting `x' in between. diff --git a/man1/dircolors.1 b/man1/dircolors.1 index 5670e608..306c72e8 100644 --- a/man1/dircolors.1 +++ b/man1/dircolors.1 @@ -96,7 +96,7 @@ This implementation is not entirely compatible with the original .BR dircolors / color-ls package distributed with Slackware Linux. Notably, specific support for the Z shell and Korn shell is not present. Users of these shells -should use the Bourne shell (-b) mode. +should use the Bourne shell (\-b) mode. .SH "SEE ALSO" .BR ls (1), .BR dir_colors (5) diff --git a/man1/intro.1 b/man1/intro.1 index 7a51e2d3..33860047 100644 --- a/man1/intro.1 +++ b/man1/intro.1 @@ -80,7 +80,7 @@ Su Mo Tu We Th Fr Sa .BI "% " ls bin tel -.BI "% " "ls -l" +.BI "% " "ls \-l" total 2 drwxrwxr-x 2 aeb 1024 Aug 6 23:51 bin -rw-rw-r-- 1 aeb 37 Aug 6 23:52 tel @@ -88,13 +88,13 @@ drwxrwxr-x 2 aeb 1024 Aug 6 23:51 bin maja 0501-1136285 peter 0136-7399214 .BI "% " "cp tel tel2" -.BI "% " "ls -l" +.BI "% " "ls \-l" total 3 drwxr-xr-x 2 aeb 1024 Aug 6 23:51 bin -rw-r--r-- 1 aeb 37 Aug 6 23:52 tel -rw-r--r-- 1 aeb 37 Aug 6 23:53 tel2 .BI "% " "mv tel tel1" -.BI "% " "ls -l" +.BI "% " "ls \-l" total 3 drwxr-xr-x 2 aeb 1024 Aug 6 23:51 bin -rw-r--r-- 1 aeb 37 Aug 6 23:52 tel1 @@ -297,24 +297,24 @@ and is especially useful when browsing directories that contain many files with indices/version numbers in their names. For example: .nf - > ls -1 > ls -1v - foo.zml-1.gz foo.zml-1.gz - foo.zml-100.gz foo.zml-12.gz - foo.zml-12.gz foo.zml-25.gz - foo.zml-25.gz foo.zml-100.gz + > ls \-1 > ls \-1v + foo.zml\-1.gz foo.zml\-1.gz + foo.zml\-100.gz foo.zml\-12.gz + foo.zml\-12.gz foo.zml\-25.gz + foo.zml\-25.gz foo.zml\-100.gz .fi Note also that numeric parts with leading zeroes are considered as fractional: .nf - > ls -1 > ls -1v - abc-1.007.tgz abc-1.007.tgz - abc-1.012b.tgz abc-1.01a.tgz - abc-1.01a.tgz abc-1.012b.tgz + > ls \-1 > ls \-1v + abc\-1.007.tgz abc\-1.007.tgz + abc\-1.012b.tgz abc\-1.01a.tgz + abc\-1.01a.tgz abc\-1.012b.tgz .fi -(New in file\%utils-4.0.) +(New in file\%utils\-4.0.) .TP .BI "\-w, \-\-width " cols Assume the screen is diff --git a/man2/kill.2 b/man2/kill.2 index ac4af435..3d277a76 100644 --- a/man2/kill.2 +++ b/man2/kill.2 @@ -109,11 +109,11 @@ has explicitly installed signal handlers. This is done to assure the system is not brought down accidentally. .LP -POSIX 1003.1-2001 requires that \fIkill(-1,sig)\fP send \fIsig\fP +POSIX 1003.1-2001 requires that \fIkill(\-1,sig)\fP send \fIsig\fP to all processes that the current process may send signals to, except possibly for some implementation-defined system processes. Linux allows a process to signal itself, but on Linux the call -\fIkill(-1,sig)\fP does not signal the current process. +\fIkill(-\1,sig)\fP does not signal the current process. .LP POSIX 1003.1-2003 requires that if a process sends a signal to itself, and that process does not have the signal blocked, and no other thread diff --git a/man2/path_resolution.2 b/man2/path_resolution.2 index b88ddea5..96e98deb 100644 --- a/man2/path_resolution.2 +++ b/man2/path_resolution.2 @@ -91,10 +91,10 @@ exceeded ("Too many levels of symbolic links"). The lookup of the final component of the pathname goes just like that of all other components, as described in the previous step, with two differences: (i) the final component need not be a -directory (at least as far as the path resolution process is concerned - +directory (at least as far as the path resolution process is concerned \- it may have to be a directory, or a non-directory, because of the requirements of the specific system call), and (ii) it -is not necessarily an error if the component is not found - +is not necessarily an error if the component is not found \- maybe we are just creating it. The details on the treatment of the final entry are described in the manual pages of the specific system calls. diff --git a/man2/select.2 b/man2/select.2 index e63b9772..a62ffaa9 100644 --- a/man2/select.2 +++ b/man2/select.2 @@ -283,7 +283,7 @@ main(void) { retval = select(1, &rfds, NULL, NULL, &tv); /* Don't rely on the value of tv now! */ - if (retval == -1) + if (retval == \-1) perror("select()"); else if (retval) printf("Data is available now.\\n"); diff --git a/man2/select_tut.2 b/man2/select_tut.2 index a31832df..b29f69e6 100644 --- a/man2/select_tut.2 +++ b/man2/select_tut.2 @@ -192,7 +192,7 @@ int main (int argc, char **argv) { signal (SIGCHLD, child_sig_handler); for (;;) { /* main loop */ - for (; child_events > 0; child_events--) { + for (; child_events > 0; child_events\-\-) { /* do event work here */ } r = pselect (nfds, &rd, &wr, &er, 0, &orig_sigmask); @@ -260,7 +260,7 @@ main(void) { retval = select(1, &rfds, NULL, NULL, &tv); /* Don't rely on the value of tv now! */ - if (retval == -1) + if (retval == \-1) perror("select()"); else if (retval) printf("Data is available now.\\n"); @@ -304,7 +304,7 @@ static int listen_socket (int listen_port) { int yes; if ((s = socket (AF_INET, SOCK_STREAM, 0)) < 0) { perror ("socket"); - return -1; + return \-1; } yes = 1; if (setsockopt @@ -312,7 +312,7 @@ static int listen_socket (int listen_port) { (char *) &yes, sizeof (yes)) < 0) { perror ("setsockopt"); close (s); - return -1; + return \-1; } memset (&a, 0, sizeof (a)); a.sin_port = htons (listen_port); @@ -321,7 +321,7 @@ static int listen_socket (int listen_port) { (s, (struct sockaddr *) &a, sizeof (a)) < 0) { perror ("bind"); close (s); - return -1; + return \-1; } printf ("accepting connections on port %d\\n", (int) listen_port); @@ -336,7 +336,7 @@ static int connect_socket (int connect_port, if ((s = socket (AF_INET, SOCK_STREAM, 0)) < 0) { perror ("socket"); close (s); - return -1; + return \-1; } memset (&a, 0, sizeof (a)); @@ -348,7 +348,7 @@ static int connect_socket (int connect_port, (struct in_addr *) &a.sin_addr.s_addr)) { perror ("bad IP address format"); close (s); - return -1; + return \-1; } if (connect @@ -357,7 +357,7 @@ static int connect_socket (int connect_port, perror ("connect()"); shutdown (s, SHUT_RDWR); close (s); - return -1; + return \-1; } return s; } @@ -366,7 +366,7 @@ static int connect_socket (int connect_port, if (fd1 >= 0) { \\ shutdown (fd1, SHUT_RDWR); \\ close (fd1); \\ - fd1 = -1; \\ + fd1 = \-1; \\ } \\ } @@ -374,7 +374,7 @@ static int connect_socket (int connect_port, if (fd2 >= 0) { \\ shutdown (fd2, SHUT_RDWR); \\ close (fd2); \\ - fd2 = -1; \\ + fd2 = \-1; \\ } \\ } @@ -382,7 +382,7 @@ static int connect_socket (int connect_port, int main (int argc, char **argv) { int h; - int fd1 = -1, fd2 = -1; + int fd1 = \-1, fd2 = \-1; char buf1[BUF_SIZE], buf2[BUF_SIZE]; int buf1_avail, buf1_written; int buf2_avail, buf2_written; @@ -419,12 +419,12 @@ int main (int argc, char **argv) { nfds = max (nfds, fd2); } if (fd1 > 0 - && buf2_avail - buf2_written > 0) { + && buf2_avail \- buf2_written > 0) { FD_SET (fd1, &wr); nfds = max (nfds, fd1); } if (fd2 > 0 - && buf1_avail - buf1_written > 0) { + && buf1_avail \- buf1_written > 0) { FD_SET (fd2, &wr); nfds = max (nfds, fd2); } @@ -439,7 +439,7 @@ int main (int argc, char **argv) { r = select (nfds + 1, &rd, &wr, &er, NULL); - if (r == -1 && errno == EINTR) + if (r == \-1 && errno == EINTR) continue; if (r < 0) { perror ("select()"); @@ -496,7 +496,7 @@ int main (int argc, char **argv) { if (FD_ISSET (fd1, &rd)) { r = read (fd1, buf1 + buf1_avail, - BUF_SIZE - buf1_avail); + BUF_SIZE \- buf1_avail); if (r < 1) { SHUT_FD1; } else @@ -506,7 +506,7 @@ int main (int argc, char **argv) { if (FD_ISSET (fd2, &rd)) { r = read (fd2, buf2 + buf2_avail, - BUF_SIZE - buf2_avail); + BUF_SIZE \- buf2_avail); if (r < 1) { SHUT_FD2; } else @@ -517,7 +517,7 @@ int main (int argc, char **argv) { r = write (fd1, buf2 + buf2_written, - buf2_avail - + buf2_avail \- buf2_written); if (r < 1) { SHUT_FD1; @@ -529,7 +529,7 @@ int main (int argc, char **argv) { r = write (fd2, buf1 + buf1_written, - buf1_avail - + buf1_avail \- buf1_written); if (r < 1) { SHUT_FD2; @@ -544,11 +544,11 @@ int main (int argc, char **argv) { /* one side has closed the connection, keep writing to the other side until empty */ if (fd1 < 0 - && buf1_avail - buf1_written == 0) { + && buf1_avail \- buf1_written == 0) { SHUT_FD2; } if (fd2 < 0 - && buf2_avail - buf2_written == 0) { + && buf2_avail \- buf2_written == 0) { SHUT_FD1; } } @@ -567,7 +567,7 @@ to have inefficient timeouts. The program does not handle more than one simultaneous connection at a time, although it could easily be extended to do this with a linked list -of buffers - one for each connection. At the moment, new +of buffers \(em one for each connection. At the moment, new connections cause the current connection to be dropped. .SH SELECT LAW diff --git a/man2/seteuid.2 b/man2/seteuid.2 index 03927f0a..0b81bb9b 100644 --- a/man2/seteuid.2 +++ b/man2/seteuid.2 @@ -79,10 +79,10 @@ On an arbitrary system one should check _POSIX_SAVED_IDS. Under libc4, libc5 and glibc2.0 .BI seteuid( euid ) is equivalent to -.BI setreuid(-1, " euid" ) +.BI setreuid(\-1, " euid" ) and hence may change the saved user ID. Under glibc2.1 it is equivalent to -.BI setresuid(-1, " euid" ,-1) +.BI setresuid(\-1, " euid" ,\-1) and hence does not change the saved user ID. Similar remarks hold for .BR setegid . diff --git a/man2/sigaltstack.2 b/man2/sigaltstack.2 index 42668d36..10141f43 100644 --- a/man2/sigaltstack.2 +++ b/man2/sigaltstack.2 @@ -130,7 +130,7 @@ if (ss.ss_sp == NULL) /* Handle error */; ss.ss_size = SIGSTKSZ; ss.ss_flags = 0; -if (sigaltstack(&ss, NULL) == -1) +if (sigaltstack(&ss, NULL) == \-1) /* Handle error */; .fi .RE diff --git a/man2/syslog.2 b/man2/syslog.2 index 86bc6f5e..6969337c 100644 --- a/man2/syslog.2 +++ b/man2/syslog.2 @@ -64,16 +64,16 @@ Quoting from /* * Commands to sys_syslog: * - * 0 -- Close the log. Currently a NOP. - * 1 -- Open the log. Currently a NOP. - * 2 -- Read from the log. - * 3 -- Read up to the last 4k of messages in the ring buffer. - * 4 -- Read and clear last 4k of messages in the ring buffer - * 5 -- Clear ring buffer. - * 6 -- Disable printk's to console - * 7 -- Enable printk's to console - * 8 -- Set level of messages printed to console - * 9 -- Return number of unread characters in the log buffer + * 0 \-\- Close the log. Currently a NOP. + * 1 \-\- Open the log. Currently a NOP. + * 2 \-\- Read from the log. + * 3 \-\- Read up to the last 4k of messages in the ring buffer. + * 4 \-\- Read and clear last 4k of messages in the ring buffer + * 5 \-\- Clear ring buffer. + * 6 \-\- Disable printk's to console + * 7 \-\- Enable printk's to console + * 8 \-\- Set level of messages printed to console + * 9 \-\- Return number of unread characters in the log buffer */ .fi diff --git a/man2/wait.2 b/man2/wait.2 index 02c70f8a..11241393 100644 --- a/man2/wait.2 +++ b/man2/wait.2 @@ -92,7 +92,7 @@ The call is equivalent to: .nf - waitpid(-1, &status, 0); + waitpid(\-1, &status, 0); .fi The diff --git a/man2/wait4.2 b/man2/wait4.2 index 0091ad27..5654d33e 100644 --- a/man2/wait4.2 +++ b/man2/wait4.2 @@ -71,7 +71,7 @@ call: is equivalent to: .nf - waitpid(-1, status, options); + waitpid(\-1, status, options); .fi Similarly, the following diff --git a/man3/ccos.3 b/man3/ccos.3 index 0caec5af..801a7b17 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 ca5a2aff..55e681c7 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 25439ad9..d8c71baa 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 69dca0a7..ed6541c2 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 55f0814d..2fe270e7 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 c4119022..d2c7d04a 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 d166d3ff..ff658c02 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 21f0090f..abdd5941 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. @@ -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 26ea166f..09f1c1f8 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 @@ -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). @@ -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 615adff4..b7cda73c 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 026969dc..d886c2bd 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 f5d7688e..62a3981b 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 5a51b141..2e5c78ea 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 8cb38f17..cb72cb6c 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 4c09758d..b69c53b5 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 4e544824..74a48a80 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 f9220395..43f41275 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 5cb52b02..ca9e69f1 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 ca9ecc0c..405ffe06 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 d32e9376..3d1c765b 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 42a912c6..fb41523c 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 a7cea5cd..4fcc83ca 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 59dc61bd..cfbabe95 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 5a13dd0a..59cdc7d8 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 27b72568..f11c96fd 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 638ffcb6..f36e1004 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 572be0f6..37734eb6 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 94686470..98f326c6 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 fdac276d..861b931e 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 3ed53677..efc77a41 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 51d5d099..28738b99 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 17ce12ea..b653b928 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 832ded37..5275d8a4 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 c6fba8e9..81eeba80 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 diff --git a/man4/console_codes.4 b/man4/console_codes.4 index 1ab5484e..dfd6eb1c 100644 --- a/man4/console_codes.4 +++ b/man4/console_codes.4 @@ -130,12 +130,12 @@ ESC % Start sequence selecting character set ESC % @ \0\0\0Select default (ISO 646 / ISO 8859-1) ESC % G \0\0\0Select UTF-8 ESC % 8 \0\0\0Select UTF-8 (obsolete) -ESC # 8 DECALN DEC screen alignment test - fill screen with E's. +ESC # 8 DECALN DEC screen alignment test \- fill screen with E's. ESC ( Start sequence defining G0 character set ESC ( B \0\0\0Select default (ISO 8859-1 mapping) ESC ( 0 \0\0\0Select vt100 graphics mapping -ESC ( U \0\0\0Select null mapping - straight to character ROM -ESC ( K \0\0\0Select user mapping - the map that is loaded by +ESC ( U \0\0\0Select null mapping \- straight to character ROM +ESC ( K \0\0\0Select user mapping \- the map that is loaded by \0\0\0the utility \fBmapscrn\fP(8). ESC ) Start sequence defining G1 (followed by one of B, 0, U, K, as above). diff --git a/man4/epoll.4 b/man4/epoll.4 index 2ba0d36a..e32aa37f 100644 --- a/man4/epoll.4 +++ b/man4/epoll.4 @@ -184,7 +184,7 @@ from where it stopped before. struct epoll_event ev, *events; for(;;) { - nfds = epoll_wait(kdpfd, events, maxevents, -1); + nfds = epoll_wait(kdpfd, events, maxevents, \-1); for(n = 0; n < nfds; ++n) { if(events[n].data.fd == listener) { @@ -200,7 +200,7 @@ for(;;) { if (epoll_ctl(kdpfd, EPOLL_CTL_ADD, client, &ev) < 0) { fprintf(stderr, "epoll set insertion error: fd=%d\n", client); - return -1; + return \-1; } } else diff --git a/man4/full.4 b/man4/full.4 index 7d15fe20..90b818ee 100644 --- a/man4/full.4 +++ b/man4/full.4 @@ -40,7 +40,7 @@ If your system does not have \fB/dev/full\fP created already, it can be created with the following commands: .nf - mknod -m 666 /dev/full c 1 7 + mknod \-m 666 /dev/full c 1 7 chown root:root /dev/full .fi diff --git a/man4/initrd.4 b/man4/initrd.4 index e3aa0e73..b3cc74e1 100644 --- a/man4/initrd.4 +++ b/man4/initrd.4 @@ -350,7 +350,7 @@ If the Linux system does not have already created, it can be created with the following commands: .nf \fB - mknod -m 400 /dev/initrd b 1 250 + mknod \-m 400 /dev/initrd b 1 250 chown root:disk /dev/initrd \fP .fi diff --git a/man4/random.4 b/man4/random.4 index 5daaf771..c94f0704 100644 --- a/man4/random.4 +++ b/man4/random.4 @@ -49,8 +49,8 @@ If your system does not have can be created with the following commands: .nf - mknod -m 644 /dev/random c 1 8 - mknod -m 644 /dev/urandom c 1 9 + mknod \-m 644 /dev/random c 1 8 + mknod \-m 644 /dev/urandom c 1 9 chown root:root /dev/random /dev/urandom .fi @@ -67,14 +67,14 @@ which is run during the Linux system start-up sequence: random_seed=/var/run/random-seed # Carry a random seed from start-up to start-up # Load and then save the whole entropy pool - if [ -f $random_seed ]; then + if [ \-f $random_seed ]; then cat $random_seed >/dev/urandom else touch $random_seed fi chmod 600 $random_seed poolfile=/proc/sys/kernel/random/poolsize - [ -r $poolfile ] && bytes=`cat $poolfile` || bytes=512 + [ \-r $poolfile ] && bytes=`cat $poolfile` || bytes=512 dd if=/dev/urandom of=$random_seed count=1 bs=$bytes .fi @@ -89,7 +89,7 @@ run during the Linux system shutdown: touch $random_seed chmod 600 $random_seed poolfile=/proc/sys/kernel/random/poolsize - [ -r $poolfile ] && bytes=`cat $poolfile` || bytes=512 + [ \-r $poolfile ] && bytes=`cat $poolfile` || bytes=512 dd if=/dev/urandom of=$random_seed count=1 bs=$bytes .fi .SH "PROC INTERFACE" @@ -73,14 +73,14 @@ with two minor numbers for different options.) Devices are typically created by: .RS .nf -mknod -m 666 /dev/st0 c 9 0 -mknod -m 666 /dev/st0l c 9 32 -mknod -m 666 /dev/st0m c 9 64 -mknod -m 666 /dev/st0a c 9 96 -mknod -m 666 /dev/nst0 c 9 128 -mknod -m 666 /dev/nst0l c 9 160 -mknod -m 666 /dev/nst0m c 9 192 -mknod -m 666 /dev/nst0a c 9 224 +mknod \-m 666 /dev/st0 c 9 0 +mknod \-m 666 /dev/st0l c 9 32 +mknod \-m 666 /dev/st0m c 9 64 +mknod \-m 666 /dev/st0a c 9 96 +mknod \-m 666 /dev/nst0 c 9 128 +mknod \-m 666 /dev/nst0l c 9 160 +mknod \-m 666 /dev/nst0m c 9 192 +mknod \-m 666 /dev/nst0a c 9 224 .fi .RE .PP @@ -533,7 +533,7 @@ This request takes an argument of type .BR "(struct mtget *)" . .PP .nf -/* structure for \s-1MTIOCGET\s+1 - mag tape get status command */ +/* structure for \s-1MTIOCGET\s+1 \- mag tape get status command */ struct mtget { long mt_type; long mt_resid; @@ -641,7 +641,7 @@ or a Tandberg-compatible SCSI-1 drive (Tandberg, Archive Viper, Wangtek, ... ). .PP .nf -/* structure for \s-1MTIOCPOS\s+1 - mag tape get position command */ +/* structure for \s-1MTIOCPOS\s+1 \- mag tape get position command */ struct mtpos { long mt_blkno; /* current block number */ }; @@ -48,8 +48,8 @@ The devices for the first eight virtual consoles may be created by: .nf for x in 0 1 2 3 4 5 6 7 8; do - mknod -m 644 /dev/vcs$x c 7 $x; - mknod -m 644 /dev/vcsa$x c 7 $[$x+128]; + mknod \-m 644 /dev/vcs$x c 7 $x; + mknod \-m 644 /dev/vcsa$x c 7 $[$x+128]; done chown root:tty /dev/vcs* .fi @@ -93,7 +93,7 @@ there: (void)read(fd, &attrib, 1); printf("ch='%c' attrib=0x%02x\\n", ch, attrib); attrib ^= 0x10; - (void)lseek(fd, -1, 1); + (void)lseek(fd, \-1, 1); (void)write(fd, &attrib, 1); return 0; } diff --git a/man5/complex.5 b/man5/complex.5 index aad6012f..227e6075 100644 --- a/man5/complex.5 +++ b/man5/complex.5 @@ -32,7 +32,7 @@ Your C-compiler can work with complex numbers if it supports the C99 standard. Link with \-lm. The imaginary unit is represented by I. .sp .nf -/* check that exp(i*pi) == -1 */ +/* check that exp(i*pi) == \-1 */ #include <math.h> /* for atan */ #include <complex.h> main() { diff --git a/man5/nscd.conf.5 b/man5/nscd.conf.5 index 21864846..147dadf4 100644 --- a/man5/nscd.conf.5 +++ b/man5/nscd.conf.5 @@ -57,7 +57,7 @@ requests. At least five threads will always be created. .I user .RS If this option is set, nscd will run as this user and not as root. -If a separate cache for every user is used (-S parameter), this +If a separate cache for every user is used (\-S parameter), this option is ignored. .RE diff --git a/man5/proc.5 b/man5/proc.5 index a41ac14a..41cbd2e6 100644 --- a/man5/proc.5 +++ b/man5/proc.5 @@ -136,7 +136,7 @@ an output file: .br .nf -\f(CWfoobar -i /proc/self/fd/0 -o /proc/self/fd/1 ...\fR +\f(CWfoobar \-i /proc/self/fd/0 \-o /proc/self/fd/1 ...\fR .fi .br diff --git a/man5/services.5 b/man5/services.5 index 6a9a855d..063dd135 100644 --- a/man5/services.5 +++ b/man5/services.5 @@ -163,7 +163,7 @@ msp 18/udp # message send protocol chargen 19/tcp ttytst source chargen 19/udp ttytst source ftp 21/tcp -# 22 - unassigned +# 22 \- unassigned telnet 23/tcp .sp .fi diff --git a/man5/slabinfo.5 b/man5/slabinfo.5 index ec53777f..07b8fcea 100644 --- a/man5/slabinfo.5 +++ b/man5/slabinfo.5 @@ -35,7 +35,7 @@ gives statistics. For example: .RS .nf % cat /proc/slabinfo -slabinfo - version: 1.1 +slabinfo \- version: 1.1 kmem_cache 60 78 100 2 2 1 blkdev_requests 5120 5120 96 128 128 1 mnt_cache 20 40 96 1 1 1 diff --git a/man7/ascii.7 b/man7/ascii.7 index e6f41086..e8ae5099 100644 --- a/man7/ascii.7 +++ b/man7/ascii.7 @@ -169,7 +169,7 @@ For convenience, let us give more compact tables in hex and decimal. 2: " 2 B R b r 2: * 4 > H R \e f p z 3: # 3 C S c s 3: ! + 5 ? I S ] g q { 4: $ 4 D T d t 4: " , 6 @ J T ^ h r | -5: % 5 E U e u 5: # - 7 A K U _ i s } +5: % 5 E U e u 5: # \- 7 A K U _ i s } 6: & 6 F V f v 6: $ . 8 B L V ` j t ~ 7: ' 7 G W g w 7: % / 9 C M W a k u DEL 8: ( 8 H X h x 8: & 0 : D N X b l v @@ -177,7 +177,7 @@ For convenience, let us give more compact tables in hex and decimal. A: * : J Z j z B: + ; K [ k { C: , < L \e l | -D: - = M ] m } +D: \- = M ] m } E: . > N ^ n ~ F: / ? O _ o DEL .fi diff --git a/man7/glob.7 b/man7/glob.7 index e432c3c2..62709587 100644 --- a/man7/glob.7 +++ b/man7/glob.7 @@ -95,7 +95,7 @@ definition. It allowed one to have patterns that expand into an empty list, as in .br .nf - xv -wait 0 *.gif *.jpg + xv \-wait 0 *.gif *.jpg .fi where perhaps no *.gif files are present (and this is not an error). @@ -110,12 +110,12 @@ one can force the classical behaviour by setting (Similar problems occur elsewhere. E.g., where old scripts have .br .nf - rm `find . -name "*~"` + rm `find . \-name "*~"` .fi new scripts require .br .nf - rm -f nosuchfile `find . -name "*~"` + rm \-f nosuchfile `find . \-name "*~"` .fi to avoid error messages from .I rm diff --git a/man7/mdoc.7 b/man7/mdoc.7 index 3c2f1090..c0250ded 100644 --- a/man7/mdoc.7 +++ b/man7/mdoc.7 @@ -308,7 +308,7 @@ Produces .It Li \&Op Ta Yes Ta Yes Ta "Option (also .Oo and .Oc)." .It Li \&Ot Ta Yes Ta Yes Ta "Old style function type (Fortran only)." .It Li \&Pa Ta Yes Ta Yes Ta "Pathname or file name." -.It Li \&St Ta Yes Ta Yes Ta "Standards (-p1003.2, -p1003.1 or -ansiC)" +.It Li \&St Ta Yes Ta Yes Ta "Standards (\-p1003.2, \-p1003.1 or \-ansiC)" .It Li \&Va Ta Yes Ta Yes Ta "Variable name." .It Li \&Vt Ta Yes Ta Yes Ta "Variable type (Fortran only)." .It Li \&Xr Ta Yes Ta Yes Ta "Manual Page Cross Reference." diff --git a/man7/pthreads.7 b/man7/pthreads.7 index 3f27095c..895edc9d 100644 --- a/man7/pthreads.7 +++ b/man7/pthreads.7 @@ -289,7 +289,7 @@ be sufficient to determine the default threading implementation: .in +4 bash$ $( ldd /bin/ls | grep libc.so | awk '{print $3}' ) | \\ - egrep -i 'threads|ntpl' + egrep \-i 'threads|ntpl' Native POSIX Threads Library by Ulrich Drepper et al .in -4 .fi @@ -310,7 +310,7 @@ For example: .in +4 bash$ $( LD_ASSUME_KERNEL=2.2.5 ldd /bin/ls | grep libc.so | \\ - awk '{print $3}' ) | egrep -i 'threads|ntpl' + awk '{print $3}' ) | egrep \-i 'threads|ntpl' linuxthreads-0.10 by Xavier Leroy .in -4 .fi @@ -184,7 +184,7 @@ option can harm the clients of your server. .TP .BR tcp_adv_win_scale " (integer; default: 2)" Count buffering overhead as bytes/2^tcp_adv_win_scale -(if tcp_adv_win_scale > 0) or bytes-bytes/2^(-tcp_adv_win_scale), +(if tcp_adv_win_scale > 0) or bytes-bytes/2^(\-tcp_adv_win_scale), if it is <= 0. The socket receive buffer space is shared between the |