/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | mbaddch.c | 43 chtype *wcp, *ep, *wp, wc; in _mbclrch() local 58 wc = RBYTE(*wp); in _mbclrch() 91 chtype *wp, *wcp, *ecp, wc; in _mbvalid() local 122 wc = RBYTE(*wp); in _mbvalid() 148 chtype *wcp, wc; in _mbaddch() local 166 wc = RBYTE(rc[n]); in _mbaddch() 167 ty = TYPE(wc); in _mbaddch() 173 wch[0] = (char)wc; in _mbaddch() 179 wch[win->_index] = (char)wc; in _mbaddch() 190 wc = RBYTE(wch[0]); in _mbaddch() [all …]
|
H A D | wborder.c | 83 chtype wc; in wborder() local 114 wc = RBYTE(_y[0][xend]); in wborder() 115 if ((m = xend + _curs_scrwidth[TYPE(wc)]) > win->_maxx) in wborder() 137 wc = RBYTE(_y[endy][xend]); in wborder() 138 if ((m = xend + _curs_scrwidth[TYPE(wc)]) > win->_maxx) in wborder() 162 wc = _y[endy][0]; in wborder() 163 if (!ISCBIT(wc) && _curs_scrwidth[TYPE(RBYTE(wc))] == 1) in wborder() 165 wc = _y[endy][endx]; in wborder() 166 if (!ISCBIT(wc) && _curs_scrwidth[TYPE(RBYTE(wc))] == 1) in wborder()
|
H A D | wnoutref.c | 52 chtype **wcp, **scp, *wc, *sc; in wnoutrefresh() local 131 wc = *wcp; in wnoutrefresh() 135 if (ISCBIT(wc[lo])) { in wnoutrefresh() 137 if (!ISCBIT(wc[x])) in wnoutrefresh() 141 if (!ISCBIT(wc[x])) in wnoutrefresh() 148 if (ISMBIT(wc[hi])) { in wnoutrefresh() 152 if (!ISCBIT(wc[x])) in wnoutrefresh() 155 rb = (unsigned char) RBYTE(wc[x]); in wnoutrefresh() 187 wc = *wcp + lo; in wnoutrefresh() 189 (void) memcpy((char *)sc, (char *)wc, (size_t) in wnoutrefresh()
|
H A D | winchnstr.c | 58 chtype rawc, attr, wc; in winchnstr() local 77 if ((wc = RBYTE(rawc)) == MBIT) in winchnstr() 79 *string++ = wc | attr; in winchnstr() 81 if ((wc = LBYTE(rawc) | MBIT) == MBIT) in winchnstr() 83 *string++ = wc | attr; in winchnstr()
|
H A D | winnstr.c | 57 chtype wc; in winnstr() local 74 if ((wc = RBYTE(*ptr)) == MBIT) in winnstr() 77 *str++ = (char) wc; in winnstr() 79 if ((wc = LBYTE(*ptr) | MBIT) == MBIT) in winnstr() 82 *str++ = (char) wc; in winnstr()
|
H A D | winwchnstr.c | 48 int scrw, s, wc; in winwchnstr() local 68 if ((wc = (int)RBYTE(rawc)) == MBIT) in winwchnstr() 71 *mp++ = (char) wc; in winwchnstr() 72 if ((wc = (int)(LBYTE(rawc) | MBIT)) == MBIT) in winwchnstr() 75 *mp++ = (char) wc; in winwchnstr()
|
H A D | dupwin.c | 106 chtype *ws, *we, *ns, *ne, wc; in dupwin() local 119 wc = *we; in dupwin() 120 n = _curs_scrwidth[TYPE(wc)]; in dupwin() 130 wc = win->_bkgd; in dupwin() 132 *ws = wc; in dupwin() 134 *ws = wc; in dupwin()
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | mbrtoc16.c | 44 wchar_t wc; in mbrtoc16() local 68 ret = mbrtowc_l(&wc, str, len, ps, uselocale(NULL)); in mbrtoc16() 78 if (wc >= UNICODE_SUP_START) { in mbrtoc16() 79 wc -= UNICODE_SUP_START; in mbrtoc16() 80 c16s->c16_surrogate = UNICODE_SUR_LOWER | UNICODE_SUR_LMASK(wc); in mbrtoc16() 81 out = UNICODE_SUR_UPPER | UNICODE_SUR_UMASK(wc); in mbrtoc16() 83 out = (char16_t)wc; in mbrtoc16()
|
H A D | utf8.c | 207 wchar_t wc; in _UTF8_mbsnrtowcs() local 307 if ((wc & ~0x7f) == 0) { in _UTF8_wcrtomb() 309 *s = (char)wc; in _UTF8_wcrtomb() 311 } else if ((wc & ~0x7ff) == 0) { in _UTF8_wcrtomb() 314 } else if ((wc & ~0xffff) == 0) { in _UTF8_wcrtomb() 317 } else if ((wc & ~0x1fffff) == 0) { in _UTF8_wcrtomb() 322 } else if ((wc & ~0x3ffffff) == 0) { in _UTF8_wcrtomb() 325 } else if ((wc & ~0x7fffffff) == 0) { in _UTF8_wcrtomb() 341 s[i] = (wc & 0x3f) | 0x80; in _UTF8_wcrtomb() 342 wc >>= 6; in _UTF8_wcrtomb() [all …]
|
H A D | wcrtomb.c | 38 wcrtomb_l(char *_RESTRICT_KYWD s, wchar_t wc, mbstate_t *_RESTRICT_KYWD ps, in wcrtomb_l() argument 45 return (loc->ctype->lc_wcrtomb(s, wc, ps)); in wcrtomb_l() 49 wcrtomb(char *_RESTRICT_KYWD s, wchar_t wc, mbstate_t *_RESTRICT_KYWD ps) in wcrtomb() argument 51 return (wcrtomb_l(s, wc, ps, uselocale(NULL))); in wcrtomb()
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | wunctrl.c | 87 wint_t wc; in wunctrl() local 94 wc = cc->_wc[0]; in wunctrl() 95 if (iswcntrl(wc)) { in wunctrl() 96 if (wc == 127) in wunctrl() 98 if (0 <= wc && wc <= 32) in wunctrl() 99 return ((wchar_t *)carat[wc+1]); in wunctrl()
|
H A D | wgetn_ws.c | 112 wchar_t wc; in __m_wgetn_wstr() local 146 (void) __m_tty_wc(VEOL, &wc); in __m_wgetn_wstr() 147 key_table[EOL_KEY].code = (wint_t) wc; in __m_wgetn_wstr() 148 (void) __m_tty_wc(VEOF, &wc); in __m_wgetn_wstr() 149 key_table[EOF_KEY].code = (wint_t) wc; in __m_wgetn_wstr() 151 (void) __m_tty_wc(VKILL, &wc); in __m_wgetn_wstr() 152 key_table[KILL_KEY].code = (wint_t) wc; in __m_wgetn_wstr() 153 (void) __m_tty_wc(VERASE, &wc); in __m_wgetn_wstr() 200 wint_len(wint_t wc) in wint_len() argument 205 if (wc == WEOF) in wint_len() [all …]
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | wunctrl.c | 86 wint_t wc; local 96 wc = cc->_wc[0]; 97 if (iswcntrl(wc)) { 98 if (wc == 127) 100 if (0 <= wc && wc <= 32) 101 return __m_return_pointer("wunctrl", carat[wc+1]);
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | args.c | 100 wchar_t wc; in options() local 126 if ((len = mbtowc(&wc, (char *)cp, MB_LEN_MAX)) <= 0) { in options() 128 wc = (unsigned char)*cp; in options() 134 while (*flagc && wc != *flagc) in options() 136 if (wc == *flagc) in options() 138 if (eq(argv[0], "set") && any(wc, "sicrp")) in options() 147 else if (wc == 'c' && argc > 2 && comdiv == 0) in options() 166 if ((len = mbtowc(&wc, (char *)cp, MB_LEN_MAX)) <= 0) { in options() 172 while (*flagc && wc != *flagc) in options() 177 if (!any(wc, "sicrp") && wc == *flagc) { in options() [all …]
|
H A D | expand.c | 68 wchar_t wc; in expand() local 83 if ((len = mbtowc(&wc, (char *)cs, MB_LEN_MAX)) <= 0) { in expand() 85 wc = (unsigned char)*cs; in expand() 89 switch (wc) { in expand() 213 wchar_t wc; in addg() local 236 if ((len = mbtowc(&wc, (char *)s1, MB_LEN_MAX)) <= 0) { in addg() 238 wc = (unsigned char)*s1; in addg() 243 if (wc == 0) { in addg() 248 if (wc == '\\') { in addg()
|
H A D | service.c | 323 wchar_t wc; in trim() local 329 if ((len = mbtowc(&wc, (char *)current, in trim() 336 if (wc != '\\') { in trim() 373 wchar_t wc; local 379 if ((len = mbtowc(&wc, (char *)current, 386 if (wc != '\\') { 531 wchar_t wc; local 532 if ((length = mbtowc(&wc, (char *)s, 534 wc = (unsigned char)*s; 544 if ((length = mbtowc(&wc, (char *)s, [all …]
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/wide/ |
H A D | wio_put.c | 54 m_wio_put(wc, wio) in m_wio_put() argument 55 wint_t wc; in m_wio_put() 67 if (wc == WEOF) 68 wc = '\0'; 70 if ((mb_len = wcrtomb((char *) wio->_mb, wc, &wio->_state)) < 0) 79 if (wc == '\0')
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | ib_cm.c | 313 ibt_wc_t wc; in rdsv3_ib_snd_tasklet_fn() local 326 (unsigned long long)wc.wc_id, wc.wc_type, wc.wc_status, in rdsv3_ib_snd_tasklet_fn() 327 wc.wc_bytes_xfer, ntohl(wc.wc_immed_data)); in rdsv3_ib_snd_tasklet_fn() 338 (unsigned long long)wc.wc_id, wc.wc_type, wc.wc_status, in rdsv3_ib_snd_tasklet_fn() 339 wc.wc_bytes_xfer, ntohl(wc.wc_immed_data)); in rdsv3_ib_snd_tasklet_fn() 392 (unsigned long long)wc[i].wc_id, wc[i].wc_type, in rdsv3_ib_tasklet_fn() 393 wc[i].wc_status, wc[i].wc_bytes_xfer, in rdsv3_ib_tasklet_fn() 394 ntohl(wc[i].wc_immed_data)); in rdsv3_ib_tasklet_fn() 412 (unsigned long long)wc[i].wc_id, wc[i].wc_type, in rdsv3_ib_tasklet_fn() 413 wc[i].wc_status, wc[i].wc_bytes_xfer, in rdsv3_ib_tasklet_fn() [all …]
|
/illumos-gate/usr/src/test/libc-tests/tests/wctype/ |
H A D | wctype_test.c | 46 for (wint_t *wc = x ## _should; wc < x ## _should + nchars; wc++) {\ 47 if (!iswctype(*wc, class))\ 49 "returned 0", *wc, #y);\ 50 if (!isw ## y(*wc))\ 51 test_failed(t, "isw%s(L'%lc') returned 0", #y, *wc);\
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/wide/ |
H A D | wio_put.c | 57 m_wio_put(wint_t wc, t_wide_io *wio) in m_wio_put() argument 68 if (wc == WEOF) in m_wio_put() 69 wc = L'\0'; in m_wio_put() 71 if ((mb_len = wctomb((char *) wio->_mb, wc)) < 0) in m_wio_put() 81 if (wc == '\0') in m_wio_put()
|
/illumos-gate/usr/src/uts/common/io/ib/clients/iser/ |
H A D | iser_cq.c | 87 ibt_wc_t wc[ISER_IB_SCQ_POLL_MAX]; in iser_ib_poll_send_completions() local 120 ibt_wc_t *, &wc[i], ibt_wc_status_t, wc[i].wc_status); in iser_ib_poll_send_completions() 123 wrid = wc[i].wc_id; in iser_ib_poll_send_completions() 146 if (wc[i].wc_status != IBT_WC_SUCCESS) { in iser_ib_poll_send_completions() 167 bcopy(&wc[i], in iser_ib_poll_send_completions() 270 bcopy(&wc[i], in iser_ib_poll_send_completions() 350 ibt_wc_t wc; in iser_ib_poll_recv_completions() local 357 bzero(&wc, sizeof (ibt_wc_t)); in iser_ib_poll_recv_completions() 379 msg = (iser_msg_t *)(uintptr_t)wc.wc_id; in iser_ib_poll_recv_completions() 414 ibt_wc_t *, &wc, ibt_wc_status_t, wc.wc_status); in iser_ib_poll_recv_completions() [all …]
|
/illumos-gate/usr/src/lib/libc/port/i18n/ |
H A D | wdresolve.c | 134 wdchkind(wchar_t wc) in wdchkind() argument 141 i = (*wdchknd)(wc); in wdchkind() 146 wdchkind_C(wchar_t wc) in wdchkind_C() argument 148 switch (wcsetno(wc)) { in wdchkind_C() 156 return (isascii(wc) && in wdchkind_C() 157 (isalpha(wc) || isdigit(wc) || wc == ' ')); in wdchkind_C()
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/mse/ |
H A D | restart.c | 45 mbrtowc(wchar_t *wc, const char *mb, size_t n, mbstate_t *ps) in mbrtowc() argument 47 return mbtowc(wc, mb, n); in mbrtowc() 51 wcrtomb(char *s, wchar_t wc, mbstate_t *ps) in wcrtomb() argument 53 return wctomb(s, wc); in wcrtomb()
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor_cq.c | 50 tavor_hw_cqe_t *cqe, ibt_wc_t *wc); 52 tavor_hw_cqe_t *cqe, ibt_wc_t *wc); 1200 tavor_hw_cqe_t *cqe, ibt_wc_t *wc) in tavor_cq_cqe_consume() argument 1308 wc->wc_type = type; in tavor_cq_cqe_consume() 1317 wc->wc_flags = flags; in tavor_cq_cqe_consume() 1320 wc->wc_status = IBT_WC_SUCCESS; in tavor_cq_cqe_consume() 1333 wc->wc_res_hash = 0; in tavor_cq_cqe_consume() 1335 wc->wc_ethertype = (wc->wc_immed_data & 0xFFFF); in tavor_cq_cqe_consume() 1336 wc->wc_pkey_ix = (wc->wc_immed_data >> 16); in tavor_cq_cqe_consume() 1348 (wc->wc_type == IBT_WRC_CSWAP) || (wc->wc_type == IBT_WRC_FADD)) { in tavor_cq_cqe_consume() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb_smb.c | 224 if (wc != 17) { in smb_smb_negotiate() 465 uint8_t wc; in smb_smb_ssnsetup() local 535 wc = 0; in smb_smb_ssnsetup() 536 if (wc != 4) { in smb_smb_ssnsetup() 682 uint8_t wc; in smb_smb_treeconnect() local 782 if (wc != 3 && wc != 7) { in smb_smb_treeconnect() 897 uint8_t wc; in smb1_smb_ntcreate() local 952 if (wc != 26 && wc < 34) { in smb1_smb_ntcreate() 1043 uint8_t wc; in smb_smb_open_prjob() local 1133 uint8_t wc; in smb_smb_readx() local [all …]
|