aboutsummaryrefslogtreecommitdiffstats
path: root/ports/linux/guts/getgrent_r.c
blob: c94f319a8a8cf351f71911b2d842da2494bc9aa2 (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-2011 Wind River Systems; see
 * guts/COPYRIGHT for information.
 *
 * SPDX-License-Identifier: LGPL-2.1-only
 *
 * static int
 * wrap_getgrent_r(struct group *gbuf, char *buf, size_t buflen, struct group **gbufp) {
 *	int rc = -1;
 */

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

/*	return rc;
 * }
 */