home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat3 / getuid.3 < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.3 KB  |  67 lines

  1.  
  2.  
  3.  
  4. GETUID(3)           MINTLIB LIBRARY FUNCTIONS           GETUID(3)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        getuid,  geteuid,  getgid, getegid - get real user, effec-
  9.        tive user,
  10.                                           real group  and  effec-
  11.        tive group IDs
  12.  
  13. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  14.        #include <sys/types.h>
  15.        #include <unistd.h>
  16.  
  17.        uid_t getuid(void);
  18.  
  19.        uit_t geteuid(void);
  20.  
  21.        gid_t getgid(void);
  22.  
  23.        gid_t getegid(void);
  24.  
  25. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  26.        getuid  returns  the  real user ID of the calling process.
  27.        geteuid returns the effective user ID of the calling  pro-
  28.        cess.   getgid  returns  the  real group ID of the calling
  29.        process.  getegid returns the effective group  ID  of  the
  30.        calling process.
  31.  
  32. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  33.        s✓se✓et✓tu✓ui✓id✓d(✓(3✓3)✓),✓, s✓se✓et✓tg✓gi✓id✓d(✓(3✓3)✓),✓, P✓Pg✓ge✓et✓tu✓ui✓id✓d(✓(2✓2)✓),✓, P✓Pg✓ge✓et✓te✓eu✓ui✓id✓d(✓(2✓2)✓),✓, P✓Pg✓ge✓et✓tg✓gi✓id✓d(✓(2✓2)✓),✓,
  34.        P✓Pg✓ge✓et✓te✓eg✓gi✓id✓d(✓(2✓2)✓)
  35.  
  36. N✓NO✓OT✓TE✓ES✓S
  37.        On UN*X systems, these calls have the type unsigned short,
  38.        which is equal to uid_t and gid_t.
  39.  
  40.        When MiNT is not active, these calls are pretty bogus.
  41.  
  42.        Pgeteuid  and Pgetegid have only been available since MiNT
  43.        0.95
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. MiNT docs 0.1              3 March 1993                         1
  65.  
  66.  
  67.