#include <sys/types.h> #include <unistd.h> gid_t getegid(void);
getegid
determines the effective group ID of the calling process.
getegid
can fail. In this case, getegid
issues an MVS user ABEND 1230
to indicate the error.
getegid
:
#include <sys/types.h> #include <stdio.h> #include <unistd.h> . . . printf("%d is my group ID.\n", (int) getegid()); . . .
geteuid
, getgid
, setegid
, setgid
Copyright (c) 1998 SAS Institute Inc. Cary, NC, USA. All rights reserved.