Differences between current version and predecessor to the previous major change of getgid(2).
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 4 | Last edited on Monday, December 30, 2002 3:54:23 am | by PerryLorier | |
Older page: | version 1 | Last edited on Tuesday, June 4, 2002 12:23:41 am | by perry | Revert |
@@ -1,49 +1,23 @@
-GETGID
-!!!GETGID
-NAME
-SYNOPSIS
-DESCRIPTION
-ERRORS
-CONFORMING TO
-SEE ALSO
-----
!!NAME
-
-
-
getgid, getegid
- get group identity
+getgid - get real
group identity
!!SYNOPSIS
-__#include __
-#include __
+
__#include <unistd.h>
__
+ __
#include <sys/types.h>
__
-__gid_t getgid(void);
-gid_t getegid
(void);__
+
__gid_t getgid(void);__
!!DESCRIPTION
+getgid(2) returns the real group ID of the current process. A process may be a member of multiple groups, see getgroups(2) for more information.
+The real ID corresponds to the ID of the calling process. See [RealID] for more information.
-__getgid__ returns the real group ID of the current
-process.
-
-
-__getegid__ returns the effective group ID of the current
-process.
-
-
-The real ID corresponds to the ID of the calling process.
-The effective ID corresponds to the set ID bit on the file
-being executed.
!!ERRORS
+These functions are always successful.
-
-These functions are always successful.
!!CONFORMING TO
+POSIX, BSD 4.3
-
-POSIX, BSD 4.3
!!SEE ALSO
-
-
-
setregid(2), setgid(2)
-----
+setregid(2), setgid(2), getegid(2), getuid(2)