Home
last modified time | relevance | path

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

1234

/illumos-gate/usr/src/test/os-tests/tests/oclo/
H A Doclo.c196 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 Docloexec_verify.c51 bool fail = (exp_flags & FD_CLOEXEC) != 0; in verify_flags()
125 FD_CLOEXEC | FD_CLOFORK, &errstr, 0); in main()
H A Doclo_errors.c147 (FD_CLOEXEC | FD_CLOFORK) + 1)) { in main()
/illumos-gate/usr/src/test/os-tests/tests/poll/
H A Depoll_test.c34 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 Dbasic_args.c61 if ((res & FD_CLOEXEC) != 0) { in main()
81 if ((res & FD_CLOEXEC) == 0) { in main()
/illumos-gate/usr/src/uts/common/syscall/
H A Dpipe.c199 f_setfd_or(fd1, FD_CLOEXEC); in pipe()
200 f_setfd_or(fd2, FD_CLOEXEC); in pipe()
H A Dopen.c234 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 Dspawnveg.c193 fcntl(err[0], F_SETFD, FD_CLOEXEC);
194 fcntl(err[1], F_SETFD, FD_CLOEXEC);
H A Dfcntl.c77 op = ioctl(fd, n == FD_CLOEXEC ? FIOCLEX : FIONCLEX, 0);
/illumos-gate/usr/src/test/libproc-tests/tests/syscall/
H A Dpr_target.h54 #define PRT_DUP3_GETFD (FD_CLOFORK | FD_CLOEXEC)
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dprocopen.c268 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 Ddup.c76 dflags |= FD_CLOEXEC; in dup3()
H A Dfdopendir.c62 if (fcntl(fd, F_SETFD, FD_CLOEXEC) < 0) in fdopendir()
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dinuse_dump.c74 (void) fcntl(dump_fd, F_SETFD, FD_CLOEXEC); in inuse_dump()
/illumos-gate/usr/src/lib/libc/port/rt/
H A Dshm.c57 fcntl(fd, F_SETFD, flags | FD_CLOEXEC) < 0) { in shm_open()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/dir/
H A Dopendir.c59 fcntl(fd, F_SETFD, FD_CLOEXEC) ||
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_context.c85 (void) fcntl(zfd, F_SETFD, FD_CLOEXEC); in mdb_context_create()
H A Dmdb_shell.c76 (void) fcntl(fd, F_SETFD, FD_CLOEXEC); in closefd_walk()
/illumos-gate/usr/src/ucbhead/sys/
H A Dfcntl.h211 #define FD_CLOEXEC 1 /* close on exec flag */ macro
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Diod_cl.c120 (void) fcntl(fd, F_SETFD, FD_CLOEXEC); in smb_iod_open_door()
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_cache_door.c137 (void) fcntl(doorfd, F_SETFD, FD_CLOEXEC); in __ns_ldap_trydoorcall_getfd()
/illumos-gate/usr/src/lib/libcontract/common/
H A Dlibcontract_priv.c53 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 Dsubshell.c127 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 Dfcntl.h249 #define FD_CLOEXEC 1 /* close-on-exec flag */ macro
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/
H A Dhistory.c172 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()

1234