Lines Matching refs:sessions
151 static Session *sessions = NULL; variable
1901 memset(&sessions[id], 0, sizeof(*sessions)); in session_unused()
1902 sessions[id].self = id; in session_unused()
1903 sessions[id].used = 0; in session_unused()
1904 sessions[id].chanid = -1; in session_unused()
1905 sessions[id].ptyfd = -1; in session_unused()
1906 sessions[id].ttyfd = -1; in session_unused()
1907 sessions[id].ptymaster = -1; in session_unused()
1908 sessions[id].x11_chanids = NULL; in session_unused()
1909 sessions[id].next_unused = sessions_first_unused; in session_unused()
1923 tmp = xreallocarray(sessions, sessions_nalloc + 1, in session_new()
1924 sizeof(*sessions)); in session_new()
1930 sessions = tmp; in session_new()
1941 s = &sessions[sessions_first_unused]; in session_new()
1959 Session *s = &sessions[i]; in session_dump()
1995 Session *s = &sessions[i]; in session_by_tty()
2011 Session *s = &sessions[i]; in session_by_channel()
2029 Session *s = &sessions[i]; in session_by_x11_channel()
2052 Session *s = &sessions[i]; in session_by_pid()
2595 Session *s = &sessions[i]; in session_destroy_all()
2614 Session *s = &sessions[i]; in session_tty_list()