Lines Matching refs:alloc
22 sb->alloc = sb->len = 0;
31 if (sb->alloc) {
39 char *res = sb->alloc ? sb->buf : NULL;
51 if (nr < sb->alloc)
57 if (alloc_nr(sb->alloc) > nr)
58 nr = alloc_nr(sb->alloc);
61 * Note that sb->buf == strbuf_slopbuf if sb->alloc == 0, and it is
64 buf = realloc(sb->alloc ? sb->buf : NULL, nr * sizeof(*buf));
69 sb->alloc = nr;
106 len = vsnprintf(sb->buf + sb->len, sb->alloc - sb->len, fmt, ap);
117 len = vsnprintf(sb->buf + sb->len, sb->alloc - sb->len, fmt, ap_saved);
142 size_t oldalloc = sb->alloc;
152 cnt = read(fd, sb->buf + sb->len, sb->alloc - sb->len - 1);