Home
last modified time | relevance | path

Searched refs:wio (Results 1 – 11 of 11) sorted by relevance

/illumos-gate/usr/src/lib/libxcurses/src/libc/wide/
H A Dwio_get.c57 t_wide_io *wio; in eat_shift_bytes()
79 (void) (*wio->unget)(ch, wio->object);
87 return !(*wio->iserror)(wio->object);
119 if (wio->_next < wio->_size)
120 return (wint_t) wio->_mb[wio->_next++];
125 for (wio->_next = 0; wio->_next < MB_CUR_MAX; ) {
129 wio->_mb[wio->_next] = ch;
133 &wc, (char *) (wio->_mb + wio->_next), 1, &wio->_state
154 wio->_size = wio->_next;
167 wio->_size = wio->_next;
[all …]
H A Dwio_put.c54 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 Dwio_get.c68 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()
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()
93 wio->_size = wio->_next; in m_wio_get()
106 wio->_size = wio->_next; in m_wio_get()
[all …]
H A Dwio_put.c57 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/libxcurses2/src/libc/xcurses/
H A Dwget_wch.c80 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 Dnewterm.c204 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 Dwgetn_ws.c287 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/lib/libxcurses/src/libc/xcurses/
H A Dwget_wch.c80 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 Dnewterm.c204 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 Dwgetn_ws.c263 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/cmd/mdb/common/mdb/
H A Dmdb_termio.c1542 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()