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

  1.  
  2. SETMODE(3)                 UNIX Programmer's Manual                 SETMODE(3)
  3.  
  4. NNAAMMEE
  5.      ggeettmmooddee, sseettmmooddee - modify mode bits
  6.  
  7. SSYYNNOOPPSSIISS
  8.      _m_o_d_e___t
  9.      ggeettmmooddee(_c_o_n_s_t _v_o_i_d _*_s_e_t, _m_o_d_e___t _m_o_d_e)
  10.  
  11.      _v_o_i_d
  12.      sseettmmooddee(_c_o_n_s_t _c_h_a_r _*_m_o_d_e___s_t_r)
  13.  
  14. DDEESSCCRRIIPPTTIIOONN
  15.      The ggeettmmooddee() function returns a copy of the file permission bits _m_o_d_e as
  16.      altered by the values pointed to by _s_e_t. While only the mode bits are al­
  17.      tered, other parts of the file mode may be examined.
  18.  
  19.      The sseettmmooddee() function takes an absolute (octal) or symbolic value, as
  20.      described in chmod(1),  as an argument and returns a pointer to mode val­
  21.      ues to be supplied to ggeettmmooddee().  Because some of the symbolic values are
  22.      relative to the file creation mask, sseettmmooddee() may call umask(2).  If this
  23.      occurs, the file creation mask will be restored before sseettmmooddee() returns.
  24.      If the calling program changes the value of its file creation mask after
  25.      calling sseettmmooddee(), sseettmmooddee() must be called again if ggeettmmooddee() is to mod­
  26.      ify future file modes correctly.
  27.  
  28.      If the mode passed to sseettmmooddee() is invalid, sseettmmooddee() returns NULL.
  29.  
  30. EERRRROORRSS
  31.      The sseettmmooddee() function may fail and set errno for any of the errors spec­
  32.      ified for the library routine malloc(3).
  33.  
  34. SSEEEE AALLSSOO
  35.      chmod(1),  stat(2),  umask(2),  malloc(3)
  36.  
  37. HHIISSTTOORRYY
  38.      The ggeettmmooddee() and sseettmmooddee() functions are currently under development.
  39.  
  40. BSD Experimental                April 19, 1991                               1
  41.  
  42.  
  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.