On 11/23/2017 09:31 AM, Christoph Hellwig wrote: > On Wed, Nov 22, 2017 at 07:15:45PM -0500, Wesley Aptekar-Cassels wrote: >> This patch documents the values of error numbers on linux. This is >> something that is in the OpenBSD errno man page, which I find quite >> useful. > > Error numbers are different for different architectures. I was just about to say the same. Someone else recently proposed the same change, and I should have thought then to add the text that I have added just now to errno(3). Hopefully this goes someway to addressing your requirements, Wesley. New text: On Linux, the error numbers that correspond to each symbolic name vary somewhat across architectures. Therefore, numeric values are not included in the list of error names below. On any particular system, one can obtain a list of all symbolic error names and the corresponding error numbers using the errno(1) command: $ errno -l EPERM 1 Operation not permitted ENOENT 2 No such file or directory ESRCH 3 No such process EINTR 4 Interrupted system call EIO 5 Input/output error ... The errno(1) command can also be used to look up individual error numbers and names as in the following examples: $ errno 2 ENOENT 2 No such file or directory $ errno ESRCH ESRCH 3 No such process Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html