Searched refs:wio (Results 1 - 10 of 10) sorted by relevance

/osnet-11/usr/src/lib/libxcurses/src/libc/wide/
H A Dwio_get.c58 eat_shift_bytes(wio)
59 t_wide_io *wio;
65 for (prev = EOF; (ch = (*wio->get)(wio->object)) != EOF; prev = ch) {
74 start_state = wio->_state;
77 if (mbrtowc((wchar_t *) 0, &mb, 1, &wio->_state) == -1
78 || mbsinit(&start_state) == mbsinit(&wio->_state)) {
80 if (wio->get != (int (*)(int, void *)) 0)
81 (void) (*wio->unget)(ch, wio
[all...]
H A Dwio_put.c56 m_wio_put(wc, wio)
58 t_wide_io *wio;
63 if (wio == (t_wide_io *) 0 || wio->put == (int (*)(int, void *)) 0) {
72 if ((mb_len = wcrtomb((char *) wio->_mb, wc, &wio->_state)) < 0)
85 for (ptr = wio->_mb, count = 0; count < mb_len; ++ptr, ++count)
86 if ((*wio->put)(*ptr, wio->object) == EOF)
90 wio
[all...]
/osnet-11/usr/src/lib/libxcurses2/src/libc/wide/
H A Dwio_get.c65 m_wio_get(t_wide_io *wio) argument
70 if (wio == NULL || wio->get == (int (*)(void *)) NULL) {
76 if (wio->_next < wio->_size) {
77 return ((wint_t)wio->_mb[wio->_next++]);
81 wio->_size = 0;
82 for (wio->_next = 0; wio
[all...]
H A Dwio_put.c59 m_wio_put(wint_t wc, t_wide_io *wio) argument
64 if (wio == NULL || wio->put == (int (*)(int, void *)) NULL) {
73 if ((mb_len = wctomb((char *) wio->_mb, wc)) < 0)
87 for (ptr = wio->_mb, count = 0; count < mb_len; ++ptr, ++count)
88 if ((*wio->put)(*ptr, wio->object) == EOF)
92 wio->_size = mb_len;
93 wio->_next = count;
/osnet-11/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dwget_wch.c82 t_wide_io *wio; local
102 wio = (t_wide_io *) __m_screen->_in;
103 wio->object = w;
122 *wcp = m_wio_get(wio);
132 while (wio->_next < wio->_size)
133 PUSH(wio->_mb[--wio->_size]);
H A Dnewterm.c206 t_wide_io *wio; local
277 if ((wio = (t_wide_io *) calloc(1, sizeof *wio)) == (t_wide_io *) 0)
281 wio->get = (int (*)(void *)) wgetch;
282 wio->unget = __xc_ungetc;
283 wio->reset = __xc_clearerr;
284 wio->iserror = __xc_ferror;
285 wio->iseof = __xc_feof;
286 sp->_in = wio;
H A Dwgetn_ws.c265 t_wide_io *wio; local
271 wio = (t_wide_io *) __m_screen->_in;
282 if (fld_mb && fld_maxlength < fld_bytes + wio->_size) {
295 fld_bytes += wio->_size;
/osnet-11/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dwget_wch.c82 t_wide_io *wio; local
101 wio = (t_wide_io *) __m_screen->_in;
102 wio->object = w;
132 *wcp = m_wio_get(wio);
143 while (wio->_next < wio->_size)
144 iqPush(wio->_mb[--wio->_size]);
H A Dnewterm.c206 t_wide_io *wio; local
273 if ((wio = (t_wide_io *) calloc(1, sizeof (*wio))) == NULL)
277 wio->get = (int (*)(void *)) wgetch;
278 wio->unget = __xc_ungetc;
279 wio->reset = __xc_clearerr;
280 wio->iserror = __xc_ferror;
281 wio->iseof = __xc_feof;
282 sp->_in = wio;
H A Dwgetn_ws.c289 t_wide_io *wio; local
295 wio = (t_wide_io *) __m_screen->_in;
307 if (fld_mb && fld_maxlength < fld_bytes + wio->_size) {
320 fld_bytes += wio->_size;

Completed in 35 milliseconds