1STRERROR(3) 386BSD Programmer's Manual STRERROR(3) 2 3NNAAMMEE 4 ppeerrrroorr, ssttrreerrrroorr, ssyyss__eerrrrlliisstt, ssyyss__nneerrrr - system error messages 5 6SSYYNNOOPPSSIISS 7 _e_x_t_e_r_n _i_n_t _e_r_r_n_o; 8 _e_x_t_e_r_n _c_h_a_r *_s_y_s__e_r_r_l_i_s_t[]; 9 10 ##iinncclluuddee <<ssttddiioo..hh>> 11 12 _v_o_i_d 13 ppeerrrroorr(_c_o_n_s_t _c_h_a_r *_s_t_r_i_n_g) 14 15 _c_h_a_r * 16 ssttrreerrrroorr(_i_n_t _e_r_r_n_u_m) 17 18DDEESSCCRRIIPPTTIIOONN 19 The ssttrreerrrroorr() and ppeerrrroorr() functions lookup the error message string 20 affiliated with an error number. 21 22 The sstteerrrroorr() function accepts an error number argument _e_r_r_n_u_m and 23 returns a pointer to the corresponding message string. 24 25 The ppeerrrroorr() function finds the error message corresponding to the 26 current value of the global variable _e_r_r_n_o and writes it, followed by a 27 new-line, to the _s_t_d_e_r_r. If the argument _s_t_r_i_n_g is non-NULL it is pre- 28 appended to the message string and separated from it by a colon and space 29 (`: '). If _s_t_r_i_n_g is NULL only the error message string is printed. 30 31 The message strings can be accessed directly using the external character 32 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 33 messages in _s_y_s__e_r_r_l_i_s_t. The use of these variables is deprecated; 34 ssttrreerrrroorr() should be used instead. 35 36SSEEEE AALLSSOO 37 intro(2), psignal(3) 38 39HHIISSTTOORRYY 40 The ssttrreerrrroorr() and ppeerrrroorr() functions are currently under development. 41 424th Berkeley Distribution June 29, 1991 1 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67