| /illumos-gate/usr/src/test/os-tests/tests/oclo/ |
| H A D | oclo.c | 196 if ((c->clo_flags & FD_CLOEXEC) != 0) in oclo_file() 236 oclo_setfd_common(c, FD_CLOEXEC); in oclo_setfd_exec() 248 oclo_setfd_common(c, FD_CLOFORK | FD_CLOEXEC); in oclo_setfd_both() 304 oclo_fdup_common(c, FD_CLOEXEC, F_DUPFD_CLOEXEC); in oclo_fdupfd_exec() 322 oclo_fdup_common(c, FD_CLOEXEC, F_DUP2FD_CLOEXEC); in oclo_fdup2fd_exec() 334 oclo_fdup_common(c, FD_CLOEXEC, F_DUP3FD); in oclo_fdup3fd_exec() 346 oclo_fdup_common(c, FD_CLOEXEC | FD_CLOFORK, F_DUP3FD); in oclo_fdup3fd_both() 357 if ((targ_flags & FD_CLOEXEC) != 0) in oclo_dup_common() 384 oclo_dup_common(c, FD_CLOEXEC, true); in oclo_dup3_exec() 396 oclo_dup_common(c, FD_CLOEXEC | FD_CLOFORK, true); in oclo_dup3_both() [all …]
|
| H A D | ocloexec_verify.c | 51 bool fail = (exp_flags & FD_CLOEXEC) != 0; in verify_flags() 125 FD_CLOEXEC | FD_CLOFORK, &errstr, 0); in main()
|
| H A D | oclo_errors.c | 147 (FD_CLOEXEC | FD_CLOFORK) + 1)) { in main()
|
| /illumos-gate/usr/src/test/os-tests/tests/poll/ |
| H A D | epoll_test.c | 34 assert(flags != -1 && (flags & FD_CLOEXEC) == 0); in main() 42 assert(flags != -1 && (flags & FD_CLOEXEC) == FD_CLOEXEC); in main()
|
| /illumos-gate/usr/src/test/os-tests/tests/signalfd/ |
| H A D | basic_args.c | 61 if ((res & FD_CLOEXEC) != 0) { in main() 81 if ((res & FD_CLOEXEC) == 0) { in main()
|
| /illumos-gate/usr/src/uts/common/syscall/ |
| H A D | pipe.c | 199 f_setfd_or(fd1, FD_CLOEXEC); in pipe() 200 f_setfd_or(fd2, FD_CLOEXEC); in pipe()
|
| H A D | open.c | 234 f_setfd_or(fd, FD_CLOEXEC); in copen() 267 f_setfd_or(fd, FD_CLOEXEC); in copen()
|
| /illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
| H A D | spawnveg.c | 193 fcntl(err[0], F_SETFD, FD_CLOEXEC); 194 fcntl(err[1], F_SETFD, FD_CLOEXEC);
|
| H A D | fcntl.c | 77 op = ioctl(fd, n == FD_CLOEXEC ? FIOCLEX : FIONCLEX, 0);
|
| /illumos-gate/usr/src/test/libproc-tests/tests/syscall/ |
| H A D | pr_target.h | 54 #define PRT_DUP3_GETFD (FD_CLOFORK | FD_CLOEXEC)
|
| /illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
| H A D | procopen.c | 268 fcntl(m->save, F_SETFD, FD_CLOEXEC); in modify() 280 fcntl(arg1, F_SETFD, FD_CLOEXEC); in modify() 362 fcntl(m->arg.fd.child.fd, F_SETFD, FD_CLOEXEC); in restore() 879 fcntl(proc->rfd, F_SETFD, FD_CLOEXEC); in procopen() 881 fcntl(proc->wfd, F_SETFD, FD_CLOEXEC); in procopen()
|
| /illumos-gate/usr/src/lib/libc/port/gen/ |
| H A D | dup.c | 76 dflags |= FD_CLOEXEC; in dup3()
|
| H A D | fdopendir.c | 62 if (fcntl(fd, F_SETFD, FD_CLOEXEC) < 0) in fdopendir()
|
| /illumos-gate/usr/src/lib/libdiskmgt/common/ |
| H A D | inuse_dump.c | 74 (void) fcntl(dump_fd, F_SETFD, FD_CLOEXEC); in inuse_dump()
|
| /illumos-gate/usr/src/lib/libc/port/rt/ |
| H A D | shm.c | 57 fcntl(fd, F_SETFD, flags | FD_CLOEXEC) < 0) { in shm_open()
|
| /illumos-gate/usr/src/contrib/ast/src/lib/libast/dir/ |
| H A D | opendir.c | 59 fcntl(fd, F_SETFD, FD_CLOEXEC) ||
|
| /illumos-gate/usr/src/cmd/mdb/common/mdb/ |
| H A D | mdb_context.c | 85 (void) fcntl(zfd, F_SETFD, FD_CLOEXEC); in mdb_context_create()
|
| H A D | mdb_shell.c | 76 (void) fcntl(fd, F_SETFD, FD_CLOEXEC); in closefd_walk()
|
| /illumos-gate/usr/src/ucbhead/sys/ |
| H A D | fcntl.h | 211 #define FD_CLOEXEC 1 /* close on exec flag */ macro
|
| /illumos-gate/usr/src/lib/libsmbfs/smb/ |
| H A D | iod_cl.c | 120 (void) fcntl(fd, F_SETFD, FD_CLOEXEC); in smb_iod_open_door()
|
| /illumos-gate/usr/src/lib/libsldap/common/ |
| H A D | ns_cache_door.c | 137 (void) fcntl(doorfd, F_SETFD, FD_CLOEXEC); in __ns_ldap_trydoorcall_getfd()
|
| /illumos-gate/usr/src/lib/libcontract/common/ |
| H A D | libcontract_priv.c | 53 if ((flags != -1) && (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) != -1)) in close_on_exec()
|
| /illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
| H A D | subshell.c | 127 fcntl(fd,F_SETFD,FD_CLOEXEC); in sh_subtmpfile() 144 sh_fcntl(sp->pipefd,F_SETFD,FD_CLOEXEC); in sh_subtmpfile() 568 fcntl(sp->pwdfd,F_SETFD,FD_CLOEXEC); in sh_subshell() 690 fcntl(fd,F_SETFD,FD_CLOEXEC); in sh_subshell()
|
| /illumos-gate/usr/src/boot/sys/sys/ |
| H A D | fcntl.h | 249 #define FD_CLOEXEC 1 /* close-on-exec flag */ macro
|
| /illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/ |
| H A D | history.c | 172 fcntl(acctfd,F_SETFD,FD_CLOEXEC); in acctinit() 303 fcntl(fd,F_SETFD,FD_CLOEXEC); in sh_histinit() 397 fcntl(fd,F_SETFD,FD_CLOEXEC); in sh_histinit() 1203 fcntl(oldfd,F_SETFD,FD_CLOEXEC); in hist_exceptf()
|