home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man2 / getuid.2 < prev    next >
Encoding:
Text File  |  1975-06-26  |  647 b   |  30 lines

  1. .th GETUID II 5/15/74
  2. .sh NAME
  3. getuid  \*-  get user identifications
  4. .sh SYNOPSIS
  5. (getuid = 24.)
  6. .br
  7. .ft B
  8. sys getuid
  9. .ft B
  10. .s3
  11. getuid( )
  12. .ft R
  13. .sh DESCRIPTION
  14. .it Getuid
  15. returns a word (in r0),
  16. the low byte of which contains
  17. the real user ID of
  18. the current process.
  19. The high byte contains the effective user ID
  20. of the current process.
  21. The real user ID identifies the person who is logged in,
  22. in contradistinction to the effective user ID, which
  23. determines his access permission at the moment.
  24. It is thus useful to programs which operate using
  25. the ``set user ID'' mode, to find out who invoked them.
  26. .sh "SEE ALSO"
  27. setuid (II)
  28. .sh DIAGNOSTICS
  29. \*-
  30.