From 4231eacfd59d6a25fc27035ae0d43b6a8392fc8a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 13 Oct 2015 19:44:27 +0200 Subject: info: err.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- doc/info/chap/error-reporting.texinfo | 82 +++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/doc/info/chap/error-reporting.texinfo b/doc/info/chap/error-reporting.texinfo index 6496019..cc256cd 100644 --- a/doc/info/chap/error-reporting.texinfo +++ b/doc/info/chap/error-reporting.texinfo @@ -315,5 +315,87 @@ If @code{program_invocation_name} is edited, @code{program_invocation_short_name} may be modified too. +@item void warn(const char* format, ...) +@fnindex warn +@hfindex err.h +This function is a non-standard @sc{BSD} +extension, and requires that @code{_BSD_SOURCE} +is defined. It is made available by including +the header file @file{}. It is similar +to @code{printf} except it prints the message +to stderr, and a description of the error +specified by the current value on @code{errno} +is also printed. + +@item void vwarn(const char* format, va_list args) +@fnindex vwarn +@hfindex err.h +This function is a non-standard @sc{BSD} +extension, and requires that @code{_BSD_SOURCE} +is defined. It is made available by including +the header file @file{}. It is identical +to @code{warn} except it uses @code{va_list} +instead of being a variadic function. + +@item void warnx(const char* format, ...) +@fnindex warnx +@hfindex err.h +This function is a non-standard @sc{BSD} +extension, and requires that @code{_BSD_SOURCE} +is defined. It is made available by including +the header file @file{}. It is identical +to @code{warn} except it does not print a +description of the value of @code{errno}. + +@item void vwarnx(const char* format, va_list args) +@fnindex vwarnx +@hfindex err.h +This function is a non-standard @sc{BSD} +extension, and requires that @code{_BSD_SOURCE} +is defined. It is made available by including +the header file @file{}. It is identical +to @code{warnx} except it uses @code{va_list} +instead of being a variadic function. + +@item noreturn void err(int status, const char* format, ...) +@fnindex err +@hfindex err.h +This function is a non-standard @sc{BSD} +extension, and requires that @code{_BSD_SOURCE} +is defined. It is made available by including +the header file @file{}. It is identical +to @code{warn} except will return with the +exit value @code{status & 255}. + +@item noreturn void verr(int status, const char* format, va_list args) +@fnindex verr +@hfindex err.h +This function is a non-standard @sc{BSD} +extension, and requires that @code{_BSD_SOURCE} +is defined. It is made available by including +the header file @file{}. It is identical +to @code{err} except it uses @code{va_list} +instead of being a variadic function. + +@item noreturn void errx(int status, const char* format, ...) +@fnindex errx +@hfindex err.h +This function is a non-standard @sc{BSD} +extension, and requires that @code{_BSD_SOURCE} +is defined. It is made available by including +the header file @file{}. It is identical +to @code{err} except it does not print a +description of the value of @code{errno}. + +@item noreturn void verrx(int status, const char* format, va_list args) +@fnindex verrx +@hfindex err.h +This function is a non-standard @sc{BSD} +extension, and requires that @code{_BSD_SOURCE} +is defined. It is made available by including +the header file @file{}. It is identical +to @code{errx} except it uses @code{va_list} +instead of being a variadic function. + @end table -- cgit v1.2.3-70-g09d2