Searched refs:FDIN (Results 1 - 1 of 1) sorted by relevance

/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dsuid_exec.c38 * may pass file descriptor FDIN as an open file with mode SPECIAL if
59 #define FDIN 10 /* must be same as /dev/fd below */ macro
85 static const char devfd[] = "/dev/fd/10"; /* must match FDIN above */
157 if(n == FDIN)
160 close(FDIN);
165 if(fstat(FDIN,&statb) < 0 || (statb.st_mode & ~S_IFMT) != SPECIAL)
199 close(FDIN);
200 if(fcntl(n,F_DUPFD,FDIN) != FDIN)

Completed in 268 milliseconds