|
uid_t |
gid_t |
uid_t getuid | (void) |
gid_t getgid | (void) |
uid_t geteuid | (void) |
gid_t getegid | (void) |
int getgroups | (int miktar, gid_t *gruplar) |
gid_t * read_all_groups (void) { int ngroups = getgroups (0, NULL); gid_t *groups = (gid_t *) xmalloc (ngroups * sizeof (gid_t)); int val = getgroups (ngroups, groups); if (val < 0) { free (groups); return NULL; } return groups; }
|