From aedbebb0ea3c7b40dda987b43ff21475ef67f423 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 25 May 2017 16:14:49 -0400 Subject: messages: define EXIT_* codes --- src/lib/libremessages.1.ronn | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/lib/libremessages.1.ronn') diff --git a/src/lib/libremessages.1.ronn b/src/lib/libremessages.1.ronn index 23e0e18..538a9b4 100644 --- a/src/lib/libremessages.1.ronn +++ b/src/lib/libremessages.1.ronn @@ -38,6 +38,16 @@ error is not a terminal (see `isatty`(3)), they are set, but empty. They are marked as readonly, so it is an error to try to set them afterwards. +The following variables for numeric exit codes are set: a basic +`EXIT_TRUE=0` and `EXIT_FALSE=1`, and well as several based on +the [LSB recommendations for SysV init scripts][1]: `EXIT_SUCCESS`, +`EXIT FAILURE`, `EXIT_INVALIDARGUMENT`, `EXIT_NOTIMPLEMENTED`, +`EXIT_NOPERMISSION`, `EXIT_NOTINSTALLED`, and `EXIT_NOTCONFIGURED`. +They are marked as readonly, so it is an error to try to set them +afterwards. + +[1]: http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html + ### MESSAGE FORMAT All routines feed the message/format string through `gettext`(1), if -- cgit v1.2.3-54-g00ecf