aboutsummaryrefslogtreecommitdiffstats
path: root/ports/unix/guts/popen.c
blob: 5d44c0ed752768e097e4e109861c63adc3c2c5f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Copyright (c) 2012 Wind River Systems; see
 * guts/COPYRIGHT for information.
 *
 * 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;
 * }
 */