diff --git a/Changes b/Changes index 594e28865..0553481e4 100644 --- a/Changes +++ b/Changes @@ -120,6 +120,10 @@ Various pages Michael Kerrisk SEE ALSO: Place entries in correct order +Various pages + Michael Kerrisk + ERRORS: Place errors in alphabetical order + Various pages Michael Kerrisk Remove redundant section number in page references diff --git a/man2/keyctl.2 b/man2/keyctl.2 index 74be89469..62450ffa8 100644 --- a/man2/keyctl.2 +++ b/man2/keyctl.2 @@ -85,24 +85,24 @@ On error, the value will be returned and errno will have been set to an appropriate error. .SH ERRORS .TP -.B ENOKEY -No matching key was found or an invalid key was specified. -.TP -.B EKEYEXPIRED -An expired key was found or specified. -.TP -.B EKEYREVOKED -A revoked key was found or specified. -.TP -.B EKEYREJECTED -A rejected key was found or specified. +.B EACCES +A key operation wasn't permitted. .TP .B EDQUOT The key quota for the caller's user would be exceeded by creating a key or linking it to the keyring. .TP -.B EACCES -A key operation wasn't permitted. +.B EKEYEXPIRED +An expired key was found or specified. +.TP +.B EKEYREJECTED +A rejected key was found or specified. +.TP +.B EKEYREVOKED +A revoked key was found or specified. +.TP +.B ENOKEY +No matching key was found or an invalid key was specified. .SH LINKING Although this is a Linux system call, it is not present in .I libc diff --git a/man2/request_key.2 b/man2/request_key.2 index 2d8c64bee..a32d3cfde 100644 --- a/man2/request_key.2 +++ b/man2/request_key.2 @@ -95,20 +95,8 @@ On error, the value will be returned and errno will have been set to an appropriate error. .SH ERRORS .TP -.B ENOKEY -No matching key was found. -.TP -.B EKEYEXPIRED -An expired key was found, but no replacement could be obtained. -.TP -.B EKEYREVOKED -A revoked key was found, but no replacement could be obtained. -.TP -.B EKEYREJECTED -The attempt to generate a new key was rejected. -.TP -.B ENOMEM -Insufficient memory to create a key. +.B EACCES +The keyring wasn't available for modification by the user. .TP .B EINTR The request was interrupted by a signal. @@ -117,8 +105,20 @@ The request was interrupted by a signal. The key quota for this user would be exceeded by creating this key or linking it to the keyring. .TP -.B EACCES -The keyring wasn't available for modification by the user. +.B EKEYEXPIRED +An expired key was found, but no replacement could be obtained. +.TP +.B EKEYREJECTED +The attempt to generate a new key was rejected. +.TP +.B EKEYREVOKED +A revoked key was found, but no replacement could be obtained. +.TP +.B ENOMEM +Insufficient memory to create a key. +.TP +.B ENOKEY +No matching key was found. .SH LINKING Although this is a Linux system call, it is not present in .I libc diff --git a/man2/subpage_prot.2 b/man2/subpage_prot.2 index 47662464c..56def7506 100644 --- a/man2/subpage_prot.2 +++ b/man2/subpage_prot.2 @@ -65,6 +65,11 @@ returns 0. Otherwise, one of the error codes specified below is returned. .SH ERRORS .TP +.B EFAULT +The buffer referred to by +.I map +is not accessible. +.TP .B EINVAL The .I addr @@ -75,11 +80,6 @@ Both of these arguments must be aligned to a multiple of the system page size, and they must not refer to a region outside of the address space of the process or to a region that consists of huge pages. .TP -.B EFAULT -The buffer referred to by -.I map -is not accessible. -.TP .B ENOMEM Out of memory. .SH VERSIONS diff --git a/man2/syslog.2 b/man2/syslog.2 index c5d01bbf9..fb018a637 100644 --- a/man2/syslog.2 +++ b/man2/syslog.2 @@ -225,6 +225,13 @@ is less than zero; or for .I level is outside the range 1 to 8). .TP +.B ENOSYS +This +.BR syslog () +system call is not available, because the kernel was compiled with the +.BR CONFIG_PRINTK +kernel-configuration option disabled. +.TP .B EPERM An attempt was made to change console_loglevel or clear the kernel message ring buffer by a process without sufficient privilege @@ -235,13 +242,6 @@ capability). .B ERESTARTSYS System call was interrupted by a signal; nothing was read. (This can be seen only during a trace.) -.TP -.B ENOSYS -This -.BR syslog () -system call is not available, because the kernel was compiled with the -.BR CONFIG_PRINTK -kernel-configuration option disabled. .SH "CONFORMING TO" This system call is Linux-specific and should not be used in programs intended to be portable. diff --git a/man3/pthread_kill.3 b/man3/pthread_kill.3 index 7b04d9d22..dcbab3305 100644 --- a/man3/pthread_kill.3 +++ b/man3/pthread_kill.3 @@ -54,13 +54,13 @@ returns 0; on error, it returns an error number, and no signal is sent. .SH ERRORS .TP +.B EINVAL +An invalid signal was specified. +.TP .B ESRCH No thread with the ID .I thread could be found. -.TP -.B EINVAL -An invalid signal was specified. .SH CONFORMING TO POSIX.1-2001. .SH NOTES