Home | History | Annotate | Download | only in sh

Lines Matching defs:O_CLOEXEC

642 #ifdef O_CLOEXEC
643 newfd = dup3(from, to, O_CLOEXEC);
922 #ifndef O_CLOEXEC
923 # define O_CLOEXEC ((~ALLFLAGS) ^ ((~ALLFLAGS) & ((~ALLFLAGS) - 1)))
927 { "cloexec", 2, O_CLOEXEC },
1002 f |= O_CLOEXEC;
1078 if ((pos & O_CLOEXEC) && !(f & O_CLOEXEC))
1080 if ((neg & O_CLOEXEC) && (f & O_CLOEXEC))
1083 /* Don't allow O_CLOEXEC on stdin, stdout, or stderr */
1088 pos &= ~O_CLOEXEC;
1089 neg &= ~O_CLOEXEC;
1090 f &= ~O_CLOEXEC;