aboutsummaryrefslogtreecommitdiffstats
path: root/ports/linux/guts/getresgid.c
blob: 13551a480a12c51a975d86007941b65a3de302b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* 
 * Copyright (c) 2008-2010 Wind River Systems; see
 * guts/COPYRIGHT for information.
 *
 * static int
 * wrap_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid) {
 *	int rc = -1;
 */
	if (rgid)
		*rgid = pseudo_rgid;
	if (egid)
		*egid = pseudo_egid;
	if (sgid)
		*sgid = pseudo_sgid;
	if (rgid && egid && sgid) {
		rc = 0;
	} else {
		rc = -1;
		errno = EFAULT;
	}
/*	return rc;
 * }
 */