Home
last modified time | relevance | path

Searched refs:F_SETFD (Results 1 – 25 of 140) sorted by relevance

123456

/freebsd/tools/regression/capsicum/syscalls/
H A Dcap_fcntls_limit.c53 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_0()
55 CHECK(fcntl(fd, F_SETFD, 0) == 0); in fcntl_tests_0()
77 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_0()
79 CHECK(fcntl(fd, F_SETFD, 0) == 0); in fcntl_tests_0()
100 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_0()
102 CHECK(fcntl(fd, F_SETFD, 0) == 0); in fcntl_tests_0()
133 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_0()
135 CHECK(fcntl(fd, F_SETFD, 0) == 0); in fcntl_tests_0()
185 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_1()
187 CHECK(fcntl(fd, F_SETFD, in fcntl_tests_1()
[all...]
H A Dcap_ioctls_limit.c100 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_0()
116 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in ioctl_tests_0()
122 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_0()
162 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in ioctl_tests_1()
168 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_1()
201 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in ioctl_tests_2()
207 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_2()
286 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_recv_0()
300 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in ioctl_tests_recv_0()
306 CHECK(fcntl(fd, F_SETFD, in ioctl_tests_recv_0()
[all...]
/freebsd/lib/libc/gen/
H A Dpopen.c145 (void)_fcntl(pdes[1], F_SETFD, 0); in popen()
147 (void)_fcntl(pdes[1], F_SETFD, 0); in popen()
152 (void)_fcntl(pdes[0], F_SETFD, 0); in popen()
178 (void)_fcntl(fileno(iop), F_SETFD, 0); in popen()
H A Dfdopendir.c59 rc = _fcntl(fd, F_SETFD, flags | FD_CLOEXEC); in fdopendir()
H A Dwordexp.c173 _fcntl(pdes[1], F_SETFD, 0)) < 0) in we_askshell()
175 if (_fcntl(pdesw[0], F_SETFD, 0) < 0) in we_askshell()
/freebsd/usr.bin/mail/
H A Dpopen.c70 (void)fcntl(fileno(fp), F_SETFD, 1); in Fopen()
82 (void)fcntl(fileno(fp), F_SETFD, 1); in Fdopen()
106 (void)fcntl(p[READ], F_SETFD, 1); in Popen()
107 (void)fcntl(p[WRITE], F_SETFD, 1); in Popen()
H A Dlex.c128 (void)fcntl(fileno(otf), F_SETFD, 1); in setfile()
131 (void)fcntl(fileno(itf), F_SETFD, 1); in setfile()
/freebsd/contrib/netbsd-tests/lib/librumpclient/
H A Dh_execthr.c168 if (rump_sys_fcntl(p1[0], F_SETFD, FD_CLOEXEC) == -1) in main()
170 if (rump_sys_fcntl(p1[1], F_SETFD, FD_CLOEXEC) == -1) in main()
H A Dh_exec.c103 if (rump_sys_fcntl(s1, F_SETFD, FD_CLOEXEC) == -1) { in main()
/freebsd/contrib/blocklist/port/
H A Dpopenve.c98 fcntl(pdes[0], F_SETFD, FD_CLOEXEC); in pdes_get()
99 fcntl(pdes[1], F_SETFD, FD_CLOEXEC); in pdes_get()
/freebsd/crypto/heimdal/lib/roken/
H A Dcloexec.c47 if (fcntl(fd, F_SETFD, ret | FD_CLOEXEC) == -1) in rk_cloexec()
/freebsd/sys/contrib/libsodium/src/libsodium/randombytes/sysrandom/
H A Drandombytes_sysrandom.c190 # if defined(F_SETFD) && defined(FD_CLOEXEC) in randombytes_sysrandom_random_dev_open()
191 (void) fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in randombytes_sysrandom_random_dev_open()
/freebsd/contrib/llvm-project/libc/include/llvm-libc-macros/linux/
H A Dfcntl-macros.h67 #define F_SETFD 2 macro
/freebsd/contrib/file/src/
H A Dfuncs.c917 # ifdef F_SETFD in file_pipe_closexec()
918 (void)fcntl(fds[0], F_SETFD, FD_CLOEXEC); in file_pipe_closexec()
919 (void)fcntl(fds[1], F_SETFD, FD_CLOEXEC); in file_pipe_closexec()
927 #ifdef F_SETFD in file_clear_closexec()
928 return fcntl(fd, F_SETFD, 0); in file_clear_closexec()
/freebsd/lib/libc/stdio/
H A Dfdopen.c86 rc = _fcntl(fd, F_SETFD, tmp | FD_CLOEXEC); in fdopen()
/freebsd/contrib/jemalloc/src/
H A Dpages.c639 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in pages_boot()
650 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in pages_boot()
659 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
/freebsd/contrib/tcsh/
H A Dtc.os.h193 # ifdef F_SETFD
197 # define close_on_exec(fd, v) fcntl((fd), F_SETFD, ((v) ? FD_CLOEXEC : 0))
/freebsd/lib/libutil/
H A Dflopen.c112 if (fcntl(fd, F_SETFD, FD_CLOEXEC) != 0) { in vflopenat()
/freebsd/contrib/pf/libevent/
H A Dsignal.c82 if (fcntl(x, F_SETFD, 1) == -1) \
/freebsd/tools/build/cross-build/
H A Dclosefrom.c68 (void)fcntl(fd, F_SETFD, FD_CLOEXEC); in closefrom_close()
/freebsd/contrib/bmake/
H A Djob.c668 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) in SetCloseOnExec()
1610 if (fcntl(STDIN_FILENO, F_SETFD, 0) == -1) in JobExec()
1618 if (fcntl(tokenPoolJob.inPipe, F_SETFD, 0) == -1) in JobExec()
1621 if (fcntl(tokenPoolJob.outPipe, F_SETFD, 0) == -1) in JobExec()
1635 if (fcntl(STDOUT_FILENO, F_SETFD, 0) == -1) in JobExec()
1746 (void)fcntl(fd, F_SETFD, FD_CLOEXEC); in JobWriteShellCommands()
2698 (void)fcntl(tokenPoolReader, F_SETFD, FD_CLOEXEC); in TokenPool_InitClient()
2699 (void)fcntl(tokenPoolWriter, F_SETFD, FD_CLOEXEC); in TokenPool_InitClient()
/freebsd/sys/contrib/libsodium/src/libsodium/randombytes/salsa20/
H A Drandombytes_salsa20_random.c231 # if defined(F_SETFD) && defined(FD_CLOEXEC) in randombytes_salsa20_random_random_dev_open()
232 (void) fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in randombytes_salsa20_random_random_dev_open()
/freebsd/lib/libc/rpc/
H A Dclnt_simple.c179 _fcntl(fd, F_SETFD, 1); /* make it "close on exec" */ in rpc_call()
/freebsd/crypto/krb5/src/include/
H A Dk5-platform.h859 #ifdef F_SETFD
861 # define set_cloexec_fd(FD) ((void)fcntl((FD), F_SETFD, FD_CLOEXEC))
863 # define set_cloexec_fd(FD) ((void)fcntl((FD), F_SETFD, 1))
/freebsd/usr.bin/mail/tests/
H A Dmailx_signal_test.c46 pipe(spd) != 0 || fcntl(spd[1], F_SETFD, FD_CLOEXEC) != 0) in mailx_signal_test()

123456