p_flags
if (ph->p_type != PT_LOAD || (ph->p_flags & PF_X) == 0)
READ_WORD(s,t.p_flags);
SWAP_WORD(t.p_flags);
Elf64_Word p_flags; /* Segment flags. */
if ((proc.p_flags & P_CONTROLT) && sess.s_ttyp != NULL) {
if ((proc.p_flags & P_CONTROLT) == 0 ||
stack_flags = phdr->p_flags;
data_prot = convert_prot(segs[i]->p_flags);
data_flags = convert_flags(segs[i]->p_flags) | MAP_FIXED;
obj->stack_flags = ph->p_flags;
if (ph->p_type != PT_LOAD || (ph->p_flags & PF_W) != 0)
prot = convert_prot(ph->p_flags) | (before ? PROT_WRITE : 0);
wg_peer->p_flags |= WG_PEER_HAS_PUBLIC;
wg_peer->p_flags |= WG_PEER_REMOVE;
wg_peer->p_flags |= WG_PEER_REPLACE_AIPS;
wg_peer->p_flags |= WG_PEER_HAS_PSK;
wg_peer->p_flags |= WG_PEER_HAS_PSK;
wg_peer->p_flags |= WG_PEER_HAS_PKA;
wg_peer->p_flags |= WG_PEER_HAS_PKA;
wg_peer->p_flags |= WG_PEER_HAS_ENDPOINT;
wg_peer->p_flags |= WG_PEER_SET_DESCRIPTION;
wg_peer->p_flags |= WG_PEER_SET_DESCRIPTION;
if (wg_peer->p_flags & WG_PEER_HAS_PSK) {
if ((wg_peer->p_flags & WG_PEER_HAS_PKA) && wg_peer->p_pka > 0)
if (wg_peer->p_flags & WG_PEER_HAS_ENDPOINT) {
p_flags(rtm->rtm_flags & interesting, "%-6.6s ");
static void p_flags(int, const char *);
if ((phdr[i].p_flags & PF_W) == 0) {
if (ep->p_flags & PF_W)
p->p_pgrp ? p->p_pgrp->pg_id : 0, p->p_flags,
p->p_flags &= ~P_SCMOUSE;
if ((p->p_flags & P_SCMOUSE) == 0)
if (curproc->p_flags & P_SCMOUSE) {
curproc->p_flags |= P_SCMOUSE;
curproc->p_flags |= P_SYSTEM; /* we're a system process */
if (p->p_flags & P_MUSTKILL) {
phdr->p_flags = __elfN(untrans_prot)(entry->protection);
phdr->p_flags = 0;
phdr->p_flags |= PF_R;
phdr->p_flags |= PF_W;
phdr->p_flags |= PF_X;
phdr->p_flags = 0;
prot = __elfN(trans_prot)(phdr[i].p_flags);
prot = __elfN(trans_prot)(phdr[i].p_flags);
p->p_flags = P_SYSTEM;
initproc->p_flags |= P_SYSTEM;
if ((p->p_flags & P_CONTROLT) && p->p_pgrp->pg_session->s_ttyp) {
if (phdr->p_flags & PF_R)
if (phdr->p_flags & PF_W)
if (phdr->p_flags & PF_X)
if (sugid_coredump == 0 && (p->p_flags & P_SUGID)) {
if ((p->p_flags & P_PROFIL) == 0) {
p->p_flags |= P_PROFIL;
if (p->p_flags & P_PROFIL) {
p->p_flags &= ~P_PROFIL;
p->p_flags |= P_SIGVTALRM;
p->p_flags |= P_SIGPROF;
if (p && (p->p_flags & P_PROFIL))
p->p_flags |= P_EXEC;
if (p->p_pptr && (p->p_flags & P_PPWAIT)) {
atomic_clear_int(&p->p_flags, P_PPWAIT);
(p->p_flags & P_TRACED) == 0) {
p->p_flags &= ~P_SUGID;
p->p_flags &= ~P_INEXEC;
if (p->p_flags & P_TRACED)
p->p_flags &= ~P_INEXEC;
p->p_flags |= P_INEXEC;
PSTALL(p, "exec1", ((p->p_flags & P_PPWAIT) ? 1 : 0));
(p->p_flags & P_WAITED) == 0 &&
(((p->p_flags & P_TRACED) && (options & WTRAPPED)) ||
(p->p_flags & P_WAITED) != 0 ||
((p->p_flags & P_TRACED) == 0 &&
p->p_flags |= P_WAITED;
if (p->p_flags & P_TRACED)
if ((options & WCONTINUED) && (p->p_flags & P_CONTINUED)) {
if ((p->p_flags & P_CONTINUED) == 0) {
p->p_flags &= ~P_CONTINUED;
if (p->p_flags & P_WEXIT) {
p->p_flags |= P_WEXIT;
p->p_flags &= ~P_WEXIT;
p->p_flags |= P_POSTEXIT; /* stop procfs stepping */
if (p->p_flags & P_PROFIL)
if (p->p_flags & P_PPWAIT) {
atomic_clear_int(&p->p_flags, P_PPWAIT);
if (q->p_flags & P_TRACED) {
q->p_flags &= ~P_TRACED;
p->p_flags &= ~P_TRACED;
if ((p->p_flags & P_MAYBETHREADED) && p->p_nthreads <= 1)
if ((p->p_flags & P_MAYBETHREADED) && p->p_nthreads <= 1)
if (p1->p_flags & P_PROFIL)
p2->p_flags |= P_JAILED;
p2->p_flags |= p1->p_flags & P_SUGID;
if (p1->p_session->s_ttyvp != NULL && (p1->p_flags & P_CONTROLT))
p2->p_flags |= P_CONTROLT;
p2->p_flags |= P_PPWAIT;
destproc->p_flags |= P_MAYBETHREADED;
while ((pflags = p2->p_flags) & P_PPWAIT) {
if (atomic_cmpset_int(&p2->p_flags, pflags, pflags))
p->p_flags |= P_JAILED;
kp->kp_flags = p->p_flags;
if (sess && (p->p_flags & P_CONTROLT) != 0 && sess->s_ttyp != NULL) {
(targetp->p_flags & P_SUGID) == 0) ||
if (p->p_flags & P_PPWAIT) {
if (p->p_upmap == NULL && (p->p_flags & P_POSTEXIT) == 0) {
if ((p->p_flags & P_CONTROLT) == 0 ||
if (p->p_flags & P_INEXEC) {
} else if (p->p_flags & P_POSTEXIT) {
p->p_flags &= ~P_CONTROLT;
p->p_flags |= P_SUGID;
if (targp->p_flags & P_EXEC) {
sysmsg->sysmsg_result = (curproc->p_flags & P_SUGID) ? 1 : 0;
if (p->p_flags & P_WEXIT)
if ((p->p_flags & P_TRACED) || (p->p_stops & S_SIG)) {
p->p_flags &= ~P_CONTINUED;
if (p->p_flags & P_TRACED) {
p->p_flags |= P_CONTINUED;
(p->p_flags & P_TRACED) == 0) {
if (p->p_flags & P_PPWAIT) {
if ((p->p_flags & P_WEXIT) == 0) {
p->p_flags &= ~P_WAITED;
int traced = (p->p_flags & P_TRACED) || (p->p_stops & S_SIG);
if (p->p_flags & P_PPWAIT)
if (p->p_flags & P_PPWAIT)
(p->p_flags & P_TRACED) &&
(p->p_flags & P_PPWAIT) == 0) {
if (p->p_flags & P_TRACED)
if ((p->p_flags & P_TRACED) == 0) {
if (p->p_flags & P_TRACED ||
if ((p->p_flags & P_WEXIT) == 0) {
(p->p_flags & P_TRACED) == 0)
if (((sugid_coredump == 0) && (p->p_flags & P_SUGID)) ||
(checkctty == 0 || (p->p_flags & P_CONTROLT)))
(p->p_flags & P_SYSTEM) ||
if (p->p_pid <= 1 || (p->p_flags & P_SYSTEM) ||
if (p->p_flags & P_WEXIT) {
if (checkctty == 0 || p->p_flags & P_CONTROLT)
if ((p->p_flags & P_TRACED) == 0 && SIGISMEMBER(p->p_sigcatch, sig) &&
p->p_flags &= ~P_WAITED;
if ((p->p_flags & P_XCPU) == 0) {
p->p_flags |= P_XCPU;
p->p_flags &= ~P_SIGVTALRM;
p->p_flags &= ~P_SIGPROF;
if (p && (p->p_flags & P_CONTROLT) && p->p_session->s_ttyvp) {
if ((p->p_flags & P_CONTROLT) && p->p_session->s_ttyvp) {
if ((p->p_flags & P_PROFIL) == 0 || ticks == 0)
if (p->p_flags & P_SYSTEM) {
if ((p->p_flags & P_INEXEC) != 0) {
if (p->p_flags & P_TRACED) {
if (curp->p_flags & P_TRACED)
(p->p_flags & P_SUGID)) {
if ((p->p_flags & P_TRACED) == 0) {
(p->p_flags & P_WAITED) == 0) {
p->p_flags |= P_TRACED;
p->p_flags |= P_TRACED;
p->p_flags &= ~(P_TRACED | P_WAITED);
if ((p->p_flags & P_SYSVSEM) == 0)
p->p_flags &= ~P_SYSVSEM;
p->p_flags &= ~P_SYSVSEM;
p->p_flags |= P_SYSVSEM;
p->p_flags |= P_CONTROLT;
(pp->p_flags & P_PPWAIT) || pp->p_pgrp->pg_jobc == 0) {
ISSET(tp->t_lflag, TOSTOP) && !(pp->p_flags & P_PPWAIT) &&
if (pick->p_flags & P_WEXIT)
while (isbackground(p, tp) && !(p->p_flags & P_PPWAIT) &&
(p->p_flags & P_PPWAIT)) {
p->p_flags &= ~P_CONTROLT;
#define cttyvp(p) (((p)->p_flags & P_CONTROLT) ? \
lp->lwp_tid, lp->lwp_proc->p_flags, lp->lwp_flags));
lp->lwp_tid, lp->lwp_proc->p_flags, lp->lwp_flags));
if ((p->p_flags & P_DIDCHROOT) == 0) {
p->p_flags |= P_DIDCHROOT;
p->p_flags |= P_MUSTKILL;
peer_o.p_flags |= WG_PEER_HAS_PUBLIC;
peer_o.p_flags |= WG_PEER_HAS_PSK;
peer_o.p_flags |= WG_PEER_HAS_PKA;
peer_o.p_flags |= WG_PEER_HAS_ENDPOINT;
if ((peer_o->p_flags & WG_PEER_HAS_PUBLIC) == 0)
if (peer_o->p_flags & WG_PEER_REMOVE) {
} else if ((peer_o->p_flags & (WG_PEER_REMOVE | WG_PEER_UPDATE)) == 0) {
if (peer_o->p_flags & WG_PEER_HAS_ENDPOINT) {
if (peer_o->p_flags & WG_PEER_HAS_PSK)
if (peer_o->p_flags & WG_PEER_HAS_PKA)
if (peer_o->p_flags & WG_PEER_SET_DESCRIPTION) {
if ((peer_o->p_flags & WG_PEER_REPLACE_AIPS) && !new_peer)
int p_flags; /* WG_PEER_* */
p2->p_flags |= P_SYSTEM;
phdr.p_flags = PF_R; /* XXX */
if (p->p_flags & P_WEXIT) {
if (__predict_false(p->p_flags & P_PROFIL)) {
if (__predict_false(p->p_flags & (P_SIGVTALRM | P_SIGPROF))) {
if (p->p_flags & P_SIGVTALRM) {
p->p_flags &= ~P_SIGVTALRM;
if (p->p_flags & P_SIGPROF) {
p->p_flags &= ~P_SIGPROF;
if (p->p_flags & P_WEXIT) {
if (p->p_flags & P_PROFIL) {
if (p->p_flags & (P_SIGVTALRM | P_SIGPROF)) {
if (p->p_flags & P_SIGVTALRM) {
p->p_flags &= ~P_SIGVTALRM;
if (p->p_flags & P_SIGPROF) {
p->p_flags &= ~P_SIGPROF;
Elf32_Word p_flags; /* Access permission flags. */
Elf64_Word p_flags; /* Access permission flags. */
int p_flags; /* P_* flags. */
if (mayblock == 0 || (p->p_flags & P_TRACED) == 0)
((p)->p_session == (tp)->t_session && ((p)->p_flags & P_CONTROLT))
((p2)->p_flags & (P_SUGID|P_INEXEC)) == 0) || \
if ((p->p_flags & P_INEXEC) != 0)
if (p->p_flags & P_TRACED)
p->p_flags |= P_TRACED;
if ((p->p_flags & P_TRACED) == 0)
p->p_flags &= ~P_TRACED;
p->p_flags &= ~P_WAITED; /* XXX ? */
if (p->p_flags & P_TRACED) {
(p->p_flags & P_TRACED) &&
((p)->p_flags & P_TRACED))
if ((p->p_flags & P_INEXEC) != 0)
return ((lp->lwp_proc->p_flags & P_SYSTEM) == 0);
if ((p->p_flags & P_INEXEC) != 0)
return ((lp->lwp_proc->p_flags & P_SYSTEM) == 0);
return ((lp->lwp_proc->p_flags & P_SYSTEM) == 0);
if ((p->p_flags & P_INEXEC) != 0) {
if ((p->p_flags & (P_WEXIT | P_INEXEC)) || vmspace_getrefs(vm) < 0)
if ((p->p_flags & P_INEXEC) != 0)
return ((lp->lwp_proc->p_flags & P_SYSTEM) == 0);
if ((p->p_flags & P_CONTROLT) && (tp = sess->s_ttyp))
(p->p_flags & P_INEXEC) == 0 &&
(p->p_flags & P_INEXEC) == 0 &&
(p->p_flags & P_INEXEC) == 0 &&
if (p->p_flags & P_POSTEXIT) {
if (p->p_flags & P_POSTEXIT) {
return ((lp->lwp_proc->p_flags & P_SYSTEM) == 0);
if ((p2->p_flags & P_INEXEC) != 0) {
if ((procp->p_flags & P_INEXEC) != 0) {
if (procp->p_flags & P_POSTEXIT) {
if (procp->p_flags & P_INEXEC) {
if (procp->p_flags & P_SUGID) {
if (procp->p_flags & P_SUGID)
if (td->td_proc && (td->td_proc->p_flags & P_LOWMEMKILL))
if (td->td_proc && (td->td_proc->p_flags & P_LOWMEMKILL))
if (p->p_flags & P_SYSTEM)
(td->td_proc->p_flags & P_LOWMEMKILL))
atomic_set_int(&info.bigproc->p_flags, P_LOWMEMKILL);
if ((p->p_flags & P_SYSTEM) || (p->p_pid == 1) ||
if (p->p_flags & (P_SYSTEM | P_WEXIT)) {
phdr->p_flags = 0;
phdr->p_flags |= PF_R;
phdr->p_flags |= PF_W;
phdr->p_flags |= PF_X;
phdr->p_flags = 0;
static void p_flags (int, const char *);
p_flags(rtm->rtm_flags & interesting, "%-6.6s ");
p_flags(rt->rt_flags, buffer);
p_flags(arg->prompt, rtm->rtm_flags, 6);