Lines Matching refs:SBUF_FREESPACE
72 #define SBUF_FREESPACE(s) ((s)->s_size - (s)->s_len - 1)
303 if (len > (unsigned) SBUF_FREESPACE(s)) {
304 sbuf_extend(s, len - SBUF_FREESPACE(s));
305 len = min(len, SBUF_FREESPACE(s));
368 len = SBUF_FREESPACE(s); /* XXX return 0? */
369 if (len > (unsigned) SBUF_FREESPACE(s)) {
371 len = min(len, SBUF_FREESPACE(s));
421 len = vsnprintf(&s->s_buf[s->s_len], SBUF_FREESPACE(s) + 1,
424 } while (len > SBUF_FREESPACE(s) &&
425 sbuf_extend(s, len - SBUF_FREESPACE(s)) == 0);
436 s->s_len += min(len, SBUF_FREESPACE(s));