From: Lars Wirzenius Date: Mon, 4 Jun 2012 13:22:42 +0000 (+0100) Subject: Add errno manpage X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66a2a6ace9fb99096c2a1d0144a7b12895db59e6;p=moreutils Add errno manpage --- diff --git a/Makefile b/Makefile index 501701f..41c9c81 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ BINS=isutf8 ifdata ifne pee sponge mispipe lckdo parallel errno PERLSCRIPTS=vidir vipe ts combine zrun chronic -MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1 ifne.1 pee.1 zrun.1 chronic.1 mispipe.1 lckdo.1 parallel.1 +MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1 ifne.1 pee.1 zrun.1 chronic.1 mispipe.1 lckdo.1 parallel.1 errno.1 CFLAGS=-O2 -g -Wall INSTALL_BIN?=install -s PREFIX=/usr @@ -52,6 +52,9 @@ errnos.h: echo '#include ' > dump.c $(CC) -E -dD dump.c | ./errnos > errnos.h rm -f dump.c + +errno.1: errno.docbook + $(DOCBOOK2XMAN) $< %.1: % pod2man --center=" " --release="moreutils" $< > $@; diff --git a/errno.docbook b/errno.docbook new file mode 100644 index 0000000..0ddaba1 --- /dev/null +++ b/errno.docbook @@ -0,0 +1,86 @@ + + + + + + + + +
+ liw@liw.fi +
+ + Lars + Wirzenius + + 2012-06-04 +
+ + + errno + 1 + + + + errno + look up errno names and descriptions + + + + + errno + name-or-code + + + + + DESCRIPTION + + errno 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 printes ENOENT + and the same description. + + + + + AUTHOR + Lars Wirzenius + + + + + + + SEE ALSO + + + + errno3 + + + + +