Lines Matching refs:display
193 static bool display_is_local(const char *display) { in display_is_local() argument
194 assert(display); in display_is_local()
197 display[0] == ':' && in display_is_local()
198 display[1] >= '0' && in display_is_local()
199 display[1] <= '9'; in display_is_local()
202 static int socket_from_display(const char *display) { in socket_from_display() argument
211 assert(display); in socket_from_display()
213 if (!display_is_local(display)) in socket_from_display()
216 k = strspn(display+1, "0123456789"); in socket_from_display()
224 memcpy(c, display+1, k); in socket_from_display()
254 static int get_seat_from_display(const char *display, const char **seat, uint32_t *vtnr) { in get_seat_from_display() argument
261 assert(display); in get_seat_from_display()
270 fd = socket_from_display(display); in get_seat_from_display()
681 *tty = NULL, *display = NULL, in pam_sm_open_session() local
739 r = pam_get_item(handle, PAM_XDISPLAY, (const void**) &display); in pam_sm_open_session()
771 if (isempty(display)) in pam_sm_open_session()
772 display = tty; in pam_sm_open_session()
803 if (!isempty(display) && !vtnr) { in pam_sm_open_session()
805 (void) get_seat_from_display(display, &seat, &vtnr); in pam_sm_open_session()
807 (void) get_seat_from_display(display, NULL, &vtnr); in pam_sm_open_session()
817 type = !isempty(display) ? "x11" : in pam_sm_open_session()
863 strempty(seat), vtnr, strempty(tty), strempty(display), in pam_sm_open_session()
884 display, in pam_sm_open_session()