Searched refs:sessp (Results 1 - 13 of 13) sorted by relevance
/darwin-on-arm/xnu/bsd/kern/ |
H A D | tty_tty.c | 194 struct session *sessp; local 204 sessp = proc_session(p); 205 if (!SESS_LEADER(p, sessp)) { 207 if (sessp != SESSION_NULL) 208 session_rele(sessp); 212 if (sessp != SESSION_NULL) 213 session_rele(sessp); 250 struct session *sessp; local 252 sessp = proc_session(p); 254 session_lock(sessp); [all...] |
H A D | subr_prf.c | 164 struct session *sessp; local 166 sessp = proc_session(p); 168 if (p->p_flag & P_CONTROLT && sessp != SESSION_NULL && sessp->s_ttyvp) { 170 pca.tty = SESSION_TP(sessp); 179 if (sessp != SESSION_NULL) 180 session_rele(sessp); 186 struct session * sessp; local 188 sessp = proc_session(p); 190 if (p->p_flag & P_CONTROLT && sessp 200 tprintf_close(tpr_t sessp) argument [all...] |
H A D | kern_acct.c | 229 struct session * sessp; local 279 sessp = proc_session(p); 280 if ((p->p_flag & P_CONTROLT) && (sessp != SESSION_NULL) && ((tp = SESSION_TP(sessp)) != TTY_NULL)) { 287 if (sessp != SESSION_NULL) 288 session_rele(sessp);
|
H A D | kern_exit.c | 438 struct session *sessp; local 578 sessp = proc_session(p); 579 if (SESS_LEADER(p, sessp)) { 581 if (sessp->s_ttyvp != NULLVP) { 593 session_lock(sessp); 594 tp = SESSION_TP(sessp); 595 if ((tp != TTY_NULL) && (tp->t_session == sessp)) { 596 session_unlock(sessp); 600 session_lock(sessp); 601 tp = SESSION_TP(sessp); 1706 struct session *sessp; local [all...] |
H A D | tty.c | 149 static int isctty_sp(proc_t p, struct tty *tp, struct session *sessp); 346 struct session *sessp, *oldsess; local 361 sessp = proc_session(p); 367 if (SESS_LEADER(p, sessp) && /* the process is the session leader */ 368 sessp->s_ttyvp == NULL && /* but has no controlling tty */ 370 session_lock(sessp); 371 if ((sessp->s_flags & S_NOCTTY) == 0) { /* and no O_NOCTTY */ 372 oldtp = sessp->s_ttyp; 374 sessp->s_ttyp = tp; 376 session_unlock(sessp); 1057 struct session *sessp, *oldsessp; local 3126 struct session * sessp; local 3135 isctty_sp(proc_t p, struct tty *tp, struct session *sessp) argument [all...] |
H A D | kern_prot.c | 283 struct session * sessp; local 293 sessp = proc_session(pt); 294 *retval = sessp->s_sid; 295 session_rele(sessp); 1912 struct session * sessp; local 1916 sessp = proc_session(p); 1921 if(sessp != SESSION_NULL) { 1922 session_lock(sessp); 1923 bcopy( sessp->s_login, buffer, uap->namelen); 1924 session_unlock(sessp); 1954 struct session * sessp; local [all...] |
H A D | kern_proc.c | 1162 struct session *sessp; local 1205 sessp = pgrp->pg_session; 1206 if ((sessp->s_listflags & (S_LIST_TERM | S_LIST_DEAD)) != 0) 1208 if (--sessp->s_count == 0) { 1209 if ((sessp->s_listflags & (S_LIST_TERM | S_LIST_DEAD)) != 0) 1211 sessp->s_listflags |= S_LIST_TERM; 1212 ttyp = SESSION_TP(sessp); 1213 LIST_REMOVE(sessp, s_hash); 1217 if (ttyp->t_session == sessp) 1222 sessp [all...] |
H A D | kern_sysctl.c | 1498 struct session *sessp; local 1502 sessp = proc_session(p); 1507 if (sessp != SESSION_NULL && sessp->s_ttyvp) 1534 if ((p->p_flag & P_CONTROLT) && (sessp != SESSION_NULL) && 1535 (tp = SESSION_TP(sessp))) { 1537 ep->e_tpgid = sessp->s_ttypgrpid; 1541 if (sessp != SESSION_NULL) { 1542 if (SESS_LEADER(p, sessp)) 1544 session_rele(sessp); 1558 struct session *sessp; local [all...] |
H A D | kern_fork.c | 1091 struct session *sessp; local 1296 sessp = proc_session(parent_proc); 1297 if (sessp->s_ttyvp != NULL && parent_proc->p_flag & P_CONTROLT) 1299 session_rele(sessp);
|
/darwin-on-arm/xnu/bsd/miscfs/specfs/ |
H A D | spec_vnops.c | 1770 struct session *sessp; local 1785 sessp = proc_session(p); 1786 if (sessp != SESSION_NULL) { 1787 if (vp == sessp->s_ttyvp && vcount(vp) == 1) { 1790 session_lock(sessp); 1791 if (vp == sessp->s_ttyvp) { 1792 tp = SESSION_TP(sessp); 1793 sessp->s_ttyvp = NULL; 1794 sessp->s_ttyvid = 0; 1795 sessp [all...] |
/darwin-on-arm/xnu/bsd/vfs/ |
H A D | vfs_vnops.c | 1285 struct session * sessp; local 1354 sessp = proc_session(vfs_context_proc(ctx)); 1356 session_lock(sessp); 1357 ttyvp = sessp->s_ttyvp; 1358 sessp->s_ttyvp = vp; 1359 sessp->s_ttyvid = vnode_vid(vp); 1360 session_unlock(sessp); 1361 session_rele(sessp);
|
H A D | vfs_syscalls.c | 2977 struct session *sessp = SESSION_NULL; local 2996 sessp = proc_session(p); 3004 if (SESS_LEADER(p, sessp) && 3005 sessp->s_ttyvp == NULL && 3007 session_lock(sessp); 3008 sessp->s_flags |= S_NOCTTY; 3009 session_unlock(sessp); 3020 session_lock(sessp); 3021 sessp->s_flags &= ~S_NOCTTY; 3022 session_unlock(sessp); [all...] |
/darwin-on-arm/xnu/bsd/sys/ |
H A D | proc_internal.h | 614 #define SESS_LEADER(p, sessp) ((sessp)->s_leader == (p))
|
Completed in 67 milliseconds