home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / man / cat3 / strerror.0 < prev    next >
Text File  |  1993-12-07  |  2KB  |  67 lines

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