Searched refs:FD_CLOEXEC (Results 1 - 25 of 62) sorted by relevance

123

/freebsd-10-stable/tools/regression/filemon/
H A Dfilemontest.c65 (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 Dcloexec.c47 if (fcntl(fd, F_SETFD, ret | FD_CLOEXEC) == -1)
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_socketpair.c81 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 Dt_pipe2.c69 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 Dproc.c94 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 Dapr_arch_inherit.h33 flags &= ~(FD_CLOEXEC); \
53 flags |= FD_CLOEXEC; \
/freebsd-10-stable/tools/regression/capsicum/syscalls/
H A Dcap_fcntls_limit.c57 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 Dcap_ioctls_limit.c58 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 Dfdopen.c83 if ((oflags & O_CLOEXEC) && _fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) {
H A Dfreopen.c121 (void) _fcntl(fp->_file, F_SETFD, FD_CLOEXEC);
/freebsd-10-stable/contrib/netbsd-tests/lib/librumpclient/
H A Dh_execthr.c168 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 Dh_exec.c103 if (rump_sys_fcntl(s1, F_SETFD, FD_CLOEXEC) == -1) {
/freebsd-10-stable/contrib/apr/file_io/unix/
H A Dopen.c193 if ((flags & FD_CLOEXEC) == 0) {
194 flags |= FD_CLOEXEC;
394 flags |= FD_CLOEXEC;
H A Dmktemp.c212 flags |= FD_CLOEXEC;
H A Dfiledup.c52 flags |= FD_CLOEXEC;
/freebsd-10-stable/contrib/tcsh/
H A Dtc.os.h195 # 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 Dmkostemp_test.c74 (oflags & O_CLOEXEC ? FD_CLOEXEC : 0)) {
H A Dfopen_test.c54 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 Dpollset.c91 flags |= FD_CLOEXEC;
101 flags |= FD_CLOEXEC;
H A Dport.c198 flags |= FD_CLOEXEC;
498 flags |= FD_CLOEXEC;
/freebsd-10-stable/tools/regression/lib/libc/gen/
H A Dtest-popen.c62 else if ((flags & FD_CLOEXEC) !=
63 (strchr(mode, 'e') != NULL ? FD_CLOEXEC : 0))
/freebsd-10-stable/tests/sys/file/
H A Ddup_test.c287 if (fcntl(fd2, F_GETFD) != FD_CLOEXEC)
327 if (fcntl(fd2, F_GETFD) != FD_CLOEXEC)
/freebsd-10-stable/lib/libc/tests/gen/
H A Dpopen_test.c64 exp_flags = FD_CLOEXEC;
67 ATF_CHECK_MSG((flags & FD_CLOEXEC) == exp_flags,
/freebsd-10-stable/contrib/bmake/
H A Dmake.h102 #ifndef FD_CLOEXEC
103 #define FD_CLOEXEC 1 macro
/freebsd-10-stable/sys/sys/
H A Dfcntl.h231 #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

Completed in 136 milliseconds

123