summaryrefslogtreecommitdiff
path: root/sysutils/moreutils/files/errno.1
blob: e98ec61fa0ec1f8a9a5f6da73ac619b3fe7fcdbc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
'\" t
.\"     Title: errno
.\"    Author: Lars Wirzenius
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\"      Date: 2012-06-05
.\"    Manual: moreutils
.\"    Source: moreutils
.\"  Language: English
.\"
.TH "ERRNO" "1" "2012\-06\-05" "moreutils" "moreutils"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
errno \- look up errno names and descriptions
.SH "SYNOPSIS"
.HP \w'\fBerrno\fR\ 'u
\fBerrno\fR {\fIname\-or\-code\fR}
.HP \w'\fBerrno\fR\ 'u
\fBerrno\fR [\-ls] [\-\-list]
.HP \w'\fBerrno\fR\ 'u
\fBerrno\fR [\-s] [\-\-search] {\fIword\fR}
.HP \w'\fBerrno\fR\ 'u
\fBerrno\fR [\-S] [\-\-search\-all\-locales] {\fIword\fR}
.SH "DESCRIPTION"
.PP
\fBerrno\fR
looks up errno macro names, errno codes, and the corresponding descriptions\&. For example, if given
ENOENT
on a Linux system, it prints out the code 2 and the description "No such file or directory"\&. If given the code 2, it prints
ENOENT
and the same description\&.
.SH "OPTIONS"
.PP
\fB\-l\fR, \fB\-\-list\fR
.RS 4
List all errno values\&.
.RE
.PP
\fB\-s\fR, \fB\-\-search\fR
.RS 4
Search for errors whose description contains all the given words (case\-insensitive)\&.
.RE
.PP
\fB\-S\fR, \fB\-\-search\-all\-locales\fR
.RS 4
Like
\fB\-\-search\fR, but searches all installed locales\&.
.RE
.SH "AUTHOR"
.PP
Lars Wirzenius
.SH "SEE ALSO"
.PP
\fBerrno\fR(3)