aboutsummaryrefslogtreecommitdiffstats
path: root/ports/linux/guts/getpwent_r.c
blob: 4fd9cc05d20565273cb73aba18bc07f8ec665344 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* 
 * Copyright (c) 2010-2011 Wind River Systems; see
 * guts/COPYRIGHT for information.
 *
 * static int
 * wrap_getpwent_r(struct passwd *pwbuf, char *buf, size_t buflen, struct passwd **pwbufp) {
 *	int rc = -1;
 */

	/* note that we don't wrap fgetpwent_r, since there's no path
	 * references in it.
	 */
	if (!pseudo_pwd) {
		errno = ENOENT;
		return -1;
	}
	rc = fgetpwent_r(pseudo_pwd, pwbuf, buf, buflen, pwbufp);

/*	return rc;
 * }
 */