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

  1. .th SETGID II 8/5/73
  2. .sh NAME
  3. setgid \*- set process group ID
  4. .sh SYNOPSIS
  5. (setgid = 46.; not in assembler)
  6. .br
  7. (group ID in r0)
  8. .ft B
  9. .br
  10. sys setgid
  11. .s3
  12. setgid(gid)
  13. .ft R
  14. .sh DESCRIPTION
  15. The group ID of the current process is set to
  16. the argument.
  17. Both the effective and the real group ID are set.
  18. This call is only permitted to the super-user
  19. or if the argument is the real group ID.
  20. .sh "SEE ALSO"
  21. getgid (II)
  22. .sh DIAGNOSTICS
  23. Error bit
  24. (c-bit) is set as indicated;
  25. from C, a \*-1 value is returned.
  26.