aboutsummaryrefslogtreecommitdiffstats
path: root/ports/uids_generic/guts/getgrnam.c
blob: 0e2644485691e8feb632269023321dc77d9483f0 (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) 2010 Wind River Systems; see
 * guts/COPYRIGHT for information.
 *
 * static struct group *
 * wrap_getgrnam(const char *name) {
 *	struct group * rc = NULL;
 */

	static struct group grp;
	static char grbuf[PSEUDO_PWD_MAX];
	int r_rc;

	r_rc = wrap_getgrnam_r(name, &grp, grbuf, PSEUDO_PWD_MAX, &rc);
	/* different error return conventions */
	if (r_rc != 0) {
		errno = r_rc;
	}


/*	return rc;
 * }
 */