Home
last modified time | relevance | path

Searched refs:s_buf (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/lib9p/sbuf/
H A Dsbuf.c47 s->s_buf = calloc(1, SBUF_INITIAL_SIZE + 1); in sbuf_new_auto()
48 s->s_capacity = s->s_buf != NULL ? SBUF_INITIAL_SIZE : 0; in sbuf_new_auto()
61 s->s_buf = realloc(s->s_buf, (size_t)s->s_capacity); in sbuf_cat()
63 if (s->s_buf == NULL) in sbuf_cat()
66 strcpy(s->s_buf + s->s_size, str); in sbuf_cat()
97 s->s_buf = realloc(s->s_buf, (size_t)s->s_capacity); in sbuf_vprintf()
99 if (s->s_buf == NULL) in sbuf_vprintf()
111 return (s->s_buf); in sbuf_data()
117 if (s->s_buf != NULL) in sbuf_finish()
118 s->s_buf[s->s_size] = '\0'; in sbuf_finish()
[all …]
H A Dsbuf.h39 char *s_buf; member
/freebsd/sys/kern/
H A Dsubr_sbuf.c109 KASSERT(s->s_buf != NULL, in _assert_sbuf_integrity()
179 SBFREE(s->s_buf); in sbuf_extend()
182 s->s_buf = newbuf; in sbuf_extend()
225 s->s_buf = buf; in sbuf_new()
235 if (s->s_buf == NULL) { in sbuf_new()
239 if (s->s_buf == NULL) in sbuf_new()
431 memmove(s->s_buf, s->s_buf + len, s->s_len); in sbuf_drain()
497 s->s_buf[s->s_len++] = c; in sbuf_put_byte()
836 s->s_buf[s->s_len] = '\0'; in sbuf_finish()
867 return (s->s_buf); in sbuf_data()
[all …]
/freebsd/sys/sys/
H A Dsbuf.h43 char *s_buf; /* storage buffer */ member
/freebsd/sys/gdb/
H A Dnetgdb.c168 c = netgdb_rxsb.s_buf[netgdb_rx_off]; in netgdb_dbg_getc()
/freebsd/contrib/file/src/
H A Dreadcdf.c202 s = info[i].pi_str.s_buf; in cdf_file_property_info()
203 e = info[i].pi_str.s_buf + len; in cdf_file_property_info()
H A Dcdf.h179 const char *s_buf; member
H A Dcdf.c1108 inp[i].pi_str.s_buf = CAST(const char *, in cdf_read_property_info()
1115 left, (int)l, inp[i].pi_str.s_buf)); in cdf_read_property_info()
1519 info[i].pi_str.s_len, info[i].pi_str.s_buf); in cdf_dump_property_info()
1525 (void)fputc(info[i].pi_str.s_buf[j << 1], stderr); in cdf_dump_property_info()
/freebsd/contrib/wpa/src/crypto/
H A Dcrypto_openssl.c2788 u8 *r_buf, *s_buf; in crypto_ec_key_sign_r_s() local
2817 s_buf = wpabuf_put(buf, prime_len); in crypto_ec_key_sign_r_s()
2820 crypto_bignum_to_bin((const struct crypto_bignum *) s, s_buf, in crypto_ec_key_sign_r_s()