/src/lib/libc/compat/sys/ |
compat_dup3.c | 64 fdflags = FD_CLOEXEC|FD_CLOFORK; 67 fdflags = FD_CLOEXEC;
|
/src/tests/kernel/ |
h_fexecve.c | 46 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
|
t_epoll.c | 76 ATF_REQUIRE_MSG((fcntl(fd, F_GETFD) & FD_CLOEXEC) == 0, 80 ATF_REQUIRE_MSG((fcntl(fd, F_GETFD) & FD_CLOEXEC) != 0,
|
t_cloexec.c | 151 RL(fcntl(fd, F_SETFD, FD_CLOEXEC));
|
/src/tests/lib/libc/sys/ |
t_socketpair.c | 84 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0); 85 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0); 87 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0); 88 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0);
|
t_pipe2.c | 72 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0); 73 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0); 75 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0); 76 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0);
|
t_eventfd.c | 795 ATF_REQUIRE((fcntl(efd, F_GETFD) & FD_CLOEXEC) == 0); 808 ATF_REQUIRE((fcntl(efd, F_GETFD) & FD_CLOEXEC) != 0); 810 ATF_REQUIRE((fcntl(efd, F_GETFD) & FD_CLOEXEC) == 0); 811 ATF_REQUIRE(fcntl(efd, F_SETFD, FD_CLOEXEC) == 0); 812 ATF_REQUIRE((fcntl(efd, F_GETFD) & FD_CLOEXEC) != 0);
|
t_timerfd.c | 775 ATF_REQUIRE((fcntl(tfd, F_GETFD) & FD_CLOEXEC) == 0); 788 ATF_REQUIRE((fcntl(tfd, F_GETFD) & FD_CLOEXEC) != 0); 790 ATF_REQUIRE((fcntl(tfd, F_GETFD) & FD_CLOEXEC) == 0); 791 ATF_REQUIRE(fcntl(tfd, F_SETFD, FD_CLOEXEC) == 0); 792 ATF_REQUIRE((fcntl(tfd, F_GETFD) & FD_CLOEXEC) != 0);
|
/src/lib/libc/db/db/ |
dbfile.c | 62 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) 106 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
|
/src/distrib/utils/libhack/ |
opendir.c | 71 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1 ||
|
/src/tests/lib/librumpclient/ |
h_execthr.c | 168 if (rump_sys_fcntl(p1[0], F_SETFD, FD_CLOEXEC) == -1) 170 if (rump_sys_fcntl(p1[1], F_SETFD, FD_CLOEXEC) == -1)
|
h_exec.c | 103 if (rump_sys_fcntl(s1, F_SETFD, FD_CLOEXEC) == -1) {
|
/src/bin/sh/ |
redir.c | 81 #ifndef FD_CLOEXEC 82 # define FD_CLOEXEC 1 /* well known from before there was a name */ 88 (fcntl_int)(fcntl((fd), F_GETFD) | FD_CLOEXEC))) 104 int cloexec; /* orig had FD_CLOEXEC set (into always does) */ 316 cloexec &= FD_CLOEXEC; 352 (void)fcntl(i, F_SETFD, (fcntl_int) FD_CLOEXEC); 488 (void)fcntl(f, F_SETFD, (fcntl_int) FD_CLOEXEC); 648 (fcntl_int)(fcntl(newfd, F_GETFD) | FD_CLOEXEC)); 763 (void)fcntl(fd, F_SETFD, (fcntl_int) FD_CLOEXEC); 1001 if (c & FD_CLOEXEC) [all...] |
/src/lib/libc/gen/ |
opendir.c | 108 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
|
/src/sys/external/isc/libsodium/dist/src/libsodium/randombytes/sysrandom/ |
randombytes_sysrandom.c | 190 # if defined(F_SETFD) && defined(FD_CLOEXEC) 191 (void) fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
|
/src/lib/libc/rpc/ |
clnt_simple.c | 196 (void)fcntl(fd, F_SETFD, FD_CLOEXEC);
|
/src/tests/lib/libc/ttyio/ |
t_ptm.c | 188 ATF_CHECK_EQ(FD_CLOEXEC|FD_CLOFORK, fcntl(fdm, F_GETFD));
|
/src/sys/external/isc/libsodium/dist/src/libsodium/randombytes/salsa20/ |
randombytes_salsa20_random.c | 231 # if defined(F_SETFD) && defined(FD_CLOEXEC) 232 (void) fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
|
/src/games/atc/ |
log.c | 140 flags |= FD_CLOEXEC;
|
/src/usr.sbin/powerd/ |
powerd.c | 136 if (prog_fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) {
|
/src/sys/sys/ |
fcntl.h | 220 #define FD_CLOEXEC 1 /* close-on-exec flag */
|
/src/usr.bin/make/ |
make.h | 100 #ifndef FD_CLOEXEC 101 #define FD_CLOEXEC 1
|
/src/sys/kern/ |
sys_descrip.c | 412 *retval = (dt->dt_ff[fd]->ff_exclose ? FD_CLOEXEC : 0) | 418 fd_set_exclose(l, fd, (tmp & FD_CLOEXEC) != 0);
|
/src/lib/libc/yp/ |
yplib.c | 270 if (fcntl(ysd->dom_socket, F_SETFD, FD_CLOEXEC) == -1)
|
/src/libexec/atrun/ |
atrun.c | 239 (void)fcntl(fd_in, F_SETFD, fflags & ~FD_CLOEXEC);
|