GETGID.2
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 1k
Category:

OS Develop

Development Platform:

WINDOWS

  1. ." Copyright (c) 1983 Regents of the University of California.
  2. ." All rights reserved.  The Berkeley software License Agreement
  3. ." specifies the terms and conditions for redistribution.
  4. ."
  5. ." @(#)getgid.2 6.2 (Berkeley) 1/7/86
  6. ."
  7. .TH GETGID 2 "January 7, 1986"
  8. .UC 5
  9. .SH NAME
  10. getgid, getegid - get group identity
  11. .SH SYNOPSIS
  12. .nf
  13. .ft B
  14. #include <sys/types.h>
  15. #include <unistd.h>
  16. gid_t getgid(void)
  17. gid_t getegid(void)
  18. .fi
  19. .SH DESCRIPTION
  20. .B Getgid
  21. returns the real group ID of the current process,
  22. .B getegid
  23. the effective group ID.
  24. .PP
  25. The real group ID is specified at login time.
  26. .PP
  27. The effective group ID is more transient, and determines
  28. additional access permission during execution of a
  29. ``set-group-ID'' process, and it is for such processes
  30. that fBgetgidfP is most useful.
  31. .SH "SEE ALSO"
  32. .BR getuid (2),
  33. .BR setgid (2).