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

Completed in 45 milliseconds