1 <?xml version=
"1.0" encoding=
"utf-8"?>
5 Copyright 2012 Lars Wirzenius (liw@iki.fi)
7 This program is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 2 of the License, or (at your
10 option) any later version.
12 This program is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15 Public License for more details.
17 You should have received a copy of the GNU General Public License along
18 with this program; if not, write to the Free Software Foundation, Inc.,
19 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook V4.4//EN"
24 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
30 <email>liw@liw.fi
</email>
33 <firstname>Lars
</firstname>
34 <surname>Wirzenius
</surname>
36 <date>2012-
06-
05</date>
40 <refentrytitle>errno
</refentrytitle>
41 <manvolnum>1</manvolnum>
42 <refmiscinfo class=
"manual">moreutils
</refmiscinfo>
43 <refmiscinfo class=
"source">moreutils
</refmiscinfo>
47 <refname>errno
</refname>
48 <refpurpose>look up errno names and descriptions
</refpurpose>
53 <command>errno
</command>
54 <arg choice=
"req"><replaceable>name-or-code
</replaceable></arg>
57 <command>errno
</command>
62 <command>errno
</command>
65 <arg choice=
"req"><replaceable>word
</replaceable></arg>
68 <command>errno
</command>
70 <arg>--search-all-locales
</arg>
71 <arg choice=
"req"><replaceable>word
</replaceable></arg>
76 <title>DESCRIPTION
</title>
78 <para><command>errno
</command> looks up errno macro names,
79 errno codes, and the corresponding descriptions. For example,
80 if given
<literal>ENOENT
</literal> on a Linux system, it
81 prints out the code
2 and the description
"No such file or directory".
82 If given the code
2, it printes
<literal>ENOENT
</literal>
83 and the same description.
</para>
88 <title>OPTIONS
</title>
92 <term><option>-l
</option></term>
93 <term><option>--list
</option></term>
95 <para>List all errno values.
</para>
100 <term><option>-s
</option></term>
101 <term><option>--search
</option></term>
103 <para>Search for errors whose description contains
104 all the given words (case-insensitive).
</para>
109 <term><option>-S
</option></term>
110 <term><option>--search-all-locales
</option></term>
112 <para>Like
<option>--search
</option>, but searches all
113 installed locales.
</para>
121 <title>AUTHOR
</title>
129 <title>SEE ALSO
</title>
133 <refentrytitle>errno
</refentrytitle><manvolnum>3</manvolnum>