/illumos-gate/usr/src/lib/libxcurses/src/libc/wide/ |
H A D | wio_get.c | 56 eat_shift_bytes(wio) in eat_shift_bytes() argument 57 t_wide_io *wio; in eat_shift_bytes() 63 for (prev = EOF; (ch = (*wio->get)(wio->object)) != EOF; prev = ch) { 72 start_state = wio->_state; 75 if (mbrtowc((wchar_t *) 0, &mb, 1, &wio->_state) == -1 76 || mbsinit(&start_state) == mbsinit(&wio->_state)) { 78 if (wio->get != (int (*)(int, void *)) 0) 79 (void) (*wio->unget)(ch, wio->object); 80 wio->_state = start_state; 86 if (wio->iserror != (int (*)(void *)) 0) [all …]
|
H A D | wio_put.c | 54 m_wio_put(wc, wio) in m_wio_put() argument 56 t_wide_io *wio; 61 if (wio == (t_wide_io *) 0 || wio->put == (int (*)(int, void *)) 0) { 70 if ((mb_len = wcrtomb((char *) wio->_mb, wc, &wio->_state)) < 0) 83 for (ptr = wio->_mb, count = 0; count < mb_len; ++ptr, ++count) 84 if ((*wio->put)(*ptr, wio->object) == EOF) 88 wio->_size = mb_len; 89 wio->_next = count;
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/wide/ |
H A D | wio_get.c | 63 m_wio_get(t_wide_io *wio) in m_wio_get() argument 68 if (wio == NULL || wio->get == (int (*)(void *)) NULL) { in m_wio_get() 74 if (wio->_next < wio->_size) { in m_wio_get() 75 return ((wint_t)wio->_mb[wio->_next++]); in m_wio_get() 79 wio->_size = 0; in m_wio_get() 80 for (wio->_next = 0; wio->_next < (int)MB_CUR_MAX; ) { in m_wio_get() 81 if ((ch = (*wio->get)(wio->object)) == EOF) { in m_wio_get() 85 wio->_mb[wio->_next] = (unsigned char)ch; in m_wio_get() 87 wio->_size = mbtowc(&wc, (char *)wio->_mb, wio->_next + 1); in m_wio_get() 89 ++wio->_next; in m_wio_get() [all …]
|
H A D | wio_put.c | 57 m_wio_put(wint_t wc, t_wide_io *wio) in m_wio_put() argument 62 if (wio == NULL || wio->put == (int (*)(int, void *)) NULL) { in m_wio_put() 71 if ((mb_len = wctomb((char *) wio->_mb, wc)) < 0) in m_wio_put() 85 for (ptr = wio->_mb, count = 0; count < mb_len; ++ptr, ++count) in m_wio_put() 86 if ((*wio->put)(*ptr, wio->object) == EOF) in m_wio_put() 90 wio->_size = mb_len; in m_wio_put() 91 wio->_next = count; in m_wio_put()
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | wget_wch.c | 80 t_wide_io *wio; local 100 wio = (t_wide_io *) __m_screen->_in; 101 wio->object = w; 120 *wcp = m_wio_get(wio); 130 while (wio->_next < wio->_size) 131 PUSH(wio->_mb[--wio->_size]);
|
H A D | newterm.c | 204 t_wide_io *wio; local 275 if ((wio = (t_wide_io *) calloc(1, sizeof *wio)) == (t_wide_io *) 0) 279 wio->get = (int (*)(void *)) wgetch; 280 wio->unget = __xc_ungetc; 281 wio->reset = __xc_clearerr; 282 wio->iserror = __xc_ferror; 283 wio->iseof = __xc_feof; 284 sp->_in = wio;
|
H A D | wgetn_ws.c | 263 t_wide_io *wio; in fld_insert() local 269 wio = (t_wide_io *) __m_screen->_in; in fld_insert() 280 if (fld_mb && fld_maxlength < fld_bytes + wio->_size) { in fld_insert() 293 fld_bytes += wio->_size; in fld_insert()
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | wget_wch.c | 80 t_wide_io *wio; in wget_wch() local 99 wio = (t_wide_io *) __m_screen->_in; in wget_wch() 100 wio->object = w; in wget_wch() 130 *wcp = m_wio_get(wio); in wget_wch() 141 while (wio->_next < wio->_size) in wget_wch() 142 iqPush(wio->_mb[--wio->_size]); in wget_wch()
|
H A D | newterm.c | 204 t_wide_io *wio; in newterm() local 271 if ((wio = (t_wide_io *) calloc(1, sizeof (*wio))) == NULL) in newterm() 275 wio->get = (int (*)(void *)) wgetch; in newterm() 276 wio->unget = __xc_ungetc; in newterm() 277 wio->reset = __xc_clearerr; in newterm() 278 wio->iserror = __xc_ferror; in newterm() 279 wio->iseof = __xc_feof; in newterm() 280 sp->_in = wio; in newterm()
|
H A D | wgetn_ws.c | 287 t_wide_io *wio; in fld_insert() local 293 wio = (t_wide_io *) __m_screen->_in; in fld_insert() 305 if (fld_mb && fld_maxlength < fld_bytes + wio->_size) { in fld_insert() 318 fld_bytes += wio->_size; in fld_insert()
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_termio.c | 1542 mdb_termio_create(const char *name, mdb_io_t *rio, mdb_io_t *wio) in mdb_termio_create() argument 1593 td->tio_out_io = wio; in mdb_termio_create()
|