*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> getgid (2)              



NAME    [Toc]    [Back]

       getgid, getegid - get group identity

SYNOPSIS    [Toc]    [Back]

       #include <unistd.h>
       #include <sys/types.h>

       gid_t getgid(void);
       gid_t getegid(void);

DESCRIPTION    [Toc]    [Back]

       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    [Toc]    [Back]

       These functions are always successful.

CONFORMING TO    [Toc]    [Back]

       POSIX, BSD 4.3

SEE ALSO    [Toc]    [Back]

       setregid(2), setgid(2)

Linux 0.99.11			  1993-07-23			     GETGID(2)
[ Back ]
 Similar pages
Name OS Title
setgid Linux set group identity
setfsgid Linux set group identity used for file system checks
getuid Linux get user identity
setuid Linux set user identity
satgetid IRIX get or set audit identity
id FreeBSD return user identity
su FreeBSD substitute user identity
glcloadidentity IRIX assign identity value to GLC_BITMAP_MATRIX
su OpenBSD substitute user identity
id OpenBSD return user identity
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service