diff options
| -rw-r--r-- | man2/mprotect.2 | 2 | ||||
| -rw-r--r-- | man2/readv.2 | 2 | ||||
| -rw-r--r-- | man2/sigaltstack.2 | 2 | ||||
| -rw-r--r-- | man2/sigreturn.2 | 2 | ||||
| -rw-r--r-- | man3/ctime.3 | 2 | ||||
| -rw-r--r-- | man3/scandir.3 | 2 | ||||
| -rw-r--r-- | man4/random.4 | 2 | ||||
| -rw-r--r-- | man7/pkeys.7 | 4 |
8 files changed, 9 insertions, 9 deletions
diff --git a/man2/mprotect.2 b/man2/mprotect.2 index f08cca2dfa..5f90724d48 100644 --- a/man2/mprotect.2 +++ b/man2/mprotect.2 @@ -278,7 +278,7 @@ On systems that do not support protection keys in hardware, .BR pkey_mprotect () may still be used, but .IR pkey -must be set to -1. +must be set to \-1. When called this way, the operation of .BR pkey_mprotect () is equivalent to diff --git a/man2/readv.2 b/man2/readv.2 index 4edca704f7..472adcf734 100644 --- a/man2/readv.2 +++ b/man2/readv.2 @@ -240,7 +240,7 @@ If this flag is specified, the system call will return instantly if it would have to read data from the backing storage or wait for a lock. If some data was successfully read, it will return the number of bytes read. -If no bytes were read, it will return -1 and set +If no bytes were read, it will return \-1 and set .IR errno to .BR EAGAIN . diff --git a/man2/sigaltstack.2 b/man2/sigaltstack.2 index d1bea22574..d78873d89a 100644 --- a/man2/sigaltstack.2 +++ b/man2/sigaltstack.2 @@ -364,7 +364,7 @@ if (sigaltstack(&ss, NULL) == \-1) { sa.sa_flags = SA_ONSTACK; sa.sa_handler = handler(); /* Address of a signal handler */ sigemptyset(&sa.sa_mask); -if (sigaction(SIGSEGV, &sa, NULL) == -1) { +if (sigaction(SIGSEGV, &sa, NULL) == \-1) { perror("sigaction"); exit(EXIT_FAILURE); } diff --git a/man2/sigreturn.2 b/man2/sigreturn.2 index d0f5eb8297..a3fa0d30f0 100644 --- a/man2/sigreturn.2 +++ b/man2/sigreturn.2 @@ -85,7 +85,7 @@ be called directly. .BR sigreturn () .\" See sysdeps/unix/sysv/linux/sigreturn.c and .\" signal/sigreturn.c in the glibc source -wrapper in the GNU C library simply returns -1, with +wrapper in the GNU C library simply returns \-1, with .I errno set to .BR ENOSYS .) diff --git a/man3/ctime.3 b/man3/ctime.3 index 3aeb1c6920..89107975b2 100644 --- a/man3/ctime.3 +++ b/man3/ctime.3 @@ -307,7 +307,7 @@ expressed as a value of type On error, .BR mktime () returns the value -.IR "(time_t)\ -1" . +.IR "(time_t)\ \-1" . The remaining functions return NULL on error. On error, .I errno diff --git a/man3/scandir.3 b/man3/scandir.3 index 328c70f690..83a5eea7d2 100644 --- a/man3/scandir.3 +++ b/man3/scandir.3 @@ -304,7 +304,7 @@ main(void) int n; n = scandir(".", &namelist, NULL, alphasort); - if (n == -1) { + if (n == \-1) { perror("scandir"); exit(EXIT_FAILURE); } diff --git a/man4/random.4 b/man4/random.4 index bc5ef184c5..35549057b9 100644 --- a/man4/random.4 +++ b/man4/random.4 @@ -85,7 +85,7 @@ will not block if the requested number of bytes is not available. Instead, the available bytes are returned. If no byte is available, .BR read (2) -will return -1 and +will return \-1 and .I errno will be set to .BR EAGAIN . diff --git a/man7/pkeys.7 b/man7/pkeys.7 index 17ec730eed..44c7accc20 100644 --- a/man7/pkeys.7 +++ b/man7/pkeys.7 @@ -271,7 +271,7 @@ main(void) */ status = pkey_mprotect(buffer, getpagesize(), PROT_READ | PROT_WRITE, pkey); - if (status == -1) + if (status == \-1) errExit("pkey_mprotect"); printf("about to read buffer again...\en"); @@ -282,7 +282,7 @@ main(void) printf("buffer contains: %d\en", *buffer); status = pkey_free(pkey); - if (status == -1) + if (status == \-1) errExit("pkey_free"); exit(EXIT_SUCCESS); |
