Lines Matching refs:fb
50 struct filewbuf *fb; in fgetwln() local
56 fb = &fb_pool[fb_pool_cur]; in fgetwln()
57 if (fb->fp != stream && fb->fp != NULL) { in fgetwln()
60 fb = &fb_pool[fb_pool_cur]; in fgetwln()
62 fb->fp = stream; in fgetwln()
65 if (!fb->len || wused >= fb->len) { in fgetwln()
68 if (fb->len) in fgetwln()
69 fb->len *= 2; in fgetwln()
71 fb->len = FILEWBUF_INIT_LEN; in fgetwln()
73 wp = reallocarray(fb->wbuf, fb->len, sizeof(wchar_t)); in fgetwln()
78 fb->wbuf = wp; in fgetwln()
81 fb->wbuf[wused++] = wc; in fgetwln()
88 return wused ? fb->wbuf : NULL; in fgetwln()