Searched refs:ws (Results 1 – 5 of 5) sorted by relevance
8 void get_term_dimensions(struct winsize *ws) in get_term_dimensions() argument13 ws->ws_row = atoi(s); in get_term_dimensions()16 ws->ws_col = atoi(s); in get_term_dimensions()17 if (ws->ws_row && ws->ws_col) in get_term_dimensions()22 if (ioctl(1, TIOCGWINSZ, ws) == 0 && in get_term_dimensions()23 ws->ws_row && ws->ws_col) in get_term_dimensions()26 ws->ws_row = 25; in get_term_dimensions()27 ws->ws_col = 80; in get_term_dimensions()
8 void get_term_dimensions(struct winsize *ws);
1969 struct winsize ws; in get_term_width() local1971 get_term_dimensions(&ws); in get_term_width()1972 return ws.ws_col > MAX_WIDTH ? MAX_WIDTH : ws.ws_col; in get_term_width()
82 static void get_term_dimensions(struct winsize *ws) in get_term_dimensions() argument87 ws->ws_row = atoi(s); in get_term_dimensions()90 ws->ws_col = atoi(s); in get_term_dimensions()91 if (ws->ws_row && ws->ws_col) in get_term_dimensions()96 if (ioctl(1, TIOCGWINSZ, ws) == 0 && in get_term_dimensions()97 ws->ws_row && ws->ws_col) in get_term_dimensions()100 ws->ws_row = 25; in get_term_dimensions()101 ws->ws_col = 80; in get_term_dimensions()
173 static const char ws[] = " \t\r\n"; in make_args() local179 cp += strspn(cp, ws); in make_args()205 cp += strcspn(cp, ws); in make_args()