Lines Matching refs:bufwchar

2068 static struct buff bufwchar[2];  variable
2077 bufwchar[filen].iop = iop; in initbuf()
2078 bufwchar[filen].ptr = NULL; in initbuf()
2079 bufwchar[filen].buffered = 0; in initbuf()
2080 bufwchar[filen].offset = offset; in initbuf()
2089 bufwchar[filen].ptr = NULL; in resetbuf()
2090 bufwchar[filen].buffered = bufwchar[filen].offset = 0; in resetbuf()
2091 rewind(bufwchar[filen].iop); in resetbuf()
2101 return (bufwchar[filen].offset); in ftellbuf()
2147 ch = getc(bufwchar[filen].iop); in getbufwchar()
2148 bufwchar[filen].offset++; in getbufwchar()
2168 if (bufwchar[filen].buffered == 0) { in getbufwchar()
2170 bufwchar[filen].ptr = &(bufwchar[filen].buf[MB_LEN_MAX]); in getbufwchar()
2171 num = fread((void *)bufwchar[filen].ptr, in getbufwchar()
2172 sizeof (char), NW, bufwchar[filen].iop); in getbufwchar()
2173 if (ferror(bufwchar[filen].iop)) { in getbufwchar()
2182 bufwchar[filen].buffered = num; in getbufwchar()
2185 if (bufwchar[filen].buffered < mbcurmax) { in getbufwchar()
2186 for (i = 0; i < bufwchar[filen].buffered; i++) { in getbufwchar()
2187 bufwchar[filen].buf[MB_LEN_MAX - in getbufwchar()
2188 (bufwchar[filen].buffered - i)] = in getbufwchar()
2189 *(bufwchar[filen].ptr + i); in getbufwchar()
2191 bufwchar[filen].ptr = &(bufwchar[filen].buf[MB_LEN_MAX]); in getbufwchar()
2192 num = fread((void *)bufwchar[filen].ptr, in getbufwchar()
2193 sizeof (char), NW, bufwchar[filen].iop); in getbufwchar()
2194 if (ferror(bufwchar[filen].iop)) { in getbufwchar()
2201 bufwchar[filen].ptr = &(bufwchar[filen].buf[MB_LEN_MAX - in getbufwchar()
2202 bufwchar[filen].buffered]); in getbufwchar()
2203 bufwchar[filen].buffered += num; in getbufwchar()
2204 if (bufwchar[filen].buffered < mbcurmax) { in getbufwchar()
2205 mxlen = bufwchar[filen].buffered; in getbufwchar()
2209 clen = mbtowc(&wc, bufwchar[filen].ptr, mxlen); in getbufwchar()
2211 (bufwchar[filen].buffered)--; in getbufwchar()
2213 (bufwchar[filen].offset)++; in getbufwchar()
2214 wc = (wchar_t)((unsigned char)*bufwchar[filen].ptr++); in getbufwchar()
2217 bufwchar[filen].buffered -= clen; in getbufwchar()
2218 bufwchar[filen].ptr += clen; in getbufwchar()
2219 bufwchar[filen].offset += clen; in getbufwchar()