Home
last modified time | relevance | path

Searched refs:in_exec (Results 1 – 7 of 7) sorted by relevance

/xnu-11215/bsd/kern/
H A Dkern_fork.c454 bool in_exec = !!(clone_flags & CLONEPROC_EXEC); in fork_create_child() local
480 in_exec ? TPF_EXEC_COPY : TPF_NONE, /* Mark the task exec copy if in execve */ in fork_create_child()
688 bool in_exec = !!(clone_flags & CLONEPROC_EXEC); in cloneproc() local
735 (in_exec && (parent_proc->p_memstat_state & P_MEMSTAT_INTERNAL))) { in cloneproc()
742 if (in_exec && parent_proc->p_memstat_relaunch_flags != P_MEMSTAT_RELAUNCH_UNKNOWN) { in cloneproc()
748 pinsertchild(parent_proc, child_proc, in_exec); in cloneproc()
939 bool in_exec = !!(clone_flags & CLONEPROC_EXEC); in forkproc() local
962 if (!in_exec) { in forkproc()
1103 if (fdt_fork(&child_proc->p_fd, parent_proc, parent_uthread->uu_cdir, in_exec) != 0) { in forkproc()
1110 if (parent_proc->vm_shm && !in_exec) { in forkproc()
[all …]
H A Dkern_descrip.c756 fdt_exec(proc_t p, kauth_cred_t p_cred, short posix_spawn_flags, thread_t thread, bool in_exec) in fdt_exec() argument
783 if (in_exec && (current_proc()->p_ladvflag & P_LADVLOCK)) { in fdt_exec()
826 } else if (in_exec) { in fdt_exec()
850 fdt_fork(struct filedesc *newfdp, proc_t p, vnode_t uth_cdir, bool in_exec) in fdt_fork() argument
970 ((ofp->fp_flags & FP_CLOFORK) && !in_exec) || in fdt_fork()
971 ((ofp->fp_flags & FP_CLOEXEC) && in_exec) || in fdt_fork()
985 if (in_exec) { in fdt_fork()
H A Dkern_proc.c2455 pinsertchild(proc_t parent, proc_t child, bool in_exec) in pinsertchild() argument
2461 if (in_exec) { in pinsertchild()
2476 child->p_original_ppid = in_exec ? sibling->p_original_ppid : proc_getpid(parent); in pinsertchild()
2484 if (in_exec && parent == initproc && child->p_original_ppid != 1) { in pinsertchild()
2496 if (in_exec) { in pinsertchild()
H A Dmach_loader.c456 int in_exec = (imgp->ip_flags & IMGPF_EXEC); in load_machfile() local
652 if (in_exec) { in load_machfile()
H A Dkern_exec.c2619 boolean_t in_exec = (imgp->ip_flags & IMGPF_EXEC); in exec_handle_port_actions() local
2671 if (in_exec && task_has_watchport_boost) { in exec_handle_port_actions()
/xnu-11215/bsd/sys/
H A Dfiledesc.h372 fdt_fork(struct filedesc *child_fdt, proc_t parent_p, struct vnode *uth_cdir, bool in_exec);
401 fdt_exec(proc_t p, struct ucred *p_cred, short posix_spawn_flags, thread_t thread, bool in_exec);
H A Dproc_internal.h843 extern void pinsertchild(struct proc *parent, struct proc *child, bool in_exec);