HP-UX Reference (11i v2 03/08) - 2 System Calls (vol 5)

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).
Section 280 Hewlett-Packard Company 3 HP-UX 11i Version 2: August 2003