Searched refs:FD_CLOFORK (Results 1 – 10 of 10) sorted by relevance
| /src/cddl/contrib/opensolaris/tests/os-tests/tests/oclo/ |
| H A D | oclo.c | 137 bool fail = child && (rt->crt_flags & FD_CLOFORK) != 0; in oclo_flags_match() 231 if ((c->clo_flags & FD_CLOFORK) != 0) in oclo_file() 275 oclo_setfd_common(c, FD_CLOFORK); in oclo_setfd_fork() 281 oclo_setfd_common(c, FD_CLOFORK | FD_CLOEXEC); in oclo_setfd_both() 333 oclo_fdup_common(c, FD_CLOFORK, F_DUPFD_CLOFORK); in oclo_fdupfd_fork() 352 oclo_fdup_common(c, FD_CLOFORK, F_DUP2FD_CLOFORK); in oclo_fdup2fd_fork() 377 oclo_fdup_common(c, FD_CLOFORK, F_DUP3FD); in oclo_fdup3fd_fork() 383 oclo_fdup_common(c, FD_CLOEXEC | FD_CLOFORK, F_DUP3FD); in oclo_fdup3fd_both() 396 if ((targ_flags & FD_CLOFORK) != 0) in oclo_dup_common() 427 oclo_dup_common(c, FD_CLOFORK, true); in oclo_dup3_fork() [all …]
|
| H A D | ocloexec_verify.c | 69 bool clofork = (exp_flags & FD_CLOFORK) != 0; in verify_flags() 70 exp_flags &= ~FD_CLOFORK; in verify_flags() 102 if (clofork && (flags & FD_CLOFORK) != 0) { in verify_flags() 144 (val < 0 || val > (FD_CLOEXEC | FD_CLOFORK))) { in main()
|
| H A D | oclo_errors.c | 154 (FD_CLOEXEC | FD_CLOFORK) + 1)) { in main()
|
| /src/lib/libc/gen/ |
| H A D | dup3.c | 55 ((flags & O_CLOFORK) != 0 ? FD_CLOFORK : 0); in __dup3()
|
| /src/tests/sys/file/ |
| H A D | dup_test.c | 396 if (fcntl(fd2, F_GETFD) != FD_CLOFORK) in main() 421 if (fcntl(fd2, F_GETFD) != FD_CLOFORK) in main()
|
| H A D | closefrom_test.c | 355 "close-on-fork", FD_CLOFORK, i >= 2 && i <= 5); in ATF_TC_BODY()
|
| /src/sys/sys/ |
| H A D | fcntl.h | 313 #define FD_CLOFORK 4 /* close-on-fork flag */ macro
|
| /src/tests/sys/kern/ |
| H A D | unix_passfd_test.c | 399 ATF_REQUIRE_EQ_MSG(fcntl(getfd, F_GETFD) & FD_CLOFORK, FD_CLOFORK, in ATF_TC_BODY()
|
| /src/lib/libsysdecode/ |
| H A D | flags.c | 877 X(FD_CLOEXEC) X(FD_CLOFORK) X(0) XEND
|
| /src/sys/kern/ |
| H A D | kern_descrip.c | 506 { .f = FD_CLOFORK, .t = UF_FOCLOSE }, in fd_to_fde_flags() 519 { .f = UF_FOCLOSE, .t = FD_CLOFORK }, in fde_to_fd_flags() 1020 if ((flags & ~(FD_CLOEXEC | FD_CLOFORK)) != 0) in kern_fcntl() 1025 ((flags & FD_CLOFORK) != 0 ? FDDUP_FLAG_CLOFORK : 0), in kern_fcntl()
|