diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-10-13 19:10:18 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-10-13 19:10:18 +0200 |
commit | 77873b32d748479f6aa95ac5cd7b47eed3de8121 (patch) | |
tree | e76ac1a05084e6cf8f5cee20c34a48845fb70f14 /doc/info/chap | |
parent | m feature-test macro checking (diff) | |
download | slibc-77873b32d748479f6aa95ac5cd7b47eed3de8121.tar.gz slibc-77873b32d748479f6aa95ac5cd7b47eed3de8121.tar.bz2 slibc-77873b32d748479f6aa95ac5cd7b47eed3de8121.tar.xz |
info: customary prefixes for perror
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'doc/info/chap')
-rw-r--r-- | doc/info/chap/error-reporting.texinfo | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/info/chap/error-reporting.texinfo b/doc/info/chap/error-reporting.texinfo index 7769015..6496019 100644 --- a/doc/info/chap/error-reporting.texinfo +++ b/doc/info/chap/error-reporting.texinfo @@ -122,6 +122,17 @@ the value on @code{errno}, its value must be saved if there are function calls between the failure and the call to @code{perror}. +@lvindex program_invocation_name +@lvindex program_invocation_short_name +It is customary to set @code{prefix} to +a value equivalent to @code{program_invocation_name}, +or alternatively @code{program_invocation_short_name}. +Sometiems, the name of the called function is +used, this is to simplify debugging. But the +standard is that programs shall print there +them when reporting an error so that the user +knows that program failed. + TODO: Not implemented. @item char* strerror(int errnum) |