/minix/minix/tests/ |
H A D | test20.c | 123 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 D | test67.c | 58 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 D | test68.c | 142 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 D | test29.c | 36 #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 D | test7.c | 225 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 D | test8.c | 100 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 D | t_socketpair.c | 77 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 D | t_pipe2.c | 64 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 D | dbfile.c | 60 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 D | h_execthr.c | 149 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 D | h_exec.c | 103 if (rump_sys_fcntl(s1, F_SETFD, FD_CLOEXEC) == -1) { in main()
|
/minix/crypto/external/bsd/heimdal/dist/lib/roken/ |
H A D | cloexec.c | 49 if (fcntl(fd, F_SETFD, ret | FD_CLOEXEC) == -1) in rk_cloexec()
|
/minix/minix/lib/libc/sys/ |
H A D | ioctl.c | 293 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 D | posix_spawn.c | 236 if (fcntl(pfd[1], F_SETFD, FD_CLOEXEC) != 0) { in posix_spawn()
|
/minix/external/bsd/blacklist/port/ |
H A D | popenve.c | 96 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 D | opendir.c | 108 if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) in _fdopendir()
|
/minix/lib/libc/rpc/ |
H A D | clnt_simple.c | 196 (void)fcntl(fd, F_SETFD, FD_CLOEXEC); in rpc_call()
|
/minix/minix/commands/cron/ |
H A D | cron.c | 98 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 D | fcntl.h | 200 #define FD_CLOEXEC 1 /* close-on-exec flag */ macro
|
/minix/external/bsd/dhcpcd/dist/ |
H A D | common.c | 99 fcntl(ctx->log_fd, F_SETFD, f | FD_CLOEXEC) == -1) in logger_open()
|
/minix/external/bsd/libarchive/dist/libarchive/ |
H A D | archive_windows.h | 251 #define FD_CLOEXEC 1 /* Close on exec. */ macro
|
/minix/bin/sh/ |
H A D | redir.c | 147 (void)fcntl(i, F_SETFD, FD_CLOEXEC); in redirect()
|
H A D | input.c | 434 (void) fcntl(fd, F_SETFD, FD_CLOEXEC); in setinputfd()
|
H A D | jobs.c | 154 #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 D | yplib.c | 270 if (fcntl(ysd->dom_socket, F_SETFD, FD_CLOEXEC) == -1) in _yp_dobind()
|