Searched refs:F_DUPFD_CLOEXEC (Results 1 - 12 of 12) sorted by path

/freebsd-11-stable/bin/sh/
H A Dredir.c144 if ((i = fcntl(fd, F_DUPFD_CLOEXEC, 10)) == -1) {
H A Dinput.c367 fd2 = fcntl(fd, F_DUPFD_CLOEXEC, 10);
H A Djobs.c192 (ttyfd = fcntl(i, F_DUPFD_CLOEXEC, 10)) < 0) {
202 if ((i = fcntl(ttyfd, F_DUPFD_CLOEXEC, 10)) < 0) {
/freebsd-11-stable/tests/sys/file/
H A Ddup_test.c32 * Test #18: check if fcntl(F_DUPFD_CLOEXEC) works.
33 * Test #19: check if fcntl(F_DUPFD_CLOEXEC) set close-on-exec flag for duped
251 /* Does fcntl(F_DUPFD_CLOEXEC) work? */
252 if ((fd2 = fcntl(fd1, F_DUPFD_CLOEXEC, 10)) < 0)
253 err(1, "fcntl(F_DUPFD_CLOEXEC)");
255 printf("not ok %d - fcntl(F_DUPFD_CLOEXEC) returned wrong fd %d\n",
258 printf("ok %d - fcntl(F_DUPFD_CLOEXEC) works\n", ++test);
264 "not ok %d - fcntl(F_DUPFD_CLOEXEC) didn't set close-on-exec\n",
267 printf("ok %d - fcntl(F_DUPFD_CLOEXEC) set close-on-exec\n",
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_read_disk_posix.c2081 #ifdef F_DUPFD_CLOEXEC
2085 new_fd = fcntl(fd, F_DUPFD_CLOEXEC, 0);
2088 /* Linux 2.6.18 - 2.6.23 declare F_DUPFD_CLOEXEC,
2090 /* We won't try F_DUPFD_CLOEXEC. */
2093 #endif /* F_DUPFD_CLOEXEC */
/freebsd-11-stable/contrib/llvm-project/lldb/include/lldb/Host/posix/
H A DFcntl.h21 #define F_DUPFD_CLOEXEC (F_LINUX_SPECIFIC_BASE + 6) macro
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/
H A DProcessFreeBSD.cpp410 #ifdef F_DUPFD_CLOEXEC
411 int stdio = fcntl(terminal, F_DUPFD_CLOEXEC, 0);
417 // Special case when F_DUPFD_CLOEXEC does not exist (Debian kFreeBSD)
/freebsd-11-stable/libexec/rtld-elf/
H A Drtld.c2503 fd = fcntl(fd_u, F_DUPFD_CLOEXEC, 0);
/freebsd-11-stable/sys/compat/linux/
H A Dlinux_file.c1430 return (kern_fcntl(td, args->fd, F_DUPFD_CLOEXEC, args->arg));
/freebsd-11-stable/sys/contrib/libnv/
H A Dnvpair.c1283 value = fcntl(value, F_DUPFD_CLOEXEC, 0);
1524 fds[ii] = fcntl(value[ii], F_DUPFD_CLOEXEC, 0);
2041 fd = fcntl(value, F_DUPFD_CLOEXEC, 0);
/freebsd-11-stable/sys/kern/
H A Dkern_descrip.c503 case F_DUPFD_CLOEXEC:
/freebsd-11-stable/sys/sys/
H A Dfcntl.h244 #define F_DUPFD_CLOEXEC 17 /* Like F_DUPFD, but FD_CLOEXEC is set */ macro

Completed in 337 milliseconds