aboutsummaryrefslogtreecommitdiffstats
path: root/ports/unix/guts/popen.c
blob: d19ec7e231376ff6034931f237ebde9d6a3aefa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Copyright (c) 2012 Wind River Systems; see
 * guts/COPYRIGHT for information.
 *
 * SPDX-License-Identifier: LGPL-2.1-only
 *
 * FILE *popen(const char *command, const char *mode)
 *	FILE *rc = NULL;
 */
	/* on at least some systems, popen() calls fork and exec
	 * in ways that avoid our usual enforcement of the environment.
	 */
	pseudo_setupenv();
	if (pseudo_has_unload(NULL))
		pseudo_dropenv();

	rc = real_popen(command, mode);

/*	return rc;
 * }
 */