O_CLOEXEC
|O_CLOEXEC|O_DIRECTORY|O_DIRECT|O_CLOFORK|FXATTRDIROPEN)
if (arg & O_CLOEXEC)
long flags = ~(O_CLOEXEC | O_CLOFORK | O_NONBLOCK);
if (val & O_CLOEXEC) {
if (flags & ~(O_CLOEXEC | O_CLOFORK)) {
if ((flags & O_CLOEXEC) != 0)
if (fd < 0 && (newfd = open(path, O_RDONLY|O_CLOEXEC)) < 0)
(sp->fts_rfd = open(".", O_RDONLY | O_CLOEXEC)) < 0)
open(".", O_RDONLY | O_CLOEXEC)) < 0) {
open(".", O_RDONLY | O_CLOEXEC)) < 0) {
if ((fd = open(".", O_RDONLY | O_CLOEXEC)) < 0)
oflag = oflag | O_CLOEXEC;
oflags |= O_CLOEXEC;
oflags |= O_CLOEXEC;
oflags |= O_CLOEXEC;
oflags |= O_CLOEXEC;
kd = open("/dev/kstat", O_RDONLY | O_CLOEXEC);
int fd = open(KTEST_DEV_PATH, O_RDONLY | O_CLOEXEC, 0);
ctrl->nc_fd = open(buf, O_RDWR | O_CLOEXEC);
oflags |= O_CLOEXEC;
O_RDONLY | O_NDELAY | O_LARGEFILE | O_CLOEXEC, 0)) < 0) {
fd = open("/usr/bin/ls", O_RDONLY | O_EXEC | O_CLOEXEC);
flags |= O_CLOEXEC;
flags |= O_CLOEXEC;
dflags |= O_CLOEXEC;
flags |= O_CLOEXEC;
.clo_flags = O_CLOFORK | O_CLOEXEC,
.clo_flags = O_CLOEXEC,
.clo_flags = O_CLOFORK | O_CLOEXEC,
.clo_flags = O_CLOEXEC,
.clo_flags = O_CLOFORK | O_CLOEXEC,
.clo_flags = O_CLOEXEC,
.clo_flags = O_CLOFORK | O_CLOEXEC,
.clo_flags = O_CLOEXEC,
if (!oclo_dup3("dup3(): O_NONBLOCK|O_CLOXEC", O_NONBLOCK | O_CLOEXEC)) {
if (!oclo_pipe2("pipe2(): O_SYNC|O_CLOXEC", O_SYNC | O_CLOEXEC)) {