home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 4
/
FreshFish_May-June1994.bin
/
gnu
/
man
/
cat3
/
strerror.0
< prev
next >
Wrap
Text File
|
1993-12-07
|
2KB
|
67 lines
STRERROR(3) UNIX Programmer's Manual STRERROR(3)
NNAAMMEE
ppeerrrroorr, ssttrreerrrroorr, ssyyss__eerrrrlliisstt, ssyyss__nneerrrr - system error messages
SSYYNNOOPPSSIISS
_e_x_t_e_r_n _i_n_t _e_r_r_n_o_;
_e_x_t_e_r_n _c_h_a_r _*_s_y_s___e_r_r_l_i_s_t_[_]_;
##iinncclluuddee <<ssttddiioo..hh>>
_v_o_i_d
ppeerrrroorr(_c_o_n_s_t _c_h_a_r _*_s_t_r_i_n_g)
_c_h_a_r _*
ssttrreerrrroorr(_i_n_t _e_r_r_n_u_m)
DDEESSCCRRIIPPTTIIOONN
The ssttrreerrrroorr() and ppeerrrroorr() functions lookup the error message string af
filiated with an error number.
The sstteerrrroorr() 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 and writes it, followed by a new
line, to the _s_t_d_e_r_r. If the argument _s_t_r_i_n_g is nonNULL it is pre
appended to the message string and separated from it by a colon and space
(`: '). If _s_t_r_i_n_g is NULL only the error message string is printed.
The message strings can be accessed directly using the external character
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 are currently under development.
4th Berkeley Distribution June 29, 1991 1