Home
last modified time | relevance | path

Searched refs:F_SETFD (Results 1 – 25 of 133) 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.c53 if (_fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) 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.c96 fcntl(pdes[0], F_SETFD, FD_CLOEXEC); in pdes_get()
97 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/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/contrib/bmake/
H A Djob.c576 if (fcntl(job->inPipe, F_SETFD, FD_CLOEXEC) == -1) in JobCreatePipe()
578 if (fcntl(job->outPipe, F_SETFD, FD_CLOEXEC) == -1) in JobCreatePipe()
1483 if (fcntl(STDIN_FILENO, F_SETFD, 0) == -1) in JobExec()
1491 if (fcntl(tokenWaitJob.inPipe, F_SETFD, 0) == -1) in JobExec()
1494 if (fcntl(tokenWaitJob.outPipe, F_SETFD, 0) == -1) in JobExec()
1512 if (fcntl(STDOUT_FILENO, F_SETFD, 0) == -1) in JobExec()
1634 (void)fcntl(fileno(job->cmdFILE), F_SETFD, FD_CLOEXEC); in JobWriteShellCommands()
2720 (void)fcntl(jp_0, F_SETFD, FD_CLOEXEC); in clearfd()
2721 (void)fcntl(jp_1, F_SETFD, FD_CLOEXEC); in clearfd()
/freebsd/lib/libc/stdio/
H A Dfdopen.c79 if ((oflags & O_CLOEXEC) && _fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) { in fdopen()
/freebsd/contrib/jemalloc/src/
H A Dpages.c487 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc()
498 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc()
507 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc()
/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/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/crypto/openssh/openbsd-compat/
H A Dbsd-pselect.c66 fcntl(r, F_SETFD, FD_CLOEXEC) < 0 || r >= FD_SETSIZE) in pselect_notify_setup_fd()
/freebsd/lib/libc/rpc/
H A Dclnt_simple.c179 _fcntl(fd, F_SETFD, 1); /* make it "close on exec" */ in rpc_call()
/freebsd/contrib/llvm-project/compiler-rt/lib/rtsan/tests/
H A Drtsan_test_interceptors.cpp240 ASSERT_THAT(fcntl(fd, F_SETFD, FD_CLOEXEC), Eq(0)); in TEST_F()
246 ASSERT_THAT(fcntl(fd, F_SETFD, old_flags), Eq(0)); in TEST_F()
/freebsd/sys/sys/
H A Dfcntl.h241 #define F_SETFD 2 /* set file descriptor flags */ macro

123456