4.4BSD/usr/share/man/cat3/strerror.0

Compare this file to the similar file:
Show the results in this format:

STRERROR(3)                 BSD Programmer's Manual                STRERROR(3)

NNAAMMEE
     ppeerrrroorr, ssttrreerrrroorr, ssyyss__eerrrrlliisstt, ssyyss__nneerrrr - system error messages

SSYYNNOOPPSSIISS
     ##iinncclluuddee <<ssttddiioo..hh>>

     _v_o_i_d
     ppeerrrroorr(_c_o_n_s_t _c_h_a_r _*_s_t_r_i_n_g);

     _e_x_t_e_r_n _c_h_a_r _*_s_y_s___e_r_r_l_i_s_t_[_]_;
     _e_x_t_e_r_n _i_n_t _s_y_s___n_e_r_r_;

     ##iinncclluuddee <<ssttrriinngg..hh>>

     _c_h_a_r _*
     ssttrreerrrroorr(_i_n_t _e_r_r_n_u_m);

DDEESSCCRRIIPPTTIIOONN
     The ssttrreerrrroorr() and ppeerrrroorr() functions look up the error message string
     corresponding to an error number.

     The ssttrreerrrroorr() function accepts an error number argument _e_r_r_n_u_m and re-
     turns a pointer to the corresponding message string.

     The ppeerrrroorr() function finds the error message corresponding to the cur-
     rent value of the global variable _e_r_r_n_o (intro(2))  and writes it, fol-
     lowed by a newline, to the standard error file descriptor.  If the argu-
     ment _s_t_r_i_n_g is non-NULL, it is prepended to the message string and sepa-
     rated from it by a colon and space (`: '). If _s_t_r_i_n_g is NULL, only the
     error message string is printed.

     If _e_r_r_n_u_m is not a recognized error number, the error message string will
     contain ``Unknown error: '' followed by the error number in decimal.

     The message strings can be accessed directly using the external array
     _s_y_s___e_r_r_l_i_s_t. The external value _s_y_s___n_e_r_r contains a count of the messages
     in _s_y_s___e_r_r_l_i_s_t. The use of these variables is deprecated; ssttrreerrrroorr()
     should be used instead.

SSEEEE AALLSSOO
     intro(2),  psignal(3)

HHIISSTTOORRYY
     The ssttrreerrrroorr() and ppeerrrroorr() functions first appeared in 4.4BSD.

BBUUGGSS
     For unknown error numbers, the ssttrreerrrroorr() function will return its result
     in a static buffer which may be overwritten by subsequent calls.

4th Berkeley Distribution        June 9, 1993                                1