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 /man2 | |
| parent | 06795d3a1f10b71e1da07ac269240455d40e62b3 (diff) | |
| download | man-pages-2bc2f4798feabd972879ff8f1633b08e337f57e1.tar.gz | |
hyphen/dash fixes
Diffstat (limited to 'man2')
| -rw-r--r-- | man2/kill.2 | 4 | ||||
| -rw-r--r-- | man2/path_resolution.2 | 4 | ||||
| -rw-r--r-- | man2/select.2 | 2 | ||||
| -rw-r--r-- | man2/select_tut.2 | 42 | ||||
| -rw-r--r-- | man2/seteuid.2 | 4 | ||||
| -rw-r--r-- | man2/sigaltstack.2 | 2 | ||||
| -rw-r--r-- | man2/syslog.2 | 20 | ||||
| -rw-r--r-- | man2/wait.2 | 2 | ||||
| -rw-r--r-- | man2/wait4.2 | 2 |
9 files changed, 41 insertions, 41 deletions
diff --git a/man2/kill.2 b/man2/kill.2 index ac4af43550..3d277a7649 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 b88ddea556..96e98deb44 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 e63b97726e..a62ffaa900 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 a31832dfa1..b29f69e646 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 03927f0a47..0b81bb9b7f 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 42668d3616..10141f4314 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 86bc6f5ede..6969337ca5 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 02c70f8aeb..112413933a 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 0091ad2715..5654d33e86 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 |
