aboutsummaryrefslogtreecommitdiffstats
path: root/doc/info
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-13 19:44:27 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-13 19:44:27 +0200
commit4231eacfd59d6a25fc27035ae0d43b6a8392fc8a (patch)
tree5196f2796fae8c97ea4201378116b57050ea9198 /doc/info
parentm (diff)
downloadslibc-4231eacfd59d6a25fc27035ae0d43b6a8392fc8a.tar.gz
slibc-4231eacfd59d6a25fc27035ae0d43b6a8392fc8a.tar.bz2
slibc-4231eacfd59d6a25fc27035ae0d43b6a8392fc8a.tar.xz
info: err.h
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'doc/info')
-rw-r--r--doc/info/chap/error-reporting.texinfo82
1 files changed, 82 insertions, 0 deletions
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{<err.h>}. 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{<err.h>}. 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{<err.h>}. 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{<err.h>}. 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{<err.h>}. 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{<err.h>}. 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{<err.h>}. 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{<err.h>}. It is identical
+to @code{errx} except it uses @code{va_list}
+instead of being a variadic function.
+
@end table