O_CLOEXEC
if ((fHandle = open(dev_name, O_RDWR | O_CLOEXEC)) < 0) {
FLAG_INFO_ENTRY(O_CLOEXEC),
fFd = _kern_open(fd, path, O_RDWR | O_CLOEXEC | traverseFlag, 0);
fFd = _kern_open(fd, path, O_RDONLY | O_CLOEXEC | traverseFlag, 0);
O_RDWR | O_CLOEXEC | traverseFlag, 0);
O_RDONLY | O_CLOEXEC | traverseFlag, 0);
fRawFD = open(path, O_RDWR | O_CLOEXEC);
openMode |= O_CLOEXEC;
openMode |= O_CLOEXEC;
int fd = _kern_open(entry->fDirFd, entry->fName, openMode | O_CLOEXEC,
openMode |= O_CLOEXEC;
openMode |= O_CLOEXEC;
fFd = _kern_open(fd, path, O_RDWR | O_CLOEXEC | traverseFlag, 0);
fFd = _kern_open(fd, path, O_RDONLY | O_CLOEXEC | traverseFlag, 0);
O_RDWR | O_CLOEXEC | traverseFlag, 0);
O_RDONLY | O_CLOEXEC | traverseFlag, 0);
O_CLOEXEC, 0)) < 0)
(sp->fts_rfd = open(".", O_RDONLY | O_CLOEXEC, 0)) < 0)
if ((p->fts_symfd = open(".", O_RDONLY | O_CLOEXEC,
open(".", O_RDONLY | O_CLOEXEC, 0)) < 0) {
if ((fd = open(".", O_RDONLY | O_CLOEXEC, 0)) < 0)
fd_set_close_on_exec(context, fd, (openFlags & O_CLOEXEC) != 0);
if ((flags & ~(O_CLOEXEC | O_CLOFORK)) != 0)
fd_set_close_on_exec(context, newfd, (flags & O_CLOEXEC) != 0);
oflags |= O_CLOEXEC;
fd_set_close_on_exec(context, fd, (oflags & O_CLOEXEC) != 0);
fd_set_close_on_exec(context, fd, (openMode & O_CLOEXEC) != 0);
status = get_new_fd(&sDirectoryOps, NULL, vnode, cookie, O_CLOEXEC, kernel);
status = get_new_fd(&sAttributeDirectoryOps, NULL, vnode, cookie, O_CLOEXEC,
fd = get_new_fd(&sIndexDirectoryOps, mount, NULL, cookie, O_CLOEXEC, kernel);
fd = get_new_fd(&sQueryOps, mount, NULL, cookie, O_CLOEXEC, kernel);
if ((flags & ~(O_NONBLOCK | O_CLOEXEC | O_CLOFORK)) != 0)
if ((kq = kqueue1(O_CLOEXEC)) == -1) {
#ifdef O_CLOEXEC
oflags |= O_CLOEXEC;
#ifdef O_CLOEXEC
? O_CLOEXEC : 0);
#ifdef O_CLOEXEC
int r = __pipe2 (pipe_fds, O_CLOEXEC);
# ifdef O_CLOEXEC
#ifdef O_CLOEXEC
# ifdef O_CLOEXEC
#ifdef O_CLOEXEC
(oflags & ~(O_APPEND | O_DIRECT | O_SYNC | O_CLOEXEC)) != 0) {
return open(path, openMode | O_CLOEXEC, permissions);
if ((flags & ~(O_CLOEXEC | O_CLOFORK)) != 0)
gTestFd = open("/boot/system/lib/libroot.so", O_CLOEXEC | O_RDONLY);