HomeSort by: relevance | last modified time | path
    Searched refs:O_CLOEXEC (Results 1 - 25 of 156) sorted by relevancy

1 2 3 4 5 6 7

  /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/external/gpl3/gcc.old/dist/libbacktrace/
posix.c 48 #ifndef O_CLOEXEC
49 #define O_CLOEXEC 0
67 descriptor = open (filename, (int) (O_RDONLY | O_BINARY | O_CLOEXEC));
83 O_CLOEXEC. It doesn't matter if this fails for some reason.
85 O_CLOEXEC == 0. */
  /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;
  /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/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/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/external/gpl3/gcc.old/dist/gcc/cp/
mapper-client.cc 41 #define O_CLOEXEC 0
188 ? O_RDWR | O_CLOEXEC : O_RDONLY | O_CLOEXEC;
207 ? O_RDWR | O_CLOEXEC : O_WRONLY | O_CLOEXEC;
279 int fd = open (name.c_str (), O_RDONLY | O_CLOEXEC);
  /src/external/bsd/pkg_install/dist/lib/
fexec.c 88 #ifndef O_CLOEXEC
89 #define O_CLOEXEC 0
118 if ((prevcwd = open(".", O_RDONLY|O_CLOEXEC|O_DIRECTORY)) < 0) {
  /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/lib/libc/gen/
nlist.c 122 fd = open(name, O_RDONLY | O_CLOEXEC, 0);
  /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/external/gpl3/binutils/dist/libctf/
ctf-decls.h 67 # define O_CLOEXEC 0
  /src/external/gpl3/binutils.old/dist/libctf/
ctf-decls.h 67 # define O_CLOEXEC 0

Completed in 49 milliseconds

1 2 3 4 5 6 7