HP-UX Reference (11i v1 00/12) - 2 System Calls (vol 5)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man2/!!!intro.2
________________________________________________________________
___ ___
g
getaccess(2) getaccess(2)
int gid = 109;
int mode;
mode = getaccess ("/tmp/hold", 23, 1, & gid,
(void ∗) 0, (void ∗) 0);
Should the need arise, the following code builds a gidset that includes the process’s effective group ID:
#include <limits.h>
int gidset [NGROUPS_MAX + 1];
int ngroups;
gidset [0] = getegid();
ngroups=1+getgroups (NGROUPS_MAX, & gidset [1]);
AUTHOR
getaccess() was developed by HP.
SEE ALSO
access(2), acl(2), chmod(2), getacl(2), setacl(2), stat(2), acl(5), aclv(5), unistd(5).
HP-UX Release 11i: December 2000 − 3 − Section 2−−77
___
___