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

  1.  
  2. GETUID(2)                  UNIX Programmer's Manual                  GETUID(2)
  3.  
  4. NNAAMMEE
  5.      ggeettuuiidd, ggeetteeuuiidd - get user identification
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<uunniissttdd..hh>>
  9.      ##iinncclluuddee <<ssyyss//ttyyppeess..hh>>
  10.  
  11.      _u_i_d___t
  12.      ggeettuuiidd(_v_o_i_d)
  13.  
  14.      _u_i_d___t
  15.      ggeetteeuuiidd(_v_o_i_d)
  16.  
  17. DDEESSCCRRIIPPTTIIOONN
  18.      The ggeettuuiidd() function returns the real user ID of the calling process.
  19.      The ggeetteeuuiidd() function returns the effective user ID of the calling pro­
  20.      cess.
  21.  
  22.      The real user ID is that of the user who has invoked the program.  As the
  23.      effective user ID gives the process additional permissions during execu­
  24.      tion of ``_s_e_t_­_u_s_e_r_­_I_D'' mode processes, ggeettuuiidd() is used to determine the
  25.      real­user­id of the calling process.
  26.  
  27. EERRRROORRSS
  28.      The ggeettuuiidd() and ggeetteeuuiidd() functions are always successful, and no return
  29.      value is reserved to indicate an error.
  30.  
  31. SSEEEE AALLSSOO
  32.      getgid(2),  setreuid(2)
  33.  
  34. SSTTAANNDDAARRDDSS
  35.      GGeetteeuuiidd() and ggeettuuiidd() conform to IEEE Std 1003.1­1988 (``POSIX'').
  36.  
  37. 4th Berkeley Distribution       March 10, 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.