Home
last modified time | relevance | path

Searched refs:p_flag (Results 1 – 25 of 35) sorted by relevance

12

/xnu-11215/bsd/kern/
H A Dkern_fork.c705 const int parent_64bit_addr = parent_proc->p_flag & P_LP64; in cloneproc()
726 OSBitOrAtomic(P_LP64, (UInt32 *)&child_proc->p_flag); in cloneproc()
729 OSBitAndAtomic(~((uint32_t)P_LP64), (UInt32 *)&child_proc->p_flag); in cloneproc()
1041 …child_proc->p_flag = (parent_proc->p_flag & (P_LP64 | P_TRANSLATED | P_DISABLE_ASLR | P_DELAYIDLES… in forkproc()
1043 …child_proc->p_flag = (parent_proc->p_flag & (P_LP64 | P_TRANSLATED | P_DISABLE_ASLR | P_SUGID | P_… in forkproc()
1137 if (pg->pg_session->s_ttyvp != NULL && parent_proc->p_flag & P_CONTROLT) { in forkproc()
1138 os_atomic_or(&child_proc->p_flag, P_CONTROLT, relaxed); in forkproc()
H A Dkern_sig.c498 if ((signum == SIGCHLD) && (p->p_flag & P_NOCLDSTOP)) { in sigaction()
501 if ((signum == SIGCHLD) && (p->p_flag & P_NOCLDWAIT)) { in sigaction()
671 OSBitOrAtomic(P_NOCLDSTOP, &p->p_flag); in setsigvec()
673 OSBitAndAtomic(~((uint32_t)P_NOCLDSTOP), &p->p_flag); in setsigvec()
676 OSBitOrAtomic(P_NOCLDWAIT, &p->p_flag); in setsigvec()
678 OSBitAndAtomic(~((uint32_t)P_NOCLDWAIT), &p->p_flag); in setsigvec()
1753 return p->p_flag & P_CONTROLT; in pgsignal()
2297 OSBitOrAtomic(P_CONTINUED, &sig_proc->p_flag); in psignal_internal()
2311 OSBitOrAtomic(P_CONTINUED, &sig_proc->p_flag); in psignal_internal()
2457 OSBitOrAtomic(P_CONTINUED, &sig_proc->p_flag); in psignal_internal()
[all …]
H A Dtty_tty.c217 os_atomic_andnot(&p->p_flag, P_CONTROLT, relaxed); in cttyioctl()
264 vp = (p->p_flag & P_CONTROLT ? sessp->s_ttyvp : NULLVP); in cttyvp()
H A Dproc_info.c425 if (p->p_flag & P_CONTROLT) { in proc_listpids()
708 if ((p->p_flag & P_SYSTEM) == P_SYSTEM) { in proc_pidbsdinfo()
720 if ((p->p_flag & P_LP64) == P_LP64) { in proc_pidbsdinfo()
726 if ((p->p_flag & P_THCWD) == P_THCWD) { in proc_pidbsdinfo()
729 if ((p->p_flag & P_SUGID) == P_SUGID) { in proc_pidbsdinfo()
732 if ((p->p_flag & P_EXEC) == P_EXEC) { in proc_pidbsdinfo()
790 if (p->p_flag & P_CONTROLT) { in proc_pidbsdinfo()
828 if ((p->p_flag & P_LP64) == P_LP64) { in proc_pidshortbsdinfo()
834 if ((p->p_flag & P_THCWD) == P_THCWD) { in proc_pidshortbsdinfo()
837 if ((p->p_flag & P_SUGID) == P_SUGID) { in proc_pidshortbsdinfo()
[all …]
H A Dsubr_prf.c168 if ((p->p_flag & P_CONTROLT) && pg) { in uprintf()
195 if ((p->p_flag & P_CONTROLT) && sessp->s_ttyvp) { in tprintf_open()
H A Dmach_process.c158 OSBitOrAtomic(P_FORCEQUOTA, &t->p_flag); in ptrace()
552 ISSET(traced_procp->p_flag, P_SUGID)) && in cantrace()
H A Dkern_clock.c341 if (!(p->p_flag & P_PROFIL)) { in get_procrustime()
H A Dkern_xxx.c154 OSBitOrAtomic(P_REBOOT, &p->p_flag); /* No more signals for this proc */ in reboot()
H A Dbsd_init.c530 kernproc->p_flag = P_SYSTEM | P_LP64; in bsd_init()
532 kernproc->p_flag = P_SYSTEM; in bsd_init()
627 kernproc->p_flag |= P_DISABLE_ASLR; in bsd_init()
H A Dkern_shutdown.c422 if (((p->p_flag & P_SYSTEM) != 0) || (p->p_ppid == 0) in sd_filt1()
478 if (((p->p_flag & P_SYSTEM) != 0) || (p->p_ppid == 0) in sd_filt2()
H A Dkern_acct.c297 if ((p->p_flag & P_CONTROLT) && (pg = proc_pgrp(p, NULL))) { in acct_process()
H A Dkern_sysctl.c1051 if (p->p_flag & P_CONTROLT) { in fill_user32_eproc()
1108 if (p->p_flag & P_CONTROLT) { in fill_user64_eproc()
1130 exp->p_flag = p->p_flag;
1136 exp->p_flag |= P_TRACED;
1139 exp->p_flag |= P_PPWAIT;
1142 exp->p_flag |= P_WEXIT;
1193 exp->p_flag = p->p_flag;
1199 exp->p_flag |= P_TRACED;
1202 exp->p_flag |= P_PPWAIT;
1205 exp->p_flag |= P_WEXIT;
[all …]
H A Dkern_exit.c590 pflags = p->p_flag & (P_LP64 | P_SUGID | P_TRANSLATED); in populate_corpse_crashinfo()
1195 unsigned int pflags = p->p_flag & (P_LP64 | P_SUGID | P_TRANSLATED); in current_thread_collect_backtrace_info()
2551 } else if (pp->p_flag & P_NOCLDWAIT) { in proc_exit()
2775 bool rollup_child = (parent->p_flag & P_NOCLDWAIT) == 0; in reap_child_locked()
3029 (p->p_flag & P_CONTINUED)) { in wait4_nocancel()
3038 OSBitAndAtomic(~((uint32_t)P_CONTINUED), &p->p_flag); in wait4_nocancel()
3294 if ((p->p_flag & P_CONTINUED) == 0) { in waitid_nocancel()
3318 &p->p_flag); in waitid_nocancel()
H A Dkern_exec.c838 (p->p_flag & P_AFFINITY) != 0); in exec_fat_imgact()
881 OSBitOrAtomic(P_LP64, &p->p_flag); in activate_exec_state()
884 OSBitAndAtomic(~((uint32_t)P_LP64), &p->p_flag); in activate_exec_state()
1615 OSBitOrAtomic(P_TRANSLATED, &p->p_flag); in exec_mach_imgact()
1616 } else if (p->p_flag & P_TRANSLATED) { in exec_mach_imgact()
1617 OSBitAndAtomic(~P_TRANSLATED, &p->p_flag); in exec_mach_imgact()
2127 OSBitOrAtomic(P_EXEC, &p->p_flag); in exec_mach_imgact()
4238 OSBitOrAtomic(P_DISABLE_ASLR, &p->p_flag); in posix_spawn()
4274 if (p->p_flag & P_DISABLE_ASLR) { in posix_spawn()
6705 OSBitAndAtomic(~((uint32_t)P_SUGID), &p->p_flag); in exec_handle_sugid()
[all …]
H A Dsys_generic.c1380 OSBitOrAtomic(P_SELECT, &p->p_flag); in selprocess()
1426 if ((sel_pass == SEL_SECONDPASS) || ((p->p_flag & P_SELECT) == 0)) { in selprocess()
1431 OSBitAndAtomic(~((uint32_t)P_SELECT), &p->p_flag); in selprocess()
1464 OSBitAndAtomic(~((uint32_t)P_SELECT), &p->p_flag); in selprocess()
1731 OSBitOrAtomic(P_SELECT, &p->p_flag); in poll_nocancel()
1832 OSBitAndAtomic(~((uint32_t)P_SELECT), &p->p_flag); in poll_nocancel()
H A Dkern_prot.c596 if (targp->p_flag & P_EXEC) { in setpgid()
660 return (p->p_flag & P_SUGID) ? 1 : 0; in proc_issetugid()
H A Dkern_proc.c1510 retval = p->p_flag & P_NOREMOTEHANG; in proc_noremotehang()
1578 retval = p->p_flag & P_FORCEQUOTA; in proc_forcequota()
2037 OSBitOrAtomic(P_DEPENDENCY_CAPABLE, &p->p_flag); in bsd_set_dependency_capable()
2046 if (p && (p->p_flag & P_LP64)) { in IS_64BIT_PROCESS()
2592 os_atomic_andnot(&p->p_flag, P_CONTROLT, relaxed); in enterpgrp()
2948 return p && ((p->p_flag & P_TRANSLATED) != 0); in proc_is_translated()
5339 if (target->p_flag & P_SUGID) { in task_for_pid_posix_check()
H A Dkern_persona.c702 OSBitOrAtomic(P_ADOPTPERSONA, &p->p_flag); in proc_set_persona_internal()
H A Dtty.c1518 os_atomic_or(&p->p_flag, P_CONTROLT, relaxed); in ttioctl_locked()
3365 return tp->t_session->s_sid == proc_sessionid(p) && (p->p_flag & P_CONTROLT); in isbackground()
3385 return sessp == tp->t_session && (p->p_flag & P_CONTROLT); in isctty_sp()
/xnu-11215/bsd/sys/
H A Dproc_internal.h324 unsigned int p_flag; /* P_* flags. (atomic bit ops) */ member
650 int p_flag; /* P_* flags. */ member
702 int p_flag; /* P_* flags. */ member
H A Dproc.h116 int p_flag; /* P_* flags. */ member
/xnu-11215/tests/
H A Dbacktracing_tests.c140 k64 = kp.kp_proc.p_flag & P_LP64; in is_kernel_64_bit()
/xnu-11215/bsd/dev/dtrace/scripts/
H A Ddarwin.d225 pr_dmodel = (P->p_flag & P_LP64) ? PR_MODEL_LP64 : PR_MODEL_ILP32;
/xnu-11215/tools/lldbmacros/
H A Duserspace.py275 if pval and (pval.p_flag & 0x4) == 0 :
/xnu-11215/bsd/vm/
H A Dvm_unix.c1611 if (error == 0 && (p->p_flag & P_NOSHLIB)) { in _shared_region_map_and_slide()
1612 OSBitAndAtomic(~((uint32_t)P_NOSHLIB), &p->p_flag); in _shared_region_map_and_slide()

12