aboutsummaryrefslogtreecommitdiffstats
path: root/ports/unix/guts/system.c
blob: 6351592116609a9b92015f2d8d4936b0fb17f0a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Copyright (c) 2011, 2012 Wind River Systems; see
 * guts/COPYRIGHT for information.
 *
 * int system(const char *command)
 *	int rc = -1;
 */
	if (!command)
		return 1;

	pseudo_setupenv();
	if (pseudo_has_unload(NULL))
		pseudo_dropenv();

	rc = real_system(command);

/*	return rc;
 * }
 */