Home
last modified time | relevance | path

Searched refs:PL_CONTROLT (Results 1 – 17 of 17) sorted by relevance

/netbsd-src/sys/kern/
H A Dtty_tty.c52 #define cttyvp(p) ((p)->p_lflag & PL_CONTROLT ? (p)->p_session->s_ttyvp : NULL)
126 l->l_proc->p_lflag &= ~PL_CONTROLT; in cttyioctl()
H A Dkern_fork.c513 if (p1->p_session->s_ttyvp != NULL && p1->p_lflag & PL_CONTROLT) in fork1()
514 p2->p_lflag |= PL_CONTROLT; in fork1()
H A Dsubr_prf.c555 if (p->p_lflag & PL_CONTROLT && p->p_session->s_ttyvp) { in uprintf()
571 if (p->p_lflag & PL_CONTROLT && p->p_session->s_ttyvp) { in uprintf_locked()
602 if (p->p_lflag & PL_CONTROLT && p->p_session->s_ttyvp) { in tprintf_open()
H A Dkern_acct.c475 if ((p->p_lflag & PL_CONTROLT) && p->p_pgrp->pg_session->s_ttyp) in acct_process()
H A Dkern_proc.c1382 p->p_lflag &= ~PL_CONTROLT; in proc_enterpgrp()
2011 PL_CONTROLT, P_CONTROLT,
2177 if ((p->p_lflag & PL_CONTROLT) == 0 || in sysctl_doeproc()
2182 } else if ((p->p_lflag & PL_CONTROLT) == 0 || in sysctl_doeproc()
2738 if ((p->p_lflag & PL_CONTROLT) && in fill_eproc()
2891 if ((p->p_lflag & PL_CONTROLT) && (tp = p->p_session->s_ttyp)) { in fill_kproc2()
H A Dkern_exec.c2776 if (p1->p_session->s_ttyvp != NULL && p1->p_lflag & PL_CONTROLT) in do_posix_spawn()
2777 p2->p_lflag |= PL_CONTROLT; in do_posix_spawn()
H A Dkern_sig.c899 if (checkctty == 0 || p->p_lflag & PL_CONTROLT) in kpgsignal()
H A Dtty.c1405 p->p_lflag |= PL_CONTROLT; in ttioctl()
/netbsd-src/sys/sys/
H A Dtty.h242 ((p)->p_session == (tp)->t_session && (p)->p_lflag & PL_CONTROLT)
H A Dproc.h432 #define PL_CONTROLT 0x00000001 /* Has a controlling terminal */ macro
/netbsd-src/sys/compat/ultrix/
H A Dultrix_pathname.c175 if (!ret && !noctty && SESS_LEADER(p) && !(p->p_lflag & PL_CONTROLT)) { in ultrix_sys_open()
/netbsd-src/sys/miscfs/procfs/
H A Dprocfs_status.c147 if ((p->p_lflag & PL_CONTROLT) && (tp = sess->s_ttyp)) in procfs_status_netbsd()
/netbsd-src/lib/libkvm/
H A Dkvm_proc.c366 if ((proc.p_lflag & PL_CONTROLT) && sess.s_ttyp != NULL) { in kvm_proclist()
416 if ((proc.p_lflag & PL_CONTROLT) == 0 || in kvm_proclist()
/netbsd-src/sys/miscfs/fdesc/
H A Dfdesc_vnops.c69 #define cttyvp(p) ((p)->p_lflag & PL_CONTROLT ? (p)->p_session->s_ttyvp : NULL)
/netbsd-src/sys/compat/linux/common/
H A Dlinux_file.c205 if (!(flags & O_NOCTTY) && SESS_LEADER(p) && !(p->p_lflag & PL_CONTROLT)) { in linux_open_ctty()
/netbsd-src/sys/compat/sunos/
H A Dsunos_misc.c711 if (!ret && !noctty && SESS_LEADER(p) && !(p->p_lflag & PL_CONTROLT)) { in sunos_sys_open()
/netbsd-src/sys/compat/sunos32/
H A Dsunos32_misc.c942 if (!ret && !noctty && SESS_LEADER(p) && !(p->p_lflag & PL_CONTROLT)) { in sunos32_sys_open()