/src/lib/libc/compat/sys/ |
compat_dup3.c | 62 switch (flags & (O_CLOEXEC|O_CLOFORK)) { 63 case O_CLOEXEC|O_CLOFORK: 66 case O_CLOEXEC:
|
/src/sys/sys/ |
eventfd.h | 45 #define EFD_CLOEXEC O_CLOEXEC
|
timerfd.h | 46 #define TFD_CLOEXEC O_CLOEXEC
|
epoll.h | 34 #include <sys/fcntl.h> /* for O_CLOEXEC */ 41 #define EPOLL_CLOEXEC O_CLOEXEC
|
/src/lib/libc/db/db/ |
dbfile.c | 54 #ifndef O_CLOEXEC 55 #define O_CLOEXEC 0 58 if ((fd = open(file, flags | O_CLOEXEC, mode)) == -1) 61 #if O_CLOEXEC == 0
|
db.c | 54 #ifndef O_CLOEXEC 55 #define O_CLOEXEC 0 66 O_RDWR | O_SHLOCK | O_TRUNC | O_CLOEXEC)
|
/src/lib/libc/stdio/ |
flags.c | 105 o |= O_CLOEXEC;
|
gettemp.c | 67 O_CLOEXEC | O_CLOFORK)) != 0) {
|
/src/lib/libc/sys/ |
adjtime.c | 79 __clockctl_fd = open(_PATH_CLOCKCTL, O_WRONLY | O_CLOEXEC, 0);
|
clock_settime.c | 81 __clockctl_fd = open(_PATH_CLOCKCTL, O_WRONLY | O_CLOEXEC, 0);
|
ntp_adjtime.c | 89 __clockctl_fd = open(_PATH_CLOCKCTL, O_WRONLY | O_CLOEXEC, 0);
|
settimeofday.c | 80 __clockctl_fd = open(_PATH_CLOCKCTL, O_WRONLY | O_CLOEXEC, 0);
|
/src/tests/lib/libc/sys/ |
t_dup.c | 80 fd = dup3(fd1, fd2, O_CLOEXEC); 211 ATF_REQUIRE_ERRNO(EINVAL, dup3(fd, fd, O_CLOEXEC) == -1); 214 ATF_REQUIRE_ERRNO(EINVAL, dup3(-1, -1, O_CLOEXEC) == -1); 217 ATF_REQUIRE_ERRNO(EBADF, dup3(fd, -1, O_CLOEXEC) == -1); 220 ATF_REQUIRE_ERRNO(EBADF, dup3(-1, fd, O_CLOEXEC) == -1); 243 res.rlim_cur + 1, O_CLOEXEC) == -1);
|
t_pipe2.c | 71 if (flags & O_CLOEXEC) { 146 err = pipe2(filedes, O_CLOEXEC); 171 run(O_CLOEXEC);
|
/src/tests/kernel/ |
t_cloexec.c | 98 RL(fd = open("/dev/drvctl", O_RDONLY|O_CLOEXEC)); 108 RL(fd3 = dup3(STDIN_FILENO, 3, O_CLOEXEC)); 130 RL(fd = kqueue1(O_CLOEXEC)); 140 RL(fd = open("file", O_RDWR|O_CREAT|O_CLOEXEC, 0644)); 172 RL(pipe2(fd, O_CLOEXEC)); 182 RL(pipe2(fd, O_CLOEXEC)); 381 * pipe2(O_CLOEXEC) with each exec path, and we try each open path with 397 "pipe2(O_CLOEXEC) reader is closed in child on fork/exec") 399 "pipe2(O_CLOEXEC) reader is closed in child on vfork/exec") 401 "pipe2(O_CLOEXEC) reader is closed in child on posix_spawn" [all...] |
/src/lib/libutil/ |
pidfile.c | 150 if ((fd = open(path, O_RDONLY | O_CLOEXEC | O_NONBLOCK)) == -1) 200 O_WRONLY | O_CREAT | O_CLOEXEC | O_NONBLOCK | O_EXLOCK,
|
/src/lib/libc/citrus/ |
citrus_mmap.c | 64 if ((fd = open(path, O_RDONLY | O_CLOEXEC)) == -1)
|
/src/sys/compat/linux/arch/alpha/ |
linux_pipe.c | 86 if ((flags & ~(O_CLOEXEC|O_NONBLOCK)) != 0)
|
/src/sys/compat/linux/common/ |
linux_pipe.c | 91 if ((flags & ~(O_CLOEXEC|O_NONBLOCK)) != 0)
|
/src/usr.bin/make/filemon/ |
filemon_dev.c | 77 for (i = 0; (F->fd = open(_PATH_FILEMON, O_RDWR|O_CLOEXEC)) == -1; i++) {
|
/src/lib/libc/gen/ |
nlist.c | 122 fd = open(name, O_RDONLY | O_CLOEXEC, 0);
|
/src/bin/sh/ |
redir.c | 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)) [all...] |
/src/lib/librt/ |
shm.c | 129 return open(path, oflag | O_CLOEXEC | O_NOFOLLOW, mode);
|
/src/usr.bin/find/ |
main.c | 151 if ((dotfd = open(".", O_RDONLY | O_CLOEXEC, 0)) == -1)
|
misc.c | 154 ttyfd = open(_PATH_TTY, O_RDWR | O_CLOEXEC);
|