home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / ixemul-39.47-env-bin.lha / man / cat3 / initgroups.0 < prev    next >
Text File  |  1993-12-07  |  1KB  |  67 lines

  1.  
  2. INITGROUPS(3)              UNIX Programmer's Manual              INITGROUPS(3)
  3.  
  4. NNAAMMEE
  5.      iinniittggrroouuppss - initialize group access list
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<uunniissttdd..hh>>
  9.  
  10.      _i_n_t
  11.      iinniittggrroouuppss(_c_o_n_s_t _c_h_a_r _*_n_a_m_e, _i_n_t _b_a_s_e_g_i_d)
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.      The iinniittggrroouuppss() function reads through the group file and sets up, using
  15.      the setgroups(2) call, the group access list for the user specified in
  16.      _n_a_m_e. The _b_a_s_e_g_i_d is automatically included in the groups list.  Typical­
  17.      ly this value is given as the group number from the password file.
  18.  
  19. RREETTUURRNN VVAALLUUEESS
  20.      The iinniittggrroouuppss() function returns -1 if it was not invoked by the super­
  21.      user.
  22.  
  23. FFIILLEESS
  24.      /etc/group
  25.  
  26. SSEEEE AALLSSOO
  27.      setgroups(2)
  28.  
  29. HHIISSTTOORRYY
  30.      The iinniittggrroouuppss function appeared in 4.2BSD.
  31.  
  32. BBUUGGSS
  33.      The iinniittggrroouuppss() function uses the routines based on getgrent(3).  If the
  34.      invoking program uses any of these routines, the group structure will be
  35.      overwritten in the call to iinniittggrroouuppss().
  36.  
  37. 4.2 Berkeley Distribution       April 19, 1991                               1
  38.  
  39.  
  40.  
  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.