aboutsummaryrefslogtreecommitdiffstats
path: root/guts/getpwent.c
blob: 5b76ad0b40bb941db83b8adcb293160aeef93ad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* 
 * static struct passwd *
 * wrap_getpwent(void) {
 *	struct passwd * rc = NULL;
 */
	static struct passwd pwd;
	static char pwbuf[PSEUDO_PWD_MAX];
	int r_rc;

	r_rc = wrap_getpwent_r(&pwd, pwbuf, PSEUDO_PWD_MAX, &rc);
	/* different error return conventions */
	if (r_rc != 0) {
		errno = r_rc;
	}

/*	return rc;
 * }
 */