aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-11 09:44:07 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-11 09:44:07 +0000
commit279a091e7bf9c2b175b0d3235526aa8e458b7391 (patch)
tree63b7a3a000febb006fadfd07ee585260f8348db3
parent1517968582c9988db58231e327cc9771b1a4da19 (diff)
downloadmandoc-279a091e7bf9c2b175b0d3235526aa8e458b7391.tar.gz
mandoc-279a091e7bf9c2b175b0d3235526aa8e458b7391.tar.zst
mandoc-279a091e7bf9c2b175b0d3235526aa8e458b7391.zip
Use mandoc.1's error codes (we use them internally).
-rw-r--r--makewhatis.121
1 files changed, 19 insertions, 2 deletions
diff --git a/makewhatis.1 b/makewhatis.1
index 8272ad0b..aa0cf5b4 100644
--- a/makewhatis.1
+++ b/makewhatis.1
@@ -1,4 +1,4 @@
-.\" $Id: makewhatis.1,v 1.11 2011/07/11 09:40:49 kristaps Exp $
+.\" $Id: makewhatis.1,v 1.12 2011/07/11 09:44:07 kristaps Exp $
.\"
.\" Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
@@ -146,7 +146,24 @@ A
database of indexed file-names.
.El
.Sh EXIT STATUS
-.Ex -std
+The
+.Nm
+utility exits with one of the following values:
+.Pp
+.Bl -tag -width Ds -compact
+.It 0
+No errors occurred.
+.It 5
+Invalid command line arguments were specified.
+No input files have been read.
+.It 6
+An operating system error occurred, for example memory exhaustion or an
+error accessing input files.
+Such errors cause
+.Nm
+to exit at once, possibly in the middle of parsing or formatting a file.
+The output databases are corrupt and should be removed .
+.El
.Sh SEE ALSO
.Xr mandoc 1
.Sh AUTHORS