Home
last modified time | relevance | path

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

123456

/freebsd-13-stable/tools/regression/capsicum/syscalls/
HDcap_fcntls_limit.c54 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_0()
56 CHECK(fcntl(fd, F_SETFD, 0) == 0); in fcntl_tests_0()
78 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_0()
80 CHECK(fcntl(fd, F_SETFD, 0) == 0); in fcntl_tests_0()
101 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_0()
103 CHECK(fcntl(fd, F_SETFD, 0) == 0); in fcntl_tests_0()
134 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_0()
136 CHECK(fcntl(fd, F_SETFD, 0) == 0); in fcntl_tests_0()
186 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in fcntl_tests_1()
188 CHECK(fcntl(fd, F_SETFD, 0) == 0); in fcntl_tests_1()
[all …]
HDcap_ioctls_limit.c101 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_0()
117 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in ioctl_tests_0()
123 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_0()
163 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in ioctl_tests_1()
169 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_1()
202 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in ioctl_tests_2()
208 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_2()
287 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_recv_0()
301 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in ioctl_tests_recv_0()
307 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_recv_0()
/freebsd-13-stable/lib/libc/gen/
HDpopen.c147 (void)_fcntl(pdes[1], F_SETFD, 0); in popen()
149 (void)_fcntl(pdes[1], F_SETFD, 0); in popen()
154 (void)_fcntl(pdes[0], F_SETFD, 0); in popen()
180 (void)_fcntl(fileno(iop), F_SETFD, 0); in popen()
HDwordexp.c174 _fcntl(pdes[1], F_SETFD, 0)) < 0) in we_askshell()
176 if (_fcntl(pdesw[0], F_SETFD, 0) < 0) in we_askshell()
/freebsd-13-stable/contrib/apr/include/arch/unix/
HDapr_arch_inherit.h34 if (fcntl(the##name->name##des, F_SETFD, flags) == -1) \
54 if (fcntl(the##name->name##des, F_SETFD, flags) == -1) \
/freebsd-13-stable/usr.bin/mail/
HDpopen.c76 (void)fcntl(fileno(fp), F_SETFD, 1); in Fopen()
88 (void)fcntl(fileno(fp), F_SETFD, 1); in Fdopen()
112 (void)fcntl(p[READ], F_SETFD, 1); in Popen()
113 (void)fcntl(p[WRITE], F_SETFD, 1); in Popen()
HDlex.c134 (void)fcntl(fileno(otf), F_SETFD, 1); in setfile()
137 (void)fcntl(fileno(itf), F_SETFD, 1); in setfile()
/freebsd-13-stable/contrib/apr/poll/unix/
HDwakeup.c99 if (fcntl(wakeup_pipe[0]->filedes, F_SETFD, flags) == -1) in apr_poll_create_wakeup_pipe()
109 if (fcntl(wakeup_pipe[1]->filedes, F_SETFD, flags) == -1) in apr_poll_create_wakeup_pipe()
/freebsd-13-stable/contrib/netbsd-tests/lib/librumpclient/
HDh_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()
HDh_exec.c103 if (rump_sys_fcntl(s1, F_SETFD, FD_CLOEXEC) == -1) { in main()
/freebsd-13-stable/contrib/blacklist/port/
HDpopenve.c96 fcntl(pdes[0], F_SETFD, FD_CLOEXEC); in pdes_get()
97 fcntl(pdes[1], F_SETFD, FD_CLOEXEC); in pdes_get()
/freebsd-13-stable/crypto/heimdal/lib/roken/
HDcloexec.c47 if (fcntl(fd, F_SETFD, ret | FD_CLOEXEC) == -1) in rk_cloexec()
/freebsd-13-stable/sys/contrib/libsodium/src/libsodium/randombytes/sysrandom/
HDrandombytes_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-13-stable/lib/libc/stdio/
HDfdopen.c83 if ((oflags & O_CLOEXEC) && _fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) { in fdopen()
/freebsd-13-stable/contrib/file/src/
HDfuncs.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-13-stable/contrib/bmake/
HDjob.c591 if (fcntl(job->inPipe, F_SETFD, FD_CLOEXEC) == -1) in JobCreatePipe()
593 if (fcntl(job->outPipe, F_SETFD, FD_CLOEXEC) == -1) in JobCreatePipe()
1499 if (fcntl(0, F_SETFD, 0) == -1) in JobExec()
1509 if (fcntl(tokenWaitJob.inPipe, F_SETFD, 0) == -1) in JobExec()
1512 if (fcntl(tokenWaitJob.outPipe, F_SETFD, 0) == -1) in JobExec()
1530 if (fcntl(1, F_SETFD, 0) == -1) in JobExec()
1652 (void)fcntl(fileno(job->cmdFILE), F_SETFD, FD_CLOEXEC); in JobWriteShellCommands()
2888 (void)fcntl(jp_0, F_SETFD, FD_CLOEXEC); in Job_ServerStart()
2889 (void)fcntl(jp_1, F_SETFD, FD_CLOEXEC); in Job_ServerStart()
/freebsd-13-stable/contrib/jemalloc/src/
HDpages.c494 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc()
505 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc()
514 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc()
/freebsd-13-stable/contrib/tcsh/
HDtc.os.h193 # ifdef F_SETFD
197 # define close_on_exec(fd, v) fcntl((fd), F_SETFD, ((v) ? FD_CLOEXEC : 0))
/freebsd-13-stable/lib/libutil/
HDflopen.c112 if (fcntl(fd, F_SETFD, FD_CLOEXEC) != 0) { in vflopenat()
/freebsd-13-stable/contrib/apr/file_io/unix/
HDopen.c195 if (fcntl(fd, F_SETFD, flags) == -1) { in apr_file_open()
395 if (fcntl(thefile->filedes, F_SETFD, flags) == -1) in APR_IMPLEMENT_INHERIT_SET()
HDmktemp.c213 if (fcntl(fd, F_SETFD, flags) == -1) in apr_file_mktemp()
/freebsd-13-stable/contrib/pf/libevent/
HDsignal.c82 if (fcntl(x, F_SETFD, 1) == -1) \
/freebsd-13-stable/tools/build/cross-build/
HDclosefrom.c68 (void)fcntl(fd, F_SETFD, FD_CLOEXEC); in closefrom_close()
/freebsd-13-stable/sys/contrib/libsodium/src/libsodium/randombytes/salsa20/
HDrandombytes_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-13-stable/crypto/openssh/openbsd-compat/
HDbsd-pselect.c66 fcntl(r, F_SETFD, FD_CLOEXEC) < 0 || r >= FD_SETSIZE) in pselect_notify_setup_fd()

123456