Home
last modified time | relevance | path

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

12

/minix/minix/tests/
H A Dtest20.c123 if (fcntl(fd5, F_SETFD, FD_CLOEXEC) == -1) e(7); in test20d()
124 if (fcntl(fd6, F_SETFD, FD_CLOEXEC) == -1) e(8); in test20d()
154 if ((fcntl(fd3, F_GETFD) & FD_CLOEXEC) != 0) e(18); in test20d()
155 if ((fcntl(fd4, F_GETFD) & FD_CLOEXEC) != 0) e(19); in test20d()
156 if ((fcntl(fd5, F_GETFD) & FD_CLOEXEC) != FD_CLOEXEC) e(20); in test20d()
157 if ((fcntl(fd6, F_GETFD) & FD_CLOEXEC) != FD_CLOEXEC) e(21); in test20d()
158 if ((fcntl(fd7, F_GETFD) & FD_CLOEXEC) != 0) e(22); in test20d()
159 if ((fcntl(fd8, F_GETFD) & FD_CLOEXEC) != 0) e(23); in test20d()
H A Dtest67.c58 if (!(flags & FD_CLOEXEC)) e(3); in test_open_file_cloexec()
71 if (!(flags & FD_CLOEXEC)) e(6); in test_open_file_cloexec()
101 if (flags & FD_CLOEXEC) e(3); in test_open_file_fork()
114 if (flags & FD_CLOEXEC) e(6); in test_open_file_fork()
288 if (!(flags & FD_CLOEXEC)) e(6); in test_open_socket_cloexec()
374 if (flags & FD_CLOEXEC) e(6); in test_open_socket_fork()
H A Dtest68.c142 if (!(flags & FD_CLOEXEC)) e(3); in test_pipe_cloexec()
160 if (!(flags & FD_CLOEXEC)) e(9); in test_pipe_cloexec()
277 if (fcntl(pipes[0], F_GETFD) != FD_CLOEXEC) e(11); in test_pipe_flag_setting()
278 if (fcntl(pipes[1], F_GETFD) != FD_CLOEXEC) e(12); in test_pipe_flag_setting()
H A Dtest29.c36 #define IS_CLOEXEC(fd) ((fcntl(fd, F_GETFD) & FD_CLOEXEC) == FD_CLOEXEC)
37 #define SET_CLOEXEC(fd) fcntl(fd, F_SETFD, FD_CLOEXEC)
H A Dtest7.c225 if (fcntl(fd, F_SETFD, FD_CLOEXEC) != 0) e(3);/* turn it on */ in test7c()
226 if (fcntl(fd, F_GETFD) != FD_CLOEXEC) e(4); /* should be on now */ in test7c()
260 if (fcntl(fd, F_SETFD, FD_CLOEXEC) != 0) e(26);/* turn FD_CLOEXEC on */ in test7c()
269 if (fcntl(newfd3, F_GETFD) != FD_CLOEXEC) e(0); /* FD_CLOEXEC must be set */ in test7c()
272 if (fcntl(newfd3, F_GETFD) != FD_CLOEXEC) e(0); /* FD_CLOEXEC must be set */ in test7c()
277 if (fcntl(newfd4, F_GETFD) != FD_CLOEXEC) e(0); /* FD_CLOEXEC must be set */ in test7c()
299 if (fcntl(fd, F_SETFD, FD_CLOEXEC) != 0) e(40); /* close 3 on exec */ in test7c()
300 if (fcntl(newfd2, F_SETFD, FD_CLOEXEC) != 0) e(41); /* close 10 on exec */ in test7c()
H A Dtest8.c100 if ((flags & FD_CLOEXEC) != 0) e(39); in test8a()
108 if ((flags & FD_CLOEXEC) != 0) e(46); in test8a()
/minix/tests/lib/libc/sys/
H A Dt_socketpair.c77 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0); in run()
78 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0); in run()
80 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0); in run()
81 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0); in run()
H A Dt_pipe2.c64 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0); in run()
65 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0); in run()
67 ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0); in run()
68 ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0); in run()
/minix/lib/libc/db/db/
H A Ddbfile.c60 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) in __dbopen()
104 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) in __dbtemp()
/minix/tests/lib/librumpclient/
H A Dh_execthr.c149 if (rump_sys_fcntl(p1[0], F_SETFD, FD_CLOEXEC) == -1) in main()
151 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()
/minix/crypto/external/bsd/heimdal/dist/lib/roken/
H A Dcloexec.c49 if (fcntl(fd, F_SETFD, ret | FD_CLOEXEC) == -1) in rk_cloexec()
/minix/minix/lib/libc/sys/
H A Dioctl.c293 return ioctl_to_setfd(fd, FD_CLOEXEC, FD_CLOEXEC); in ioctl_to_fcntl()
295 return ioctl_to_setfd(fd, FD_CLOEXEC, 0); in ioctl_to_fcntl()
H A Dposix_spawn.c236 if (fcntl(pfd[1], F_SETFD, FD_CLOEXEC) != 0) { in posix_spawn()
/minix/external/bsd/blacklist/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()
/minix/lib/libc/gen/
H A Dopendir.c108 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) in _fdopendir()
/minix/lib/libc/rpc/
H A Dclnt_simple.c196 (void)fcntl(fd, F_SETFD, FD_CLOEXEC); in rpc_call()
/minix/minix/commands/cron/
H A Dcron.c98 fcntl(errfd[1], F_GETFD) | FD_CLOEXEC); in run_job()
159 (void) fcntl(errfd[1], F_SETFD, fcntl(errfd[1], F_GETFD) | FD_CLOEXEC); in run_job()
/minix/sys/sys/
H A Dfcntl.h200 #define FD_CLOEXEC 1 /* close-on-exec flag */ macro
/minix/external/bsd/dhcpcd/dist/
H A Dcommon.c99 fcntl(ctx->log_fd, F_SETFD, f | FD_CLOEXEC) == -1) in logger_open()
/minix/external/bsd/libarchive/dist/libarchive/
H A Darchive_windows.h251 #define FD_CLOEXEC 1 /* Close on exec. */ macro
/minix/bin/sh/
H A Dredir.c147 (void)fcntl(i, F_SETFD, FD_CLOEXEC); in redirect()
H A Dinput.c434 (void) fcntl(fd, F_SETFD, FD_CLOEXEC); in setinputfd()
H A Djobs.c154 #if defined(FIOCLEX) || defined(FD_CLOEXEC) in setjobctl()
178 #elif FD_CLOEXEC in setjobctl()
180 fcntl(ttyfd, F_GETFD, 0) | FD_CLOEXEC); in setjobctl()
/minix/lib/libc/yp/
H A Dyplib.c270 if (fcntl(ysd->dom_socket, F_SETFD, FD_CLOEXEC) == -1) in _yp_dobind()

12