Home
last modified time | relevance | path

Searched refs:stdinfile (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/lib/libinstzones/common/
H A Dzones_exec.c150 int stdinfile = -1; in z_ExecCmdArray() local
182 stdinfile = open(a_inputFile, O_RDONLY); in z_ExecCmdArray()
184 stdinfile = open("/dev/null", O_RDONLY); /* stdin = /dev/null */ in z_ExecCmdArray()
187 if (stdinfile < 0) { in z_ExecCmdArray()
196 (void) close(stdinfile); in z_ExecCmdArray()
205 (void) close(stdinfile); in z_ExecCmdArray()
241 (void) dup2(stdinfile, STDIN_FILENO); in z_ExecCmdArray()
265 (void) close(stdinfile); in z_ExecCmdArray()
687 int stdinfile = -1; in _z_zone_exec() local
749 stdinfile = open(a_inputFile, O_RDONLY); in _z_zone_exec()
[all …]
/illumos-gate/usr/src/lib/libpkg/common/
H A Druncmd.c314 int stdinfile = -1; in e_ExecCmdArray() local
337 stdinfile = open(a_inputFile, O_RDONLY); in e_ExecCmdArray()
339 stdinfile = open("/dev/null", O_RDONLY); /* stdin = /dev/null */ in e_ExecCmdArray()
342 if (stdinfile < 0) { in e_ExecCmdArray()
351 (void) close(stdinfile); in e_ExecCmdArray()
360 (void) close(stdinfile); in e_ExecCmdArray()
396 (void) dup2(stdinfile, STDIN_FILENO); in e_ExecCmdArray()
416 (void) close(stdinfile); in e_ExecCmdArray()