Home
last modified time | relevance | path

Searched refs:ws (Results 1 – 5 of 5) sorted by relevance

/tools/perf/util/
Dterm.c8 void get_term_dimensions(struct winsize *ws) in get_term_dimensions() argument
13 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()
Dterm.h8 void get_term_dimensions(struct winsize *ws);
Dparse-events.c1969 struct winsize ws; in get_term_width() local
1971 get_term_dimensions(&ws); in get_term_width()
1972 return ws.ws_col > MAX_WIDTH ? MAX_WIDTH : ws.ws_col; in get_term_width()
/tools/lib/subcmd/
Dhelp.c82 static void get_term_dimensions(struct winsize *ws) in get_term_dimensions() argument
87 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()
/tools/bpf/bpftool/
Dmain.c173 static const char ws[] = " \t\r\n"; in make_args() local
179 cp += strspn(cp, ws); in make_args()
205 cp += strcspn(cp, ws); in make_args()