]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
mprotect.2, readv.2, sigaltstack.2, sigreturn.2, ctime.3, scandir.3, random.4, pkeys...
authorMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 9 Jan 2021 21:08:50 +0000 (22:08 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 9 Jan 2021 21:08:50 +0000 (22:08 +0100)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/mprotect.2
man2/readv.2
man2/sigaltstack.2
man2/sigreturn.2
man3/ctime.3
man3/scandir.3
man4/random.4
man7/pkeys.7

index f08cca2dfa270838af09c458a1aa0f6e7c7b9929..5f90724d48f68b735a4d0a93063ea5ea1fa37bcc 100644 (file)
@@ -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
index 4edca704f7cf5238194a989241aad95a4054f029..472adcf734270fb032052d81fad40fac39c02c6a 100644 (file)
@@ -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 .
index d1bea22574b957afafbdfe4ca59eb6467c4d2907..d78873d89a3f97c537efd1a6c7e2df058b0617a1 100644 (file)
@@ -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);
 }
index d0f5eb8297cf263746b416885bc93635f10840e4..a3fa0d30f0487492f1a5aa3e33c2a3016677db75 100644 (file)
@@ -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 .)
index 3aeb1c6920edc472e197e3202155a75f8f1f3e48..89107975b2b1bca791d6fbdcc6d6244e2f05b795 100644 (file)
@@ -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
index 328c70f690b49fe03c36c3cc0076b842ed50d429..83a5eea7d2eda0d7f8019591319dcb435d970eaf 100644 (file)
@@ -304,7 +304,7 @@ main(void)
     int n;
 
     n = scandir(".", &namelist, NULL, alphasort);
-    if (n == -1) {
+    if (n == \-1) {
         perror("scandir");
         exit(EXIT_FAILURE);
     }
index bc5ef184c5fda49d4db7c9f3194a79a0fda2ae48..35549057b912e4b211ffdc8e4537c5b2344c6ebc 100644 (file)
@@ -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 .
index 17ec730eed4426cf3dc07c4b2bc17de9b491124f..44c7accc20027246b6aca720ed03a575f5940da2 100644 (file)
@@ -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);