]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
errno.3: 'errno -s' can be used to search for errors by string in description
authorMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 23 Dec 2017 07:43:20 +0000 (08:43 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 23 Dec 2017 07:43:20 +0000 (08:43 +0100)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/errno.3

index b23499a21006e94ac07e44ef1f7bbea045d80669..70997b0623ba132cbb6a7bd45d295d07a4e33d68 100644 (file)
@@ -128,7 +128,8 @@ EIO 5 Input/output error
 .PP
 The
 .BR errno (1)
-command can also be used to look up individual error numbers and names
+command can also be used to look up individual error numbers and names,
+and to search for errors using strings from the error description,
 as in the following examples:
 .PP
 .in +4n
@@ -137,6 +138,8 @@ $ \fBerrno 2\fP
 ENOENT 2 No such file or directory
 $ \fBerrno ESRCH\fP
 ESRCH 3 No such process
+$ \fBerrno \-s permission\fP
+EACCES 13 Permission denied
 .EE
 .in
 .PP