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

12

/freebsd-9.3-release/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-9.3-release/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-9.3-release/lib/libfetch/
H A Dfile.c64 fcntl(fileno(f), F_SETFD, FD_CLOEXEC); local
95 fcntl(fileno(f), F_SETFD, FD_CLOEXEC); local
/freebsd-9.3-release/lib/libc/iconv/
H A Dcitrus_mmap.c62 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) {
/freebsd-9.3-release/lib/libc/stdio/
H A Dfdopen.c84 if ((oflags & O_CLOEXEC) && _fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) {
H A Dfreopen.c122 (void) _fcntl(fp->_file, F_SETFD, FD_CLOEXEC);
/freebsd-9.3-release/tools/regression/lib/libc/stdio/
H A Dtest-fopen.c52 printf("not ok %d - FD_CLOEXEC # SKIP\n",
62 if (fcntl(fd, F_GETFD) == (strchr(mode, 'e') != NULL ? FD_CLOEXEC : 0))
63 printf("ok %d - FD_CLOEXEC flag correct\n", testnum++);
65 printf("not ok %d - FD_CLOEXEC flag incorrect\n", testnum++);
/freebsd-9.3-release/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-9.3-release/sys/sys/
H A Dfcntl.h233 #define F_DUPFD_CLOEXEC 17 /* Like F_DUPFD, but FD_CLOEXEC is set */
236 #define F_DUP2FD_CLOEXEC 18 /* Like F_DUP2FD, but FD_CLOEXEC is set */
240 #define FD_CLOEXEC 1 /* close-on-exec flag */ macro
/freebsd-9.3-release/usr.bin/script/
H A Dscript.c170 (void)fcntl(fm_fd, F_SETFD, FD_CLOEXEC);
171 (void)fcntl(fm_log, F_SETFD, FD_CLOEXEC);
/freebsd-9.3-release/bin/sh/
H A Dredir.c144 (void)fcntl(i, F_SETFD, FD_CLOEXEC);
H A Dinput.c428 (void)fcntl(fd, F_SETFD, FD_CLOEXEC);
/freebsd-9.3-release/contrib/openbsm/compat/
H A Dpidfile.h156 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) {
/freebsd-9.3-release/lib/libc/gen/
H A Dopendir.c78 if (_fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
H A Dsyslog.c346 (void)_fcntl(LogFile, F_SETFD, FD_CLOEXEC);
/freebsd-9.3-release/usr.bin/truss/
H A Dmain.c240 * Set FD_CLOEXEC, so that the output file is not shared with
243 if (fcntl(fileno(trussinfo->outfile), F_SETFD, FD_CLOEXEC) ==
/freebsd-9.3-release/contrib/ntp/sntp/libevent/
H A Devutil.c119 #if defined(FD_CLOEXEC)
120 if (fcntl(fd, F_SETFD, FD_CLOEXEC) < 0) {
407 if (!(flags & FD_CLOEXEC)) {
408 if (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) == -1) {
425 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) {
/freebsd-9.3-release/contrib/gcclibs/libiberty/
H A Dpex-unix.c518 if (fcntl (fd, F_SETFD, FD_CLOEXEC) < 0)
/freebsd-9.3-release/crypto/openssh/
H A Dauthfd.c114 if (fcntl(sock, F_SETFD, FD_CLOEXEC) == -1) {
H A Dserverloop.c136 } else if ((fcntl(notify_pipe[0], F_SETFD, FD_CLOEXEC) == -1) ||
137 (fcntl(notify_pipe[1], F_SETFD, FD_CLOEXEC) == -1)) {
/freebsd-9.3-release/libexec/atrun/
H A Datrun.c226 fcntl(fd_in, F_SETFD, fflags & ~FD_CLOEXEC);
/freebsd-9.3-release/usr.sbin/inetd/
H A Dinetd.c555 if (fcntl(signalpipe[0], F_SETFD, FD_CLOEXEC) < 0 ||
556 fcntl(signalpipe[1], F_SETFD, FD_CLOEXEC) < 0) {
557 syslog(LOG_ERR, "signalpipe: fcntl (F_SETFD, FD_CLOEXEC): %m");
1277 if (fcntl(sep->se_fd, F_SETFD, FD_CLOEXEC) < 0) {
1278 syslog(LOG_ERR, "%s/%s: fcntl (F_SETFD, FD_CLOEXEC): %m",
/freebsd-9.3-release/contrib/sendmail/libmilter/
H A Dlistener.c456 fcntl(sock, F_SETFD, fdflags | FD_CLOEXEC) == -1)
/freebsd-9.3-release/contrib/sendmail/include/sm/
H A Dconf.h2718 # ifndef FD_CLOEXEC
2719 # define FD_CLOEXEC 1 macro
2720 # endif /* ! FD_CLOEXEC */
/freebsd-9.3-release/sys/compat/linux/
H A Dlinux_socket.c542 error = kern_fcntl(td, s, F_SETFD, FD_CLOEXEC);
1385 F_SETFD, FD_CLOEXEC);

Completed in 225 milliseconds

12