aboutsummaryrefslogtreecommitdiffstats
path: root/ports/unix/guts/system.c
blob: 028b372b755aea39c4c070f7e68e9082ffd18f0a (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_get_value("PSEUDO_UNLOAD"))
		pseudo_dropenv();

	rc = real_system(command);

/*	return rc;
 * }
 */