/freebsd-10-stable/tools/regression/filemon/ |
H A D | filemontest.c | 65 (void)fcntl(fm_fd, F_SETFD, FD_CLOEXEC); 66 (void)fcntl(fm_log, F_SETFD, FD_CLOEXEC);
|
/freebsd-10-stable/crypto/heimdal/lib/roken/ |
H A D | cloexec.c | 47 if (fcntl(fd, F_SETFD, ret | FD_CLOEXEC) == -1)
|
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_socketpair.c | 81 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0); 82 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0); 84 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0); 85 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0);
|
H A D | t_pipe2.c | 69 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0); 70 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0); 72 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0); 73 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0);
|
/freebsd-10-stable/usr.bin/make/ |
H A D | proc.c | 94 fcntl(STDIN_FILENO, F_GETFD) & (~FD_CLOEXEC)); 96 fcntl(STDOUT_FILENO, F_GETFD) & (~FD_CLOEXEC)); 98 fcntl(STDERR_FILENO, F_GETFD) & (~FD_CLOEXEC));
|
/freebsd-10-stable/contrib/apr/include/arch/unix/ |
H A D | apr_arch_inherit.h | 33 flags &= ~(FD_CLOEXEC); \ 53 flags |= FD_CLOEXEC; \
|
/freebsd-10-stable/tools/regression/capsicum/syscalls/ |
H A D | cap_fcntls_limit.c | 57 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); 58 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 81 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); 82 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 104 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); 105 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 137 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); 138 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 186 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); 187 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); [all...] |
H A D | cap_ioctls_limit.c | 58 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 79 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 99 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 103 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 120 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); 121 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 125 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 162 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); 163 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); 167 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); [all...] |
/freebsd-10-stable/lib/libc/stdio/ |
H A D | fdopen.c | 83 if ((oflags & O_CLOEXEC) && _fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) {
|
H A D | freopen.c | 121 (void) _fcntl(fp->_file, F_SETFD, FD_CLOEXEC);
|
/freebsd-10-stable/contrib/netbsd-tests/lib/librumpclient/ |
H A D | 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 A D | h_exec.c | 103 if (rump_sys_fcntl(s1, F_SETFD, FD_CLOEXEC) == -1) {
|
/freebsd-10-stable/contrib/apr/file_io/unix/ |
H A D | open.c | 193 if ((flags & FD_CLOEXEC) == 0) { 194 flags |= FD_CLOEXEC; 394 flags |= FD_CLOEXEC;
|
H A D | mktemp.c | 212 flags |= FD_CLOEXEC;
|
H A D | filedup.c | 52 flags |= FD_CLOEXEC;
|
/freebsd-10-stable/contrib/tcsh/ |
H A D | tc.os.h | 195 # ifndef FD_CLOEXEC 196 # define FD_CLOEXEC 1 macro 198 # define close_on_exec(fd, v) fcntl((fd), F_SETFD, ((v) ? FD_CLOEXEC : 0))
|
/freebsd-10-stable/lib/libc/tests/stdio/ |
H A D | mkostemp_test.c | 74 (oflags & O_CLOEXEC ? FD_CLOEXEC : 0)) {
|
H A D | fopen_test.c | 54 exp_fget_ret = strchr(mode, 'e') != NULL ? FD_CLOEXEC : 0; 56 "fcntl(.., F_GETFD) didn't FD_CLOEXEC as expected %d != %d",
|
/freebsd-10-stable/contrib/apr/poll/unix/ |
H A D | pollset.c | 91 flags |= FD_CLOEXEC; 101 flags |= FD_CLOEXEC;
|
H A D | port.c | 198 flags |= FD_CLOEXEC; 498 flags |= FD_CLOEXEC;
|
/freebsd-10-stable/tools/regression/lib/libc/gen/ |
H A D | test-popen.c | 62 else if ((flags & FD_CLOEXEC) != 63 (strchr(mode, 'e') != NULL ? FD_CLOEXEC : 0))
|
/freebsd-10-stable/tests/sys/file/ |
H A D | dup_test.c | 287 if (fcntl(fd2, F_GETFD) != FD_CLOEXEC) 327 if (fcntl(fd2, F_GETFD) != FD_CLOEXEC)
|
/freebsd-10-stable/lib/libc/tests/gen/ |
H A D | popen_test.c | 64 exp_flags = FD_CLOEXEC; 67 ATF_CHECK_MSG((flags & FD_CLOEXEC) == exp_flags,
|
/freebsd-10-stable/contrib/bmake/ |
H A D | make.h | 102 #ifndef FD_CLOEXEC 103 #define FD_CLOEXEC 1 macro
|
/freebsd-10-stable/sys/sys/ |
H A D | fcntl.h | 231 #define F_DUPFD_CLOEXEC 17 /* Like F_DUPFD, but FD_CLOEXEC is set */ 234 #define F_DUP2FD_CLOEXEC 18 /* Like F_DUP2FD, but FD_CLOEXEC is set */ 238 #define FD_CLOEXEC 1 /* close-on-exec flag */ macro
|