Home
last modified time | relevance | path

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

12345

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Doutput.c69 } ws; variable
360 if (ws.a != NULL && ws.a->type == RIP_AUTH_MD5) in supply_write()
362 if (output(wb->type, &ws.to, ws.ifp, wb->buf, in supply_write()
394 (ws.state & WS_ST_TO_ON_NET) ? ws.ifp : NULL); in supply_out()
608 on_net(dst, ws.to_net, ws.to_mask)) in walk_supply()
626 !on_net(dst, ws.to_std_net, ws.to_std_mask)) in walk_supply()
647 if (ws.ifp != NULL && !(ws.state & WS_ST_QUERY) && in walk_supply()
754 ws.to_std_mask = std_mask(ws.to.sin_addr.s_addr); in supply()
755 ws.to_std_net = ntohl(ws.to.sin_addr.s_addr) & ws.to_std_mask; in supply()
760 if (on_net(ws.to.sin_addr.s_addr, ws.to_net, ws.to_mask) || in supply()
[all …]
/illumos-gate/usr/src/cmd/sgs/demo_rdb/common/
H A Dlex.l35 ws [ \t]+
50 ^{ws}*break {return (BREAK);}
51 ^{ws}*cont {return (CONT);}
53 ^{ws}*event {return (EVENT);}
55 ^{ws}*dis {return (DIS);}
57 ^{ws}*help {return (HELP);}
59 ^{ws}*maps {return (MAPS);}
62 ^{ws}*print {return (PRINT);}
63 ^{ws}*step {return (STEP);}
64 ^{ws}*value {return (VALUE);}
[all …]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Ddupwin.c109 ws = *wincp; in dupwin()
110 we = ws + ncolsav - 1; in dupwin()
112 for (; ws <= we; ++ws) in dupwin()
113 if (!ISCBIT(*ws)) in dupwin()
115 for (; we >= ws; --we) in dupwin()
118 if (we >= ws) { in dupwin()
123 ns = *newcp + (ws - *wincp); in dupwin()
131 for (ws = *newcp; ws < ns; ++ws) in dupwin()
132 *ws = wc; in dupwin()
133 for (ws = *newcp+ncolsav-1; ws >= ne; --ws) in dupwin()
[all …]
H A Dcurses.ed940 #define addnwstr(ws, n) waddnwstr(stdscr, ws, n)
944 #define addwstr(ws) waddwstr(stdscr, ws)
946 #define getnwstr(ws, n) wgetnwstr(stdscr, ws, n)
948 #define getwstr(ws) wgetwstr(stdscr, ws)
949 #define innwstr(ws, n) winnwstr(stdscr, ws, n)
950 #define insnwstr(ws, n) winsnwstr(stdscr, ws, n)
952 #define inswstr(ws) winswstr(stdscr, ws)
956 #define inwstr(ws) winwstr(stdscr, ws)
1106 #define mvinwstr(y, x, ws) \
1180 #define waddwstr(win, ws) waddnwstr(win, ws, -1)
[all …]
H A D_addwstr.c38 addwstr(wchar_t *ws) in addwstr() argument
40 return (waddwstr(stdscr, ws)); in addwstr()
H A D_inswstr.c38 inswstr(wchar_t *ws) in inswstr() argument
40 return (winswstr(stdscr, ws)); in inswstr()
H A D_inwstr.c38 inwstr(wchar_t *ws) in inwstr() argument
40 return (winwstr(stdscr, ws)); in inwstr()
H A D_getwstr.c38 getwstr(wchar_t *ws) in getwstr() argument
40 return (wgetwstr(stdscr, ws)); in getwstr()
H A D_addnwstr.c38 addnwstr(wchar_t *ws, int n) in addnwstr() argument
40 return (waddnwstr(stdscr, ws, n)); in addnwstr()
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dfgetws.c65 wsp = ws; in _fgetws_impl()
74 if (wsp == ws) { in _fgetws_impl()
88 return (ws); in _fgetws_impl()
92 fgetws(wchar_t *_RESTRICT_KYWD ws, int n, FILE *_RESTRICT_KYWD fp) in fgetws() argument
94 return (_fgetws_impl(ws, n, fp, 0)); in fgetws()
98 __fgetws_xpg5(wchar_t *ws, int n, FILE *fp) in __fgetws_xpg5() argument
100 return (_fgetws_impl(ws, n, fp, 1)); in __fgetws_xpg5()
104 getws(wchar_t *ws) in getws() argument
112 wsp = ws; in getws()
121 if (wsp == ws) { in getws()
[all …]
H A Dfputws.c39 _fputws_impl(const wchar_t *_RESTRICT_KYWD ws, FILE *_RESTRICT_KYWD fp, in _fputws_impl() argument
54 nchars = wcslen(ws); in _fputws_impl()
66 if ((n = wctomb(ptr, *ws)) < 0) { in _fputws_impl()
72 ws++; in _fputws_impl()
89 fputws(const wchar_t *_RESTRICT_KYWD ws, FILE *_RESTRICT_KYWD fp) in fputws() argument
91 return (_fputws_impl(ws, fp, 0)); in fputws()
95 __fputws_xpg5(const wchar_t *ws, FILE *fp) in __fputws_xpg5() argument
97 return (_fputws_impl(ws, fp, 1)); in __fputws_xpg5()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/
H A Dastwinsize.c76 struct winsize ws; in astwinsize() local
78 if (!ttctl(fd, TIOCGWINSZ, &ws) && ws.ws_col > 0 && ws.ws_row > 0) in astwinsize()
80 if (rows) *rows = ws.ws_row; in astwinsize()
81 if (cols) *cols = ws.ws_col; in astwinsize()
98 struct winsize ws; in astwinsize()
100 if (!ttctl(fd, JWINSIZE, &ws) && ws.bytesx > 0 && ws.bytesy > 0) in astwinsize()
102 if (rows) *rows = ws.bytesy; in astwinsize()
103 if (cols) *cols = ws.bytesx; in astwinsize()
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dgetlist.c58 char * ws, in getlist() argument
62 getlist (str, ws, hardsep) in getlist()
64 *ws; in getlist()
90 len = strlen(ws) + strlen(hardsep) + 1;
99 strcat (sep, ws);
113 copy += strspn(copy, ws);
123 while (--p != copy && strchr(ws, *p))
136 p += strspn(p, ws);
142 p += strspn(p, ws);
173 p += strspn(p, ws);
[all …]
/illumos-gate/usr/src/common/ficl/
H A Dmain.c94 struct winsize ws; in main() local
97 if (ioctl(1, TIOCGWINSZ, &ws) != -1) { in main()
98 if (ws.ws_col) in main()
99 cols = ws.ws_col; in main()
100 if (ws.ws_row) in main()
101 rows = ws.ws_row; in main()
/illumos-gate/usr/src/cmd/mdb/common/modules/stmf/
H A Dstmf.c141 mdb_walk_state_t ws = {NULL, }; in stmf_ilports() local
163 stmf_ilport_walk_f(&ws); in stmf_ilports()
501 mdb_walk_state_t ws = {NULL, }; in find_lport_by_wwn() local
664 fct_irp_walk_i(&ws); in fct_irps()
686 fct_irp_walk_f(&ws); in fct_irps()
707 fct_irp_walk_f(&ws); in next_rport()
710 if (ws.walk_addr == 0) { in next_rport()
711 fct_irp_walk_f(&ws); in next_rport()
723 fct_irp_walk_f(&ws); in next_rport()
819 mdb_walk_state_t ws = {NULL, }; in stmf_find_fct_irp() local
[all …]
/illumos-gate/usr/src/lib/libxcurses/h/
H A Dm_invari.h76 #define M_WUNVARIANTSTR(ws) m_wunvariantstr(ws) argument
87 #define M_WUNVARIANTSTR(ws) (ws) argument
/illumos-gate/usr/src/ucblib/libtermcap/
H A Dtermcap.c392 struct winsize ws; in tngetsize() local
395 if (ioctl(1, TIOCGWINSZ, (char *)&ws) < 0) in tngetsize()
397 if (ws.ws_row == 0 || ws.ws_col == 0 || in tngetsize()
398 ws.ws_row > 999 || ws.ws_col > 999) in tngetsize()
410 bp = appendsmalldec(bp, ws.ws_row); in tngetsize()
415 bp = appendsmalldec(bp, ws.ws_col); in tngetsize()
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Davl.c295 mdb_walk_state_t ws; in avl_walk_mdb() local
298 ws.walk_addr = addr; in avl_walk_mdb()
299 ws.walk_callback = callback; in avl_walk_mdb()
300 ws.walk_cbdata = cbdata; in avl_walk_mdb()
302 avl_walk_init(&ws); in avl_walk_mdb()
303 while ((ret = avl_walk_step(&ws)) == WALK_NEXT) in avl_walk_mdb()
305 avl_walk_fini(&ws); in avl_walk_mdb()
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dwmemchr.c33 wmemchr(const wchar_t *ws, wchar_t wc, size_t n) in wmemchr() argument
37 if (*ws++ == wc) in wmemchr()
38 return ((wchar_t *)--ws); in wmemchr()
H A Dwmemset.c33 wmemset(wchar_t *ws, wchar_t wc, size_t n) in wmemset() argument
35 wchar_t *ows1 = ws; in wmemset()
39 *ws++ = wc; in wmemset()
/illumos-gate/usr/src/cmd/mandoc/
H A Dmdoc.c169 char *c, *ws, *end; in mdoc_ptext() local
196 ws = NULL; in mdoc_ptext()
200 if (NULL == ws) in mdoc_ptext()
201 ws = c; in mdoc_ptext()
209 if (NULL == ws) in mdoc_ptext()
210 ws = c; in mdoc_ptext()
224 ws = NULL; in mdoc_ptext()
231 if (ws) in mdoc_ptext()
232 mandoc_msg(MANDOCERR_SPACE_EOL, line, (int)(ws - buf), NULL); in mdoc_ptext()
/illumos-gate/usr/src/common/ficl/ficlplatform/
H A Dpager.c59 struct winsize ws; in pager_open() local
69 if (ioctl(1, TIOCGWINSZ, &ws) == -1 || ws.ws_row == 0) { in pager_open()
74 nlines = ws.ws_row; in pager_open()
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dkey_name.c54 wchar_t *ws; in key_name() local
60 ws = (wchar_t *) wunctrl(&cc); in key_name()
62 if ((len = wcstombs(mbs, ws, MB_LEN_MAX)) == (size_t) -1) in key_name()
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dkey_name.c53 wchar_t *ws; in key_name() local
62 ws = (wchar_t *) wunctrl(&cc); in key_name()
64 if ((len = wcstombs(mbs, ws, MB_LEN_MAX)) == (size_t) -1) in key_name()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dmime.c445 Walk_t ws; in mimelist() local
447 ws.fp = fp; in mimelist()
448 ws.hit = 0; in mimelist()
449 ws.prefix = 0; in mimelist()
450 if (ws.pattern = pattern) in mimelist()
454 ws.prefix = pattern - ws.pattern; in mimelist()
457 ws.pattern = 0; in mimelist()
458 list(mp->cap, ent, &ws); in mimelist()
459 return ws.hit; in mimelist()
462 dtwalk(mp->cap, list, &ws); in mimelist()
[all …]

12345