bin/cp/utils.c
75
static size_t bufsize;
bin/cp/utils.c
81
bufsize = MIN(BUFSIZE_MAX, MAXPHYS * 8);
bin/cp/utils.c
83
bufsize = BUFSIZE_SMALL;
bin/cp/utils.c
84
buf = malloc(bufsize);
bin/cp/utils.c
88
rcount = read(from_fd, buf, bufsize);
bin/sh/eval.c
1126
memout.bufsize = 64;
bin/sh/output.c
209
dest->buf = ckmalloc(dest->bufsize);
bin/sh/output.c
211
dest->bufend = dest->buf + dest->bufsize;
bin/sh/output.c
215
newsize = dest->bufsize << 1;
bin/sh/output.c
218
dest->bufsize = newsize;
bin/sh/output.h
45
int bufsize;
cddl/compat/opensolaris/lib/libumem/umem.c
104
umem_cache_t *umem_cache_create(char *debug_name, size_t bufsize, size_t align, umem_constructor_t *constructor, umem_destructor_t *destructor, umem_reclaim_t *reclaim, void *callback_data, void *source, int cflags)
cddl/compat/opensolaris/lib/libumem/umem.c
115
cache->bufsize = bufsize;
cddl/compat/opensolaris/lib/libumem/umem.c
125
void *buf = malloc(cache->bufsize);
cddl/compat/opensolaris/lib/libumem/umem.c
36
size_t bufsize;
crypto/heimdal/appl/ftp/ftp/ftp.c
1028
buf = alloc_buffer (buf, &bufsize,
crypto/heimdal/appl/ftp/ftp/ftp.c
1046
while ((c = sec_read (fileno (din), buf, bufsize)) > 0) {
crypto/heimdal/appl/ftp/ftp/ftp.c
586
static size_t bufsize;
crypto/heimdal/appl/ftp/ftp/ftp.c
641
buf = alloc_buffer (buf, &bufsize,
crypto/heimdal/appl/ftp/ftp/ftp.c
646
while ((n = read (fileno (from), buf, bufsize)) > 0) {
crypto/heimdal/appl/ftp/ftp/ftp.c
904
static size_t bufsize;
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1344
static size_t bufsize;
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1405
buf = alloc_buffer (buf, &bufsize,
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1413
while ((cnt = read(filefd, buf, bufsize)) > 0 &&
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1460
static size_t bufsize;
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1465
buf = alloc_buffer (buf, &bufsize,
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1478
while ((cnt = sec_read(fileno(instr), buf, bufsize)) > 0) {
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1503
bufsize - cr_flag)) > 0){
crypto/heimdal/appl/telnet/telnetd/telnetd.c
1228
readstream(int p, char *ibuf, int bufsize)
crypto/heimdal/appl/telnet/telnetd/telnetd.c
1243
strbufd.maxlen = bufsize-1;
crypto/heimdal/lib/roken/getifaddrs.c
333
size_t bufsize = 65536, lastbufsize = 0;
crypto/heimdal/lib/roken/getifaddrs.c
339
void *newbuff = realloc(buff, bufsize);
crypto/heimdal/lib/roken/getifaddrs.c
340
if (newbuff == NULL || bufsize < lastbufsize) {
crypto/heimdal/lib/roken/getifaddrs.c
345
result = read_size = nl_recvmsg(sd, request, seq, buff, bufsize, &msg_flags);
crypto/heimdal/lib/roken/getifaddrs.c
347
lastbufsize = bufsize;
crypto/heimdal/lib/roken/getifaddrs.c
348
bufsize *= 2;
crypto/krb5/src/clients/kvno/kvno.c
198
read_line(FILE *fp, char *buf, size_t bufsize)
crypto/krb5/src/clients/kvno/kvno.c
202
if (fgets(buf, bufsize, fp) == NULL)
crypto/krb5/src/kdc/kdc_transit.c
152
size_t bufsize;
crypto/krb5/src/kdc/kdc_transit.c
181
bufsize = strlen(realm) + strlen(otrans) + 3;
crypto/krb5/src/kdc/kdc_transit.c
182
if (bufsize > MAX_REALM_LN)
crypto/krb5/src/kdc/kdc_transit.c
183
bufsize = MAX_REALM_LN;
crypto/krb5/src/kdc/kdc_transit.c
184
if (!(trans = (char *) malloc(bufsize))) {
crypto/krb5/src/kdc/kdc_transit.c
372
if (strlcat(trans, ",", bufsize) >= bufsize) {
crypto/krb5/src/kdc/kdc_transit.c
377
if (strlcat(trans, current, bufsize) >= bufsize) {
crypto/krb5/src/kdc/kdc_transit.c
391
if (strlcat(trans, ",", bufsize) >= bufsize) {
crypto/krb5/src/kdc/kdc_transit.c
397
if (strlcat(trans, " ", bufsize) >= bufsize) {
crypto/krb5/src/kdc/kdc_transit.c
402
if (strlcat(trans, realm, bufsize) >= bufsize) {
crypto/krb5/src/lib/gssapi/krb5/export_sec_context.c
37
size_t bufsize, blen;
crypto/krb5/src/lib/gssapi/krb5/export_sec_context.c
55
bufsize = 0;
crypto/krb5/src/lib/gssapi/krb5/export_sec_context.c
56
if ((kret = kg_ctx_size(context, ctx, &bufsize)))
crypto/krb5/src/lib/gssapi/krb5/export_sec_context.c
60
if ((obuffer = gssalloc_malloc(bufsize)) == NULL) {
crypto/krb5/src/lib/gssapi/krb5/export_sec_context.c
66
blen = bufsize;
crypto/krb5/src/lib/gssapi/krb5/export_sec_context.c
72
interprocess_token->length = bufsize - blen;
crypto/krb5/src/lib/gssapi/krb5/export_sec_context.c
87
if (obuffer && bufsize) {
crypto/krb5/src/lib/gssapi/krb5/export_sec_context.c
88
zap(obuffer, bufsize);
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
142
bufsize = 16 + encrypt_size;
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
144
outbuf = gssalloc_malloc(bufsize);
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
169
cipher.ciphertext.length = bufsize - 16;
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
180
if (gss_krb5int_rotate_left(outbuf+16, bufsize-16,
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
181
(bufsize-16) - (rrc % (bufsize - 16))))
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
205
bufsize = 16 + message2->length + cksumsize;
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
206
outbuf = gssalloc_malloc(bufsize);
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
244
zap(outbuf,bufsize);
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
257
if (gss_krb5int_rotate_left(outbuf+16, bufsize-16,
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
258
(bufsize-16) - (rrc % (bufsize - 16))))
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
278
token->length = bufsize;
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
67
size_t bufsize = 16;
crypto/krb5/src/lib/gssapi/krb5/lucid_context.c
181
unsigned int bufsize = sizeof(gss_krb5_lucid_context_v1_t);
crypto/krb5/src/lib/gssapi/krb5/lucid_context.c
185
if ((lctx = xmalloc(bufsize)) == NULL) {
crypto/krb5/src/lib/gssapi/krb5/lucid_context.c
190
memset(lctx, 0, bufsize);
crypto/krb5/src/lib/krb5/os/sendto_kdc.c
105
size_t bufsize;
crypto/krb5/src/lib/krb5/os/sendto_kdc.c
1190
in->bufsize = in->n_left = len;
crypto/krb5/src/lib/krb5/os/sendto_kdc.c
1209
nread = recv(conn->fd, conn->in.buf, conn->in.bufsize, 0);
crypto/krb5/src/lib/krb5/os/sendto_kdc.c
1297
size_t bufsize, nread;
crypto/krb5/src/lib/krb5/os/sendto_kdc.c
1303
if (in->buf == NULL || in->bufsize - in->pos < 1024) {
crypto/krb5/src/lib/krb5/os/sendto_kdc.c
1304
bufsize = in->bufsize ? in->bufsize * 2 : 8192;
crypto/krb5/src/lib/krb5/os/sendto_kdc.c
1305
if (bufsize > 1024 * 1024) {
crypto/krb5/src/lib/krb5/os/sendto_kdc.c
1309
tmp = realloc(in->buf, bufsize);
crypto/krb5/src/lib/krb5/os/sendto_kdc.c
1315
in->bufsize = bufsize;
crypto/krb5/src/lib/krb5/os/sendto_kdc.c
1319
in->bufsize - in->pos - 1, &nread);
crypto/krb5/src/lib/krb5/os/sendto_kdc.c
742
state->in.bufsize = MAX_DGRAM_SIZE;
crypto/krb5/src/plugins/tls/k5tls/openssl.c
159
get_cert_cn(X509 *x, char *buf, size_t bufsize)
crypto/krb5/src/plugins/tls/k5tls/openssl.c
166
return X509_NAME_get_text_by_NID(name, NID_commonName, buf, bufsize);
crypto/krb5/src/util/support/fake-addrinfo.c
355
static const char *protoname (int p, char *buf, size_t bufsize) {
crypto/krb5/src/util/support/fake-addrinfo.c
374
snprintf(buf, bufsize, " %-2d", p);
crypto/krb5/src/util/support/fake-addrinfo.c
378
static const char *socktypename (int t, char *buf, size_t bufsize) {
crypto/krb5/src/util/support/fake-addrinfo.c
386
snprintf(buf, bufsize, " %-2d", t);
crypto/krb5/src/util/support/fake-addrinfo.c
390
static const char *familyname (int f, char *buf, size_t bufsize) {
crypto/krb5/src/util/support/fake-addrinfo.c
393
snprintf(buf, bufsize, "AF %d", f);
crypto/krb5/src/windows/leashdll/lshfunc.c
2278
DWORD bufsize = 4096;
crypto/krb5/src/windows/leashdll/lshfunc.c
2302
bufsize, // max size (low 32)
crypto/krb5/src/windows/leashdll/lshfunc.c
2316
bufsize);
crypto/krb5/src/windows/leashdll/lshfunc.c
2324
bufsize -= 3;
crypto/krb5/src/windows/leashdll/lshfunc.c
2327
strcpy_s(strs, bufsize, title);
crypto/krb5/src/windows/leashdll/lshfunc.c
2329
sprintf_s(strs, bufsize,
crypto/krb5/src/windows/leashdll/lshfunc.c
2332
strcpy_s(strs, bufsize, "MIT Kerberos: Get Ticket");
crypto/krb5/src/windows/leashdll/lshfunc.c
2335
bufsize -= step;
crypto/krb5/src/windows/leashdll/lshfunc.c
2338
strcpy_s(strs, bufsize, name);
crypto/krb5/src/windows/leashdll/lshfunc.c
2341
bufsize -= step;
crypto/krb5/src/windows/leashdll/lshfunc.c
2343
strcpy_s(strs, bufsize, realm);
crypto/krb5/src/windows/leashdll/lshfunc.c
2346
bufsize -= step;
crypto/krb5/src/windows/leashdll/lshfunc.c
2360
strcpy_s(strs, bufsize, ccachename);
crypto/openssh/loginrec.c
411
unsigned int bufsize = sa_size;
crypto/openssh/loginrec.c
415
bufsize = sizeof(li->hostaddr);
crypto/openssh/loginrec.c
417
memcpy(&li->hostaddr.sa, sa, bufsize);
crypto/openssh/sshlogin.c
77
char *buf, size_t bufsize)
crypto/openssh/sshlogin.c
82
strlcpy(buf, li.hostname, bufsize);
crypto/openssl/apps/s_server.c
2560
buf = app_malloc(bufsize, "server buffer");
crypto/openssl/apps/s_server.c
2689
edret = SSL_read_early_data(con, buf, bufsize, &readbytes);
crypto/openssl/apps/s_server.c
2789
i = raw_read_stdin(buf, bufsize / 2);
crypto/openssl/apps/s_server.c
2805
i = raw_read_stdin(buf, bufsize);
crypto/openssl/apps/s_server.c
2968
i = SSL_read(con, (char *)buf, bufsize);
crypto/openssl/apps/s_server.c
2975
i = SSL_read(con, (char *)buf, bufsize);
crypto/openssl/apps/s_server.c
3025
OPENSSL_clear_free(buf, bufsize);
crypto/openssl/apps/s_server.c
3281
p = buf = app_malloc(bufsize + 1, "server www buffer");
crypto/openssl/apps/s_server.c
3296
if (BIO_set_write_buffer_size(io, bufsize) <= 0)
crypto/openssl/apps/s_server.c
3373
edret = SSL_read_early_data(con, buf, bufsize, &readbytes);
crypto/openssl/apps/s_server.c
3395
i = BIO_gets(!BIO_eof(edio) ? edio : io, buf, bufsize + 1);
crypto/openssl/apps/s_server.c
3459
BIO_gets(io, buf, bufsize + 1);
crypto/openssl/apps/s_server.c
3506
p = SSL_get_shared_ciphers(con, buf, bufsize);
crypto/openssl/apps/s_server.c
3675
i = BIO_read(file, buf, bufsize);
crypto/openssl/apps/s_server.c
3748
buf = app_malloc(bufsize + 1, "server rev buffer");
crypto/openssl/apps/s_server.c
3755
if (BIO_set_write_buffer_size(io, bufsize) <= 0)
crypto/openssl/apps/s_server.c
3833
i = BIO_gets(io, buf, bufsize + 1);
crypto/openssl/apps/s_server.c
74
static const int bufsize = 16 * 1024;
crypto/openssl/crypto/asn1/bio_asn1.c
123
ctx->bufsize = size;
crypto/openssl/crypto/asn1/bio_asn1.c
191
if (!ossl_assert(ctx->buflen <= ctx->bufsize))
crypto/openssl/crypto/asn1/bio_asn1.c
45
int bufsize;
crypto/openssl/crypto/asn1/f_int.c
127
bufsize = BIO_gets(bp, buf, size);
crypto/openssl/crypto/asn1/f_int.c
54
int i, j, k, m, n, again, bufsize;
crypto/openssl/crypto/asn1/f_int.c
61
bufsize = BIO_gets(bp, buf, size);
crypto/openssl/crypto/asn1/f_int.c
63
if (bufsize < 1)
crypto/openssl/crypto/asn1/f_int.c
65
i = bufsize;
crypto/openssl/crypto/asn1/f_string.c
120
bufsize = BIO_gets(bp, buf, size);
crypto/openssl/crypto/asn1/f_string.c
48
int i, j, k, m, n, again, bufsize;
crypto/openssl/crypto/asn1/f_string.c
53
bufsize = BIO_gets(bp, buf, size);
crypto/openssl/crypto/asn1/f_string.c
55
if (bufsize < 1) {
crypto/openssl/crypto/asn1/f_string.c
63
i = bufsize;
crypto/openssl/crypto/cmp/cmp_status.c
170
char *buf, size_t bufsize)
crypto/openssl/crypto/cmp/cmp_status.c
187
if (printed_chars < 0 || (size_t)printed_chars >= bufsize) \
crypto/openssl/crypto/cmp/cmp_status.c
190
bufsize -= printed_chars;
crypto/openssl/crypto/cmp/cmp_status.c
192
printed_chars = BIO_snprintf(write_ptr, bufsize, "%s", status_string);
crypto/openssl/crypto/cmp/cmp_status.c
200
printed_chars = BIO_snprintf(write_ptr, bufsize, "; PKIFailureInfo: ");
crypto/openssl/crypto/cmp/cmp_status.c
206
printed_chars = BIO_snprintf(write_ptr, bufsize, "%s%s",
crypto/openssl/crypto/cmp/cmp_status.c
217
printed_chars = BIO_snprintf(write_ptr, bufsize, "; <no failure info>");
crypto/openssl/crypto/cmp/cmp_status.c
224
printed_chars = BIO_snprintf(write_ptr, bufsize, "; StatusString%s: ",
crypto/openssl/crypto/cmp/cmp_status.c
229
printed_chars = BIO_snprintf(write_ptr, bufsize, "\"%.*s\"%s",
crypto/openssl/crypto/cmp/cmp_status.c
241
char *buf, size_t bufsize)
crypto/openssl/crypto/cmp/cmp_status.c
254
statusInfo->statusString, buf, bufsize);
crypto/openssl/crypto/cmp/cmp_status.c
258
size_t bufsize)
crypto/openssl/crypto/cmp/cmp_status.c
268
buf, bufsize);
crypto/openssl/crypto/comp/c_brotli.c
386
size_t bufsize;
crypto/openssl/crypto/comp/c_brotli.c
395
size_t bufsize;
crypto/openssl/crypto/comp/c_brotli.c
457
ctx->decode.bufsize = BROTLI_DEFAULT_BUFSIZE;
crypto/openssl/crypto/comp/c_brotli.c
461
ctx->encode.bufsize = BROTLI_DEFAULT_BUFSIZE;
crypto/openssl/crypto/comp/c_brotli.c
521
ctx->decode.buf = OPENSSL_malloc(ctx->decode.bufsize);
crypto/openssl/crypto/comp/c_brotli.c
556
ret = BIO_read(next, ctx->decode.buf, ctx->decode.bufsize);
crypto/openssl/crypto/comp/c_brotli.c
595
ctx->encode.buf = OPENSSL_malloc(ctx->encode.bufsize);
crypto/openssl/crypto/comp/c_brotli.c
603
ctx->encode.avail_out = ctx->encode.bufsize;
crypto/openssl/crypto/comp/c_brotli.c
634
ctx->encode.avail_out = ctx->encode.bufsize;
crypto/openssl/crypto/comp/c_brotli.c
643
ctx->encode.count = ctx->encode.bufsize - ctx->encode.avail_out;
crypto/openssl/crypto/comp/c_brotli.c
683
ctx->encode.avail_out = ctx->encode.bufsize;
crypto/openssl/crypto/comp/c_brotli.c
694
ctx->encode.count = ctx->encode.bufsize - ctx->encode.avail_out;
crypto/openssl/crypto/comp/c_brotli.c
726
ibs = ctx->decode.bufsize;
crypto/openssl/crypto/comp/c_brotli.c
727
obs = ctx->encode.bufsize;
crypto/openssl/crypto/comp/c_brotli.c
739
if (ibs > 0 && ibs != ctx->decode.bufsize) {
crypto/openssl/crypto/comp/c_brotli.c
747
ctx->decode.bufsize = ibs;
crypto/openssl/crypto/comp/c_brotli.c
750
if (obs > 0 && obs != ctx->encode.bufsize) {
crypto/openssl/crypto/comp/c_brotli.c
758
ctx->encode.bufsize = obs;
crypto/openssl/crypto/comp/c_zstd.c
458
size_t bufsize;
crypto/openssl/crypto/comp/c_zstd.c
464
size_t bufsize;
crypto/openssl/crypto/comp/c_zstd.c
531
ctx->decompress.bufsize = ZSTD_DStreamInSize();
crypto/openssl/crypto/comp/c_zstd.c
541
ctx->compress.bufsize = ZSTD_CStreamInSize();
crypto/openssl/crypto/comp/c_zstd.c
594
ctx->decompress.buffer = OPENSSL_malloc(ctx->decompress.bufsize);
crypto/openssl/crypto/comp/c_zstd.c
626
ret = BIO_read(next, ctx->decompress.buffer, ctx->decompress.bufsize);
crypto/openssl/crypto/comp/c_zstd.c
654
ctx->compress.outbuf.dst = OPENSSL_malloc(ctx->compress.bufsize);
crypto/openssl/crypto/comp/c_zstd.c
659
ctx->compress.outbuf.size = ctx->compress.bufsize;
crypto/openssl/crypto/comp/c_zstd.c
687
ctx->compress.outbuf.size = ctx->compress.bufsize;
crypto/openssl/crypto/comp/c_zstd.c
717
ctx->compress.outbuf.size = ctx->compress.bufsize;
crypto/openssl/crypto/comp/c_zstd.c
733
ctx->compress.outbuf.size = ctx->compress.bufsize;
crypto/openssl/crypto/comp/c_zstd.c
762
ctx->compress.bufsize = 0;
crypto/openssl/crypto/comp/c_zstd.c
775
ibs = ctx->decompress.bufsize;
crypto/openssl/crypto/comp/c_zstd.c
776
obs = ctx->compress.bufsize;
crypto/openssl/crypto/comp/c_zstd.c
787
if (ibs > 0 && ibs != ctx->decompress.bufsize) {
crypto/openssl/crypto/comp/c_zstd.c
796
ctx->decompress.bufsize = ibs;
crypto/openssl/crypto/comp/c_zstd.c
799
if (obs > 0 && obs != ctx->compress.bufsize) {
crypto/openssl/crypto/comp/c_zstd.c
806
ctx->compress.bufsize = obs;
crypto/openssl/crypto/property/property_parse.c
700
size_t bufsize)
crypto/openssl/crypto/property/property_parse.c
708
if (bufsize > 0)
crypto/openssl/crypto/property/property_parse.c
720
put_char(',', &buf, &bufsize, &needed);
crypto/openssl/crypto/property/property_parse.c
723
put_char('?', &buf, &bufsize, &needed);
crypto/openssl/crypto/property/property_parse.c
725
put_char('-', &buf, &bufsize, &needed);
crypto/openssl/crypto/property/property_parse.c
730
put_str(val, &buf, &bufsize, &needed);
crypto/openssl/crypto/property/property_parse.c
734
put_char('!', &buf, &bufsize, &needed);
crypto/openssl/crypto/property/property_parse.c
737
put_char('=', &buf, &bufsize, &needed);
crypto/openssl/crypto/property/property_parse.c
744
put_str(val, &buf, &bufsize, &needed);
crypto/openssl/crypto/property/property_parse.c
748
put_num(prop->v.int_val, &buf, &bufsize, &needed);
crypto/openssl/crypto/property/property_parse.c
761
put_char('\0', &buf, &bufsize, &needed);
crypto/openssl/crypto/punycode.c
278
unsigned int bufsize = LABEL_BUF_SIZE;
crypto/openssl/crypto/punycode.c
280
if (ossl_punycode_decode(inptr + 4, delta - 4, buf, &bufsize) <= 0) {
crypto/openssl/crypto/punycode.c
285
for (i = 0; i < bufsize; i++) {
crypto/openssl/include/internal/property.h
94
size_t bufsize);
crypto/openssl/include/openssl/cmp.h
611
size_t bufsize);
crypto/openssl/include/openssl/cmp.h
613
char *buf, size_t bufsize);
crypto/openssl/test/property_test.c
665
size_t bufsize;
crypto/openssl/test/property_test.c
671
bufsize = ossl_property_list_to_string(NULL, pl, NULL, 0);
crypto/openssl/test/property_test.c
672
if (!TEST_size_t_gt(bufsize, 0))
crypto/openssl/test/property_test.c
674
buf = OPENSSL_malloc(bufsize);
crypto/openssl/test/property_test.c
677
bufsize),
crypto/openssl/test/property_test.c
678
bufsize)
crypto/openssl/test/property_test.c
680
|| !TEST_size_t_eq(bufsize, strlen(to_string_tests[i].out) + 1))
lib/libc/gdtoa/_hdtoa.c
111
bufsize = (ndigits > 0) ? ndigits : SIGFIGS;
lib/libc/gdtoa/_hdtoa.c
112
s0 = rv_alloc(bufsize);
lib/libc/gdtoa/_hdtoa.c
127
for (s = s0 + 1; s < s0 + bufsize; s++) {
lib/libc/gdtoa/_hdtoa.c
77
int bufsize;
lib/libc/gdtoa/_hldtoa.c
125
bufsize = (ndigits > 0) ? ndigits : SIGFIGS;
lib/libc/gdtoa/_hldtoa.c
126
s0 = rv_alloc(bufsize);
lib/libc/gdtoa/_hldtoa.c
148
for (s = s0 + 1; s < s0 + bufsize; s++) {
lib/libc/gdtoa/_hldtoa.c
83
int bufsize;
lib/libc/gen/getgrent.c
1035
adjsize = bufsize - _ALIGNBYTES - sizeof(char *);
lib/libc/gen/getgrent.c
1045
&buffer[linesize + 1], bufsize - linesize - 1, errnop);
lib/libc/gen/getgrent.c
1098
size_t bufsize;
lib/libc/gen/getgrent.c
1121
bufsize = va_arg(ap, size_t);
lib/libc/gen/getgrent.c
1137
if (strlcpy(buffer, name, bufsize) >= bufsize)
lib/libc/gen/getgrent.c
1141
if (snprintf(buffer, bufsize, "%lu",
lib/libc/gen/getgrent.c
1142
(unsigned long)gid) >= bufsize)
lib/libc/gen/getgrent.c
1191
if (resultlen >= bufsize - _ALIGNBYTES - sizeof(char *)) {
lib/libc/gen/getgrent.c
1201
&buffer[resultlen+1], bufsize - resultlen - 1,
lib/libc/gen/getgrent.c
1321
size_t bufsize, linesize;
lib/libc/gen/getgrent.c
1349
bufsize = va_arg(ap, size_t);
lib/libc/gen/getgrent.c
1375
"getgrent_r", compatsrc, grp, buffer, bufsize,
lib/libc/gen/getgrent.c
1380
"getgrgid_r", compatsrc, gid, grp, buffer, bufsize,
lib/libc/gen/getgrent.c
1386
bufsize, errnop);
lib/libc/gen/getgrent.c
1396
"getgrnam_r", compatsrc, st->name, grp, buffer, bufsize,
lib/libc/gen/getgrent.c
1457
if (bufsize <= linesize + _ALIGNBYTES + sizeof(char *)) {
lib/libc/gen/getgrent.c
1465
&buffer[linesize + 1], bufsize - linesize - 1, errnop);
lib/libc/gen/getgrent.c
474
size_t bufsize;
lib/libc/gen/getgrent.c
499
bufsize = GRP_STORAGE_INITIAL;
lib/libc/gen/getgrent.c
509
"getgrent_r", src, &grp, buf, bufsize, &ret_errno);
lib/libc/gen/getgrent.c
513
if ((bufsize << 1) > GRP_STORAGE_MAX) {
lib/libc/gen/getgrent.c
519
bufsize <<= 1;
lib/libc/gen/getgrent.c
520
buf = malloc(bufsize);
lib/libc/gen/getgrent.c
571
getgrent_r(struct group *grp, char *buffer, size_t bufsize,
lib/libc/gen/getgrent.c
579
grp, buffer, bufsize, &ret_errno);
lib/libc/gen/getgrent.c
588
getgrnam_r(const char *name, struct group *grp, char *buffer, size_t bufsize,
lib/libc/gen/getgrent.c
617
name, grp, buffer, bufsize, &ret_errno);
lib/libc/gen/getgrent.c
626
getgrgid_r(gid_t gid, struct group *grp, char *buffer, size_t bufsize,
lib/libc/gen/getgrent.c
655
gid, grp, buffer, bufsize, &ret_errno);
lib/libc/gen/getgrent.c
725
wrap_getgrnam_r(union key key, struct group *grp, char *buffer, size_t bufsize,
lib/libc/gen/getgrent.c
728
return (getgrnam_r(key.name, grp, buffer, bufsize, res));
lib/libc/gen/getgrent.c
733
wrap_getgrgid_r(union key key, struct group *grp, char *buffer, size_t bufsize,
lib/libc/gen/getgrent.c
736
return (getgrgid_r(key.gid, grp, buffer, bufsize, res));
lib/libc/gen/getgrent.c
742
size_t bufsize, struct group **res)
lib/libc/gen/getgrent.c
744
return (getgrent_r(grp, buffer, bufsize, res));
lib/libc/gen/getgrent.c
847
size_t bufsize, linesize;
lib/libc/gen/getgrent.c
869
bufsize = va_arg(ap, size_t);
lib/libc/gen/getgrent.c
898
if (bufsize <= linesize + _ALIGNBYTES + sizeof(char *)) {
lib/libc/gen/getgrent.c
906
&buffer[linesize + 1], bufsize - linesize - 1, errnop);
lib/libc/gen/getgrent.c
961
size_t bufsize, adjsize, linesize;
lib/libc/gen/getgrent.c
983
bufsize = va_arg(ap, size_t);
lib/libc/gen/getmntinfo-compat11.c
45
static long bufsize;
lib/libc/gen/getmntinfo-compat11.c
50
if (bufsize > 0 &&
lib/libc/gen/getmntinfo-compat11.c
51
(mntsize = freebsd11_getfsstat(mntbuf, bufsize, flags)) < 0)
lib/libc/gen/getmntinfo-compat11.c
53
while (bufsize <= mntsize * sizeof(struct freebsd11_statfs)) {
lib/libc/gen/getmntinfo-compat11.c
56
bufsize = (mntsize + 1) * sizeof(struct freebsd11_statfs);
lib/libc/gen/getmntinfo-compat11.c
57
if ((mntbuf = (struct freebsd11_statfs *)malloc(bufsize)) == 0)
lib/libc/gen/getmntinfo-compat11.c
59
if ((mntsize = freebsd11_getfsstat(mntbuf, bufsize, flags)) < 0)
lib/libc/gen/getmntinfo.c
48
static long bufsize;
lib/libc/gen/getmntinfo.c
53
if (bufsize > 0 && (mntsize = getfsstat(mntbuf, bufsize, mode)) < 0)
lib/libc/gen/getmntinfo.c
55
while (tries++ < MAX_TRIES && bufsize <= mntsize * sizeof(*mntbuf)) {
lib/libc/gen/getmntinfo.c
56
bufsize = (mntsize * SCALING_FACTOR) * sizeof(*mntbuf);
lib/libc/gen/getmntinfo.c
57
if ((mntbuf = reallocf(mntbuf, bufsize)) == NULL)
lib/libc/gen/getmntinfo.c
59
if ((mntsize = getfsstat(mntbuf, bufsize, mode)) < 0)
lib/libc/gen/getmntinfo.c
63
if (mntsize > (bufsize / sizeof(*mntbuf)))
lib/libc/gen/getmntinfo.c
64
return (bufsize / sizeof(*mntbuf));
lib/libc/gen/getnetgrent.c
230
size_t bufsize;
lib/libc/gen/getnetgrent.c
237
bufsize = va_arg(ap, size_t);
lib/libc/gen/getnetgrent.c
243
return (_getnetgrent_r(hostp, userp, domp, buf, bufsize, errnop, st));
lib/libc/gen/getnetgrent.c
298
size_t bufsize;
lib/libc/gen/getnetgrent.c
308
bufsize = va_arg(ap, size_t);
lib/libc/gen/getnetgrent.c
311
return (_getnetgrent_r(hostp, userp, domp, buf, bufsize, errnop,
lib/libc/gen/getnetgrent.c
415
size_t bufsize, int *errnop, struct netgr_state *st)
lib/libc/gen/getnetgrent.c
425
len = strlcpy(p, src, bufsize); \
lib/libc/gen/getnetgrent.c
426
if (len >= bufsize) { \
lib/libc/gen/getnetgrent.c
432
bufsize -= len + 1; \
lib/libc/gen/getnetgrent.c
602
size_t bufsize;
lib/libc/gen/getnetgrent.c
608
bufsize = NGRP_STORAGE_INITIAL;
lib/libc/gen/getnetgrent.c
609
buf = malloc(bufsize);
lib/libc/gen/getnetgrent.c
622
"getnetgrent_r", src, &h, &u, &d, buf, bufsize,
lib/libc/gen/getnetgrent.c
625
bufsize *= 2;
lib/libc/gen/getnetgrent.c
626
if (bufsize > NGRP_STORAGE_MAX ||
lib/libc/gen/getnetgrent.c
627
(buf = reallocf(buf, bufsize)) == NULL)
lib/libc/gen/getnetgrent.c
925
getnetgrent_r(char **hostp, char **userp, char **domp, char *buf, size_t bufsize)
lib/libc/gen/getnetgrent.c
931
defaultsrc, hostp, userp, domp, buf, bufsize, &ret_errno);
lib/libc/gen/getpwent.c
1024
pwdb_parse_entry_v4(char *buffer, size_t bufsize, struct passwd *pwd,
lib/libc/gen/getpwent.c
1032
eom = &buffer[bufsize];
lib/libc/gen/getpwent.c
1099
size_t bufsize, linesize;
lib/libc/gen/getpwent.c
1121
bufsize = va_arg(ap, size_t);
lib/libc/gen/getpwent.c
1167
linesize = strlcpy(buffer, hes[0], bufsize);
lib/libc/gen/getpwent.c
1168
if (linesize >= bufsize) {
lib/libc/gen/getpwent.c
1175
rv = __pw_parse_entry(buffer, bufsize, pwd, 0, errnop);
lib/libc/gen/getpwent.c
1214
nis_map(char *domain, enum nss_lookup_type how, char *buffer, size_t bufsize,
lib/libc/gen/getpwent.c
1221
if (snprintf(buffer, bufsize, "master.passwd.by%s",
lib/libc/gen/getpwent.c
1222
(how == nss_lt_id) ? "uid" : "name") >= bufsize)
lib/libc/gen/getpwent.c
1231
if (snprintf(buffer, bufsize, "passwd.by%s",
lib/libc/gen/getpwent.c
1232
(how == nss_lt_id) ? "uid" : "name") >= bufsize)
lib/libc/gen/getpwent.c
1240
nis_adjunct(char *domain, const char *name, char *buffer, size_t bufsize)
lib/libc/gen/getpwent.c
1256
if (q - p >= bufsize)
lib/libc/gen/getpwent.c
1294
size_t bufsize;
lib/libc/gen/getpwent.c
1314
bufsize = va_arg(ap, size_t);
lib/libc/gen/getpwent.c
1333
if (strlcpy(buffer, name, bufsize) >= bufsize)
lib/libc/gen/getpwent.c
1337
if (snprintf(buffer, bufsize, "%lu",
lib/libc/gen/getpwent.c
1338
(unsigned long)uid) >= bufsize)
lib/libc/gen/getpwent.c
1382
if (resultlen >= bufsize) {
lib/libc/gen/getpwent.c
1398
&buffer[resultlen+1], bufsize-resultlen-1);
lib/libc/gen/getpwent.c
1466
size_t bufsize)
lib/libc/gen/getpwent.c
1507
eob = &buffer[bufsize];
lib/libc/gen/getpwent.c
1579
uid_t uid, struct passwd *pwd, char *buffer, size_t bufsize, int *errnop)
lib/libc/gen/getpwent.c
1606
"getpwent_r", compatsrc, pwd, buffer, bufsize,
lib/libc/gen/getpwent.c
1612
bufsize, errnop);
lib/libc/gen/getpwent.c
1617
bufsize, errnop);
lib/libc/gen/getpwent.c
1629
e = compat_use_template(pwd, &st->template, buffer, bufsize);
lib/libc/gen/getpwent.c
1740
size_t bufsize;
lib/libc/gen/getpwent.c
1764
bufsize = va_arg(ap, size_t);
lib/libc/gen/getpwent.c
1795
buffer, bufsize, errnop);
lib/libc/gen/getpwent.c
1811
user, uid, pwd, buffer, bufsize, errnop);
lib/libc/gen/getpwent.c
1817
uid, pwd, buffer, bufsize, errnop);
lib/libc/gen/getpwent.c
1874
if (entry.size > bufsize) {
lib/libc/gen/getpwent.c
1921
if (entry.size > bufsize) {
lib/libc/gen/getpwent.c
1993
__pw_parse_entry(char *buffer, size_t bufsize __unused, struct passwd *pwd,
lib/libc/gen/getpwent.c
507
getpwent_r(struct passwd *pwd, char *buffer, size_t bufsize,
lib/libc/gen/getpwent.c
536
pwd, buffer, bufsize, &ret_errno);
lib/libc/gen/getpwent.c
545
getpwnam_r(const char *name, struct passwd *pwd, char *buffer, size_t bufsize,
lib/libc/gen/getpwent.c
575
name, pwd, buffer, bufsize, &ret_errno);
lib/libc/gen/getpwent.c
584
getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t bufsize,
lib/libc/gen/getpwent.c
614
uid, pwd, buffer, bufsize, &ret_errno);
lib/libc/gen/getpwent.c
663
size_t bufsize, struct passwd **res)
lib/libc/gen/getpwent.c
665
return (getpwnam_r(key.name, pwd, buffer, bufsize, res));
lib/libc/gen/getpwent.c
671
size_t bufsize, struct passwd **res)
lib/libc/gen/getpwent.c
673
return (getpwuid_r(key.uid, pwd, buffer, bufsize, res));
lib/libc/gen/getpwent.c
679
size_t bufsize, struct passwd **res)
lib/libc/gen/getpwent.c
681
return (getpwent_r(pwd, buffer, bufsize, res));
lib/libc/gen/getpwent.c
802
size_t bufsize, namesize;
lib/libc/gen/getpwent.c
828
bufsize = va_arg(ap, size_t);
lib/libc/gen/getpwent.c
901
if (entry.size > bufsize) {
lib/libc/gen/getpwent.c
953
pwdb_parse_entry_v3(char *buffer, size_t bufsize, struct passwd *pwd,
lib/libc/gen/getpwent.c
961
eom = &buffer[bufsize];
lib/libc/iconv/citrus_aliasname_local.h
36
void *buf, size_t bufsize)
lib/libc/iconv/citrus_aliasname_local.h
40
buf, bufsize, _LOOKUP_CASE_SENSITIVE));
lib/libc/iconv/citrus_esdb.c
62
_citrus_esdb_alias(const char *esname, char *buf, size_t bufsize)
lib/libc/iconv/citrus_esdb.c
65
return (_lookup_alias(_PATH_ESDB "/" ESDB_ALIAS, esname, buf, bufsize,
lib/libc/locale/ldpart.c
60
size_t namesize, bufsize;
lib/libc/locale/ldpart.c
98
bufsize = namesize + st.st_size;
lib/libc/locale/ldpart.c
99
if ((lbuf = malloc(bufsize)) == NULL) {
lib/libc/net/getservent.c
1112
char *buffer, size_t bufsize, struct servent **result)
lib/libc/net/getservent.c
1139
defaultsrc, name, proto, serv, buffer, bufsize, &ret_errno);
lib/libc/net/getservent.c
1149
char *buffer, size_t bufsize, struct servent **result)
lib/libc/net/getservent.c
1176
defaultsrc, port, proto, serv, buffer, bufsize, &ret_errno);
lib/libc/net/getservent.c
1185
getservent_r(struct servent *serv, char *buffer, size_t bufsize,
lib/libc/net/getservent.c
1212
defaultsrc, serv, buffer, bufsize, &ret_errno);
lib/libc/net/getservent.c
1282
size_t bufsize, struct servent **res)
lib/libc/net/getservent.c
1284
return (getservbyname_r(key.name, key.proto, serv, buffer, bufsize,
lib/libc/net/getservent.c
1290
size_t bufsize, struct servent **res)
lib/libc/net/getservent.c
1292
return (getservbyport_r(key.port, key.proto, serv, buffer, bufsize,
lib/libc/net/getservent.c
1298
size_t bufsize, struct servent **res)
lib/libc/net/getservent.c
1300
return (getservent_r(serv, buffer, bufsize, res));
lib/libc/net/getservent.c
1321
st->bufsize = SERVENT_STORAGE_INITIAL;
lib/libc/net/getservent.c
1324
rv = fn(key, &st->serv, st->buffer, st->bufsize, &res);
lib/libc/net/getservent.c
1327
if ((st->bufsize << 1) > SERVENT_STORAGE_MAX) {
lib/libc/net/getservent.c
133
size_t bufsize;
lib/libc/net/getservent.c
1332
st->bufsize <<= 1;
lib/libc/net/getservent.c
1333
st->buffer = malloc(st->bufsize);
lib/libc/net/getservent.c
221
parse_result(struct servent *serv, char *buffer, size_t bufsize,
lib/libc/net/getservent.c
227
if (bufsize <= resultbuflen + _ALIGNBYTES + sizeof(char *)) {
lib/libc/net/getservent.c
232
aliases_size = (buffer + bufsize - (char *)aliases) / sizeof(char *);
lib/libc/net/getservent.c
296
size_t bufsize;
lib/libc/net/getservent.c
323
bufsize = va_arg(ap, size_t);
lib/libc/net/getservent.c
364
bufsize, errnop);
lib/libc/net/getservent.c
370
bufsize, errnop);
lib/libc/net/getservent.c
375
compat_src, serv, buffer, bufsize, errnop);
lib/libc/net/getservent.c
386
rv = parse_result(serv, buffer, bufsize, line, linesize,
lib/libc/net/getservent.c
501
size_t bufsize;
lib/libc/net/getservent.c
524
bufsize = va_arg(ap, size_t);
lib/libc/net/getservent.c
594
rv = parse_result(serv, buffer, bufsize, result->data,
lib/libc/net/getservent.c
673
size_t bufsize;
lib/libc/net/getservent.c
697
bufsize = va_arg(ap, size_t);
lib/libc/net/getservent.c
787
rv = parse_result(serv, buffer, bufsize, resultbuf,
lib/libc/net/nss_compat.c
100
size_t bufsize;
lib/libc/net/nss_compat.c
107
bufsize = va_arg(ap, size_t);
lib/libc/net/nss_compat.c
109
nss_status = fn(name, grp, buffer, bufsize, errnop);
lib/libc/net/nss_compat.c
125
size_t bufsize;
lib/libc/net/nss_compat.c
132
bufsize = va_arg(ap, size_t);
lib/libc/net/nss_compat.c
134
nss_status = fn(gid, grp, buffer, bufsize, errnop);
lib/libc/net/nss_compat.c
149
size_t bufsize;
lib/libc/net/nss_compat.c
157
bufsize = va_arg(ap, size_t);
lib/libc/net/nss_compat.c
159
nss_status = fn(grp, buffer, bufsize, errnop);
lib/libc/net/nss_compat.c
201
size_t bufsize;
lib/libc/net/nss_compat.c
208
bufsize = va_arg(ap, size_t);
lib/libc/net/nss_compat.c
210
nss_status = fn(name, pwd, buffer, bufsize, errnop);
lib/libc/net/nss_compat.c
226
size_t bufsize;
lib/libc/net/nss_compat.c
233
bufsize = va_arg(ap, size_t);
lib/libc/net/nss_compat.c
235
nss_status = fn(uid, pwd, buffer, bufsize, errnop);
lib/libc/net/nss_compat.c
250
size_t bufsize;
lib/libc/net/nss_compat.c
258
bufsize = va_arg(ap, size_t);
lib/libc/net/nss_compat.c
260
nss_status = fn(pwd, buffer, bufsize, errnop);
lib/libc/rpc/getrpcent.c
115
size_t bufsize;
lib/libc/rpc/getrpcent.c
210
size_t bufsize;
lib/libc/rpc/getrpcent.c
241
bufsize = va_arg(ap, size_t);
lib/libc/rpc/getrpcent.c
267
if (bufsize <= linesize + _ALIGNBYTES + sizeof(char *)) {
lib/libc/rpc/getrpcent.c
274
aliases_size = (buffer + bufsize -
lib/libc/rpc/getrpcent.c
387
size_t bufsize;
lib/libc/rpc/getrpcent.c
422
bufsize = va_arg(ap, size_t);
lib/libc/rpc/getrpcent.c
513
if (bufsize <= resultbuflen + 1 + _ALIGNBYTES +
lib/libc/rpc/getrpcent.c
522
aliases_size = (buffer + bufsize - (char *)aliases) /
lib/libc/rpc/getrpcent.c
807
size_t bufsize, struct rpcent **result)
lib/libc/rpc/getrpcent.c
830
name, rpc, buffer, bufsize, &ret_errno);
lib/libc/rpc/getrpcent.c
840
size_t bufsize, struct rpcent **result)
lib/libc/rpc/getrpcent.c
863
number, rpc, buffer, bufsize, &ret_errno);
lib/libc/rpc/getrpcent.c
872
getrpcent_r(struct rpcent *rpc, char *buffer, size_t bufsize,
lib/libc/rpc/getrpcent.c
895
rpc, buffer, bufsize, &ret_errno);
lib/libc/rpc/getrpcent.c
916
size_t bufsize, struct rpcent **res)
lib/libc/rpc/getrpcent.c
918
return (getrpcbyname_r(key.name, rpc, buffer, bufsize, res));
lib/libc/rpc/getrpcent.c
923
size_t bufsize, struct rpcent **res)
lib/libc/rpc/getrpcent.c
925
return (getrpcbynumber_r(key.number, rpc, buffer, bufsize, res));
lib/libc/rpc/getrpcent.c
930
size_t bufsize, struct rpcent **res)
lib/libc/rpc/getrpcent.c
932
return (getrpcent_r(rpc, buffer, bufsize, res));
lib/libc/rpc/getrpcent.c
953
st->bufsize = RPCENT_STORAGE_INITIAL;
lib/libc/rpc/getrpcent.c
956
rv = fn(key, &st->rpc, st->buffer, st->bufsize, &res);
lib/libc/rpc/getrpcent.c
959
if ((st->bufsize << 1) > RPCENT_STORAGE_MAX) {
lib/libc/rpc/getrpcent.c
964
st->bufsize <<= 1;
lib/libc/rpc/getrpcent.c
965
st->buffer = malloc(st->bufsize);
lib/libc/stdio/makebuf.c
108
*bufsize = st.st_blksize;
lib/libc/stdio/makebuf.c
86
__swhatbuf(FILE *fp, size_t *bufsize, int *couldbetty)
lib/libc/stdio/makebuf.c
92
*bufsize = BUFSIZ;
lib/libc/stdio/makebuf.c
99
*bufsize = BUFSIZ;
lib/libc/stdlib/strfmon.c
527
size_t bufsize;
lib/libc/stdlib/strfmon.c
576
bufsize = avalue_size * (1 + thousands_sep_size) + decimal_point_size +
lib/libc/stdlib/strfmon.c
578
rslt = calloc(1, bufsize);
lib/libc/stdlib/strfmon.c
583
bufend = rslt + bufsize - 1; /* reserve space for trailing '\0' */
lib/libc/stdlib/strfmon.c
638
bufsize = rslt + bufsize - bufend;
lib/libc/stdlib/strfmon.c
639
memmove(rslt, bufend, bufsize);
lib/libc/tests/string/memccpy_test.c
100
memset(dst, 'X', bufsize);
lib/libc/tests/string/memccpy_test.c
101
assert(memccpy_fn(dst, src, s[size-1], bufsize) == expected);
lib/libc/tests/string/memccpy_test.c
102
assert(memcmp(src, dst, MIN(bufsize, size)) == 0);
lib/libc/tests/string/memccpy_test.c
103
for (x = size; x < bufsize; x++)
lib/libc/tests/string/memccpy_test.c
106
freebuf(dst, bufsize, j);
lib/libc/tests/string/memccpy_test.c
107
freebuf(src, bufsize < size ? bufsize : size, i);
lib/libc/tests/string/memccpy_test.c
83
size_t bufsize, x;
lib/libc/tests/string/memccpy_test.c
88
for (bufsize = 0; bufsize <= size + 32; bufsize++) {
lib/libc/tests/string/memccpy_test.c
89
dst = makebuf(bufsize, j);
lib/libc/tests/string/memccpy_test.c
90
if (bufsize < size) {
lib/libc/tests/string/memccpy_test.c
91
src = makebuf(bufsize, i);
lib/libc/tests/string/memccpy_test.c
92
memcpy(src, s, bufsize);
lib/libc/tests/string/stpncpy_test.c
100
assert(memcmp(src, dst, MIN(bufsize, size)) == 0);
lib/libc/tests/string/stpncpy_test.c
101
for (x = size; x < bufsize; x++)
lib/libc/tests/string/stpncpy_test.c
104
freebuf(dst, bufsize, j);
lib/libc/tests/string/stpncpy_test.c
105
freebuf(src, MIN(bufsize, size), i);
lib/libc/tests/string/stpncpy_test.c
81
size_t bufsize, x;
lib/libc/tests/string/stpncpy_test.c
86
for (bufsize = 0; bufsize <= size + 32; bufsize++) {
lib/libc/tests/string/stpncpy_test.c
87
dst = makebuf(bufsize, j);
lib/libc/tests/string/stpncpy_test.c
88
if (bufsize < size) {
lib/libc/tests/string/stpncpy_test.c
89
src = makebuf(bufsize, i);
lib/libc/tests/string/stpncpy_test.c
90
memcpy(src, s, bufsize);
lib/libc/tests/string/stpncpy_test.c
91
expected = dst + bufsize;
lib/libc/tests/string/stpncpy_test.c
98
memset(dst, 'X', bufsize);
lib/libc/tests/string/stpncpy_test.c
99
assert(stpncpy_fn(dst, src, bufsize) == expected);
lib/libc/tests/string/strlcpy_test.c
68
size_t size, bufsize, x;
lib/libc/tests/string/strlcpy_test.c
74
for (bufsize = 0; bufsize <= size + 10; bufsize++) {
lib/libc/tests/string/strlcpy_test.c
77
dst = makebuf(bufsize, j);
lib/libc/tests/string/strlcpy_test.c
78
memset(dst, 'X', bufsize);
lib/libc/tests/string/strlcpy_test.c
79
assert(strlcpy_fn(dst, src, bufsize) == size-1);
lib/libc/tests/string/strlcpy_test.c
80
assert(bufsize == 0 || strncmp(src, dst, bufsize - 1) == 0);
lib/libc/tests/string/strlcpy_test.c
81
for (x = size; x < bufsize; x++)
lib/libc/tests/string/wcsnlen_test.c
61
size_t size, len, bufsize;
lib/libc/tests/string/wcsnlen_test.c
66
for (bufsize = 0; bufsize <= size + 10; bufsize++) {
lib/libc/tests/string/wcsnlen_test.c
67
s1 = makebuf(bufsize * sizeof(wchar_t), i);
lib/libc/tests/string/wcsnlen_test.c
68
wmemcpy(s1, s, bufsize <= size ? bufsize : size);
lib/libc/tests/string/wcsnlen_test.c
69
len = (size > bufsize) ? bufsize : size - 1;
lib/libc/tests/string/wcsnlen_test.c
70
ATF_CHECK(wcsnlen(s1, bufsize) == len);
lib/libcam/camlib.c
278
int fd, bufsize;
lib/libcam/camlib.c
294
bufsize = sizeof(struct dev_match_result);
lib/libcam/camlib.c
295
ccb.cdm.match_buf_len = bufsize;
lib/libcam/camlib.c
296
ccb.cdm.matches = (struct dev_match_result *)malloc(bufsize);
lib/libcasper/services/cap_grp/cap_grp.c
150
size_t bufsize)
lib/libcasper/services/cap_grp/cap_grp.c
160
&bufsize);
lib/libcasper/services/cap_grp/cap_grp.c
164
&bufsize);
lib/libcasper/services/cap_grp/cap_grp.c
168
error = group_unpack_members(nvl, &grp->gr_mem, &buffer, &bufsize);
lib/libcasper/services/cap_grp/cap_grp.c
177
gid_t gid, struct group *grp, char *buffer, size_t bufsize,
lib/libcasper/services/cap_grp/cap_grp.c
221
error = group_unpack(nvl, grp, buffer, bufsize);
lib/libcasper/services/cap_grp/cap_grp.c
225
assert(bufsize == gbufsize);
lib/libcasper/services/cap_grp/cap_grp.c
231
bufsize = gbufsize;
lib/libcasper/services/cap_grp/cap_grp.c
288
size_t bufsize, struct group **result)
lib/libcasper/services/cap_grp/cap_grp.c
292
bufsize, result));
lib/libcasper/services/cap_grp/cap_grp.c
297
char *buffer, size_t bufsize, struct group **result)
lib/libcasper/services/cap_grp/cap_grp.c
301
bufsize, result));
lib/libcasper/services/cap_grp/cap_grp.c
306
size_t bufsize, struct group **result)
lib/libcasper/services/cap_grp/cap_grp.c
310
bufsize, result));
lib/libcasper/services/cap_grp/cap_grp.h
46
size_t bufsize, struct group **result);
lib/libcasper/services/cap_grp/cap_grp.h
48
char *buffer, size_t bufsize, struct group **result);
lib/libcasper/services/cap_grp/cap_grp.h
50
char *buffer, size_t bufsize, struct group **result);
lib/libcasper/services/cap_grp/cap_grp.h
80
#define cap_getgrent_r(chan, grp, buffer, bufsize, result) \
lib/libcasper/services/cap_grp/cap_grp.h
81
getgrent_r(grp, buffer, bufsize, result)
lib/libcasper/services/cap_grp/cap_grp.h
82
#define cap_getgrnam_r(chan, name, grp, buffer, bufsize, result) \
lib/libcasper/services/cap_grp/cap_grp.h
83
getgrnam_r(name, grp, buffer, bufsize, result)
lib/libcasper/services/cap_grp/cap_grp.h
84
#define cap_getgrgid_r(chan, gid, grp, buffer, bufsize, result) \
lib/libcasper/services/cap_grp/cap_grp.h
85
getgrgid_r(gid, grp, buffer, bufsize, result)
lib/libcasper/services/cap_pwd/cap_pwd.c
102
&bufsize);
lib/libcasper/services/cap_pwd/cap_pwd.c
109
&bufsize);
lib/libcasper/services/cap_pwd/cap_pwd.c
113
&bufsize);
lib/libcasper/services/cap_pwd/cap_pwd.c
117
&bufsize);
lib/libcasper/services/cap_pwd/cap_pwd.c
121
&bufsize);
lib/libcasper/services/cap_pwd/cap_pwd.c
125
&bufsize);
lib/libcasper/services/cap_pwd/cap_pwd.c
136
uid_t uid, struct passwd *pwd, char *buffer, size_t bufsize,
lib/libcasper/services/cap_pwd/cap_pwd.c
180
error = passwd_unpack(nvl, pwd, buffer, bufsize);
lib/libcasper/services/cap_pwd/cap_pwd.c
184
assert(bufsize == gbufsize);
lib/libcasper/services/cap_pwd/cap_pwd.c
190
bufsize = gbufsize;
lib/libcasper/services/cap_pwd/cap_pwd.c
247
size_t bufsize, struct passwd **result)
lib/libcasper/services/cap_pwd/cap_pwd.c
251
bufsize, result));
lib/libcasper/services/cap_pwd/cap_pwd.c
256
char *buffer, size_t bufsize, struct passwd **result)
lib/libcasper/services/cap_pwd/cap_pwd.c
260
bufsize, result));
lib/libcasper/services/cap_pwd/cap_pwd.c
265
size_t bufsize, struct passwd **result)
lib/libcasper/services/cap_pwd/cap_pwd.c
269
bufsize, result));
lib/libcasper/services/cap_pwd/cap_pwd.c
92
size_t bufsize)
lib/libcasper/services/cap_pwd/cap_pwd.h
101
return (getpwnam_r(name, pwd, buffer, bufsize, result));
lib/libcasper/services/cap_pwd/cap_pwd.h
106
char *buffer, size_t bufsize, struct passwd **result)
lib/libcasper/services/cap_pwd/cap_pwd.h
109
return (getpwuid_r(uid, pwd, buffer, bufsize, result));
lib/libcasper/services/cap_pwd/cap_pwd.h
46
size_t bufsize, struct passwd **result);
lib/libcasper/services/cap_pwd/cap_pwd.h
48
char *buffer, size_t bufsize, struct passwd **result);
lib/libcasper/services/cap_pwd/cap_pwd.h
50
char *buffer, size_t bufsize, struct passwd **result);
lib/libcasper/services/cap_pwd/cap_pwd.h
90
size_t bufsize, struct passwd **result)
lib/libcasper/services/cap_pwd/cap_pwd.h
93
return (getpwent_r(pwd, buffer, bufsize, result));
lib/libcasper/services/cap_pwd/cap_pwd.h
98
struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result)
lib/libdevdctl/event.cc
433
const size_t bufsize = 32; // Long enough for a 64-bit int
lib/libdevdctl/event.cc
435
char timebuf[bufsize];
lib/libdevdctl/event.cc
440
snprintf(timebuf, bufsize, " timestamp=%" PRId64,
lib/libfetch/common.c
1394
conn->bufsize = MIN_BUF_SIZE;
lib/libfetch/common.c
1407
if (conn->buflen == conn->bufsize) {
lib/libfetch/common.c
1409
tmpsize = conn->bufsize * 2 + 1;
lib/libfetch/common.c
1415
conn->bufsize = tmpsize;
lib/libfetch/common.h
52
size_t bufsize; /* buffer size */
lib/libfetch/http.c
134
size_t bufsize; /* size of chunk buffer */
lib/libfetch/http.c
196
if (io->bufsize >= len)
lib/libfetch/http.c
202
io->bufsize = len;
lib/libfetch/http.c
498
size_t bufsize; /* buffer size */
lib/libfetch/http.c
506
buf->bufsize = 0;
lib/libfetch/http.c
542
if (hbuf->bufsize < conn->buflen + 1) {
lib/libfetch/http.c
545
hbuf->bufsize = conn->buflen + 1;
lib/libfetch/http.c
570
if (hbuf->bufsize < len + 1) {
lib/libfetch/http.c
574
hbuf->bufsize = len + 1;
lib/libprocstat/libprocstat.c
1716
size_t bufsize;
lib/libprocstat/libprocstat.c
1722
argvec_alloc(size_t bufsize)
lib/libprocstat/libprocstat.c
1729
av->bufsize = bufsize;
lib/libprocstat/libprocstat.c
1730
av->buf = malloc(av->bufsize);
lib/libprocstat/libprocstat.c
1790
} else if (av->bufsize < nchr) {
lib/libstdbuf/stdbuf.c
54
size_t bufsize;
lib/libstdbuf/stdbuf.c
57
bufsize = 0;
lib/libstdbuf/stdbuf.c
64
bufsize = 0;
lib/libstdbuf/stdbuf.c
72
bufsize = strtol(bufmode, &unit, 0);
lib/libstdbuf/stdbuf.c
78
bufsize *= 1024 * 1024 * 1024;
lib/libstdbuf/stdbuf.c
81
bufsize *= 1024 * 1024;
lib/libstdbuf/stdbuf.c
84
bufsize *= 1024;
lib/libstdbuf/stdbuf.c
95
if (setvbuf(s, NULL, mode, bufsize) != 0)
lib/libsys/_libsys.h
791
ssize_t __sys_readlinkat(int fd, const char * path, char * buf, size_t bufsize);
lib/libsys/_libsys.h
842
int __sys_getfsstat(struct statfs * buf, long bufsize, int mode);
lib/libsys/_libsys.h
852
int __sys_fhreadlink(struct fhandle * fhp, char * buf, size_t bufsize);
lib/libusb/libusb.h
512
int libusb_get_port_numbers(libusb_device *dev, uint8_t *buf, uint8_t bufsize);
lib/libusb/libusb.h
513
int libusb_get_port_path(libusb_context *ctx, libusb_device *dev, uint8_t *buf, uint8_t bufsize);
lib/libusb/libusb01.c
114
uint32_t bufsize;
lib/libusb/libusb01.c
128
bufsize = 256;
lib/libusb/libusb01.c
130
bufsize = 4096;
lib/libusb/libusb01.c
132
bufsize = 65536;
lib/libusb/libusb01.c
134
bufsize = 131072;
lib/libusb/libusb01.c
136
bufsize = 16384;
lib/libusb/libusb01.c
144
err = libusb20_tr_open(xfer, bufsize, 1, ep_no);
lib/libusb/libusb10.c
486
libusb_get_port_numbers(libusb_device *dev, uint8_t *buf, uint8_t bufsize)
lib/libusb/libusb10.c
488
return (libusb20_dev_get_port_path(dev->os_priv, buf, bufsize));
lib/libusb/libusb10.c
493
uint8_t bufsize)
lib/libusb/libusb10.c
495
return (libusb20_dev_get_port_path(dev->os_priv, buf, bufsize));
lib/libusb/libusb20.c
750
libusb20_dev_get_port_path(struct libusb20_device *pdev, uint8_t *buf, uint8_t bufsize)
lib/libusb/libusb20.c
757
if (bufsize < 2)
lib/libusb/libusb20.c
765
if (pdev->port_level > bufsize)
lib/libusb/libusb20.h
263
int libusb20_dev_get_port_path(struct libusb20_device *pdev, uint8_t *buf, uint8_t bufsize);
lib/libvmmapi/vmmapi.c
435
size_t bufsize)
lib/libvmmapi/vmmapi.c
446
n = strlcpy(namebuf, memseg.name, bufsize);
lib/libvmmapi/vmmapi.c
447
if (n >= bufsize) {
lib/nss_tacplus/nss_tacplus.c
101
if (len > *bufsize) {
lib/nss_tacplus/nss_tacplus.c
107
*bufsize -= len;
lib/nss_tacplus/nss_tacplus.c
113
size_t bufsize)
lib/nss_tacplus/nss_tacplus.c
153
pwd->pw_name = tacplus_copystr(name, &buffer, &bufsize);
lib/nss_tacplus/nss_tacplus.c
158
pwd->pw_passwd = tacplus_copystr("*", &buffer, &bufsize);
lib/nss_tacplus/nss_tacplus.c
159
if (2 > bufsize)
lib/nss_tacplus/nss_tacplus.c
198
&bufsize);
lib/nss_tacplus/nss_tacplus.c
205
&bufsize);
lib/nss_tacplus/nss_tacplus.c
212
&bufsize);
lib/nss_tacplus/nss_tacplus.c
219
&bufsize);
lib/nss_tacplus/nss_tacplus.c
230
pwd->pw_class = tacplus_copystr(DEF_CLASS, &buffer, &bufsize);
lib/nss_tacplus/nss_tacplus.c
238
pwd->pw_dir = tacplus_copystr(DEF_DIR, &buffer, &bufsize);
lib/nss_tacplus/nss_tacplus.c
244
pwd->pw_shell = tacplus_copystr(DEF_SHELL, &buffer, &bufsize);
lib/nss_tacplus/nss_tacplus.c
258
size_t bufsize = va_arg(ap, size_t);
lib/nss_tacplus/nss_tacplus.c
263
ret = tacplus_getpwnam_r(name, pwd, buffer, bufsize);
lib/nss_tacplus/nss_tacplus.c
286
size_t bufsize __unused = va_arg(ap, size_t);
lib/nss_tacplus/nss_tacplus.c
96
tacplus_copystr(const char *str, char **buffer, size_t *bufsize)
lib/virtual_oss/bt/bt.c
363
int bufsize __unused, int *pchannels, int *pformat, struct bt_config *cfg,
lib/virtual_oss/bt/bt.c
617
int bufsize, int *pchannels, int *pformat)
lib/virtual_oss/bt/bt.c
624
retval = bt_open(pbe, devname, samplerate, bufsize, pchannels, pformat,
lib/virtual_oss/bt/bt.c
633
int bufsize, int *pchannels, int *pformat)
lib/virtual_oss/bt/bt.c
640
retval = bt_open(pbe, devname, samplerate, bufsize, pchannels, pformat,
lib/virtual_oss/null/null.c
48
int samplerate __unused, int bufsize __unused, int *pchannels __unused,
lib/virtual_oss/oss/oss.c
102
bufsize /= temp; /* get buffer size per channel */
lib/virtual_oss/oss/oss.c
121
temp = bufsize * (*pchannels);
lib/virtual_oss/oss/oss.c
136
int bufsize, int *pchannels, int *pformat)
lib/virtual_oss/oss/oss.c
138
return (oss_open(pbe, devname, samplerate, bufsize, pchannels, pformat, O_RDONLY, 0));
lib/virtual_oss/oss/oss.c
143
int bufsize, int *pchannels, int *pformat)
lib/virtual_oss/oss/oss.c
145
bufsize *= 4; /* XXX allow extra space for jitter */
lib/virtual_oss/oss/oss.c
146
return (oss_open(pbe, devname, samplerate, bufsize, pchannels, pformat, O_WRONLY, 0));
lib/virtual_oss/oss/oss.c
81
int bufsize, int *pchannels, int *pformat, int attr, int fionbio)
lib/virtual_oss/sndio/sndio.c
100
int samplerate, int bufsize, int *pchannels, int *pformat, int direction)
lib/virtual_oss/sndio/sndio.c
129
par.appbufsz = bufsize;
lib/virtual_oss/sndio/sndio.c
159
int samplerate, int bufsize, int *pchannels, int *pformat)
lib/virtual_oss/sndio/sndio.c
161
return (sndio_open(pbe, devname, samplerate, bufsize, pchannels, pformat, SIO_PLAY));
lib/virtual_oss/sndio/sndio.c
166
int samplerate, int bufsize, int *pchannels, int *pformat)
lib/virtual_oss/sndio/sndio.c
168
return (sndio_open(pbe, devname, samplerate, bufsize, pchannels, pformat, SIO_REC));
libexec/rtld-elf/rtld_printf.c
433
rtld_snprintf(char *buf, size_t bufsize, const char *fmt, ...)
libexec/rtld-elf/rtld_printf.c
439
retval = rtld_vsnprintf(buf, bufsize, fmt, ap);
libexec/rtld-elf/rtld_printf.c
445
rtld_vsnprintf(char *buf, size_t bufsize, const char *fmt, va_list ap)
libexec/rtld-elf/rtld_printf.c
452
info.buf_total = info.remain = bufsize;
libexec/rtld-elf/rtld_printf.h
35
int rtld_snprintf(char *buf, size_t bufsize, const char *fmt, ...)
libexec/rtld-elf/rtld_printf.h
37
int rtld_vsnprintf(char *buf, size_t bufsize, const char *fmt, va_list ap);
sbin/camcontrol/camcontrol.c
3681
int bufsize;
sbin/camcontrol/camcontrol.c
3748
bufsize = sizeof(struct dev_match_result) * 20;
sbin/camcontrol/camcontrol.c
3749
matchccb->cdm.match_buf_len = bufsize;
sbin/camcontrol/camcontrol.c
3750
matchccb->cdm.matches=(struct dev_match_result *)malloc(bufsize);
sbin/camcontrol/camcontrol.c
462
int bufsize, fd;
sbin/camcontrol/camcontrol.c
493
bufsize = sizeof(struct dev_match_result) * 100;
sbin/camcontrol/camcontrol.c
494
ccb.cdm.match_buf_len = bufsize;
sbin/camcontrol/camcontrol.c
495
ccb.cdm.matches = (struct dev_match_result *)malloc(bufsize);
sbin/camcontrol/camcontrol.c
8884
int bufsize, fd = -1;
sbin/camcontrol/camcontrol.c
8902
bufsize = sizeof(struct dev_match_result) * 100;
sbin/camcontrol/camcontrol.c
8903
ccb.cdm.match_buf_len = bufsize;
sbin/camcontrol/camcontrol.c
8904
ccb.cdm.matches = (struct dev_match_result *)malloc(bufsize);
sbin/hastd/parse.y
734
size_t bufsize;
sbin/hastd/parse.y
758
bufsize = sizeof(buf);
sbin/hastd/parse.y
759
if (sysctlbyname("kern.hostuuid", buf, &bufsize, NULL, 0) < 0) {
sbin/hastd/parse.y
769
bufsize = sizeof(hostid);
sbin/hastd/parse.y
770
if (sysctlbyname("kern.hostid", &hostid, &bufsize, NULL, 0) < 0) {
sbin/hastd/parse.y
804
size_t bufsize;
sbin/hastd/parse.y
824
bufsize = sizeof(buf);
sbin/hastd/parse.y
825
if (sysctlbyname("kern.hostuuid", buf, &bufsize, NULL, 0) < 0) {
sbin/hastd/parse.y
833
bufsize = sizeof(hostid);
sbin/hastd/parse.y
834
if (sysctlbyname("kern.hostid", &hostid, &bufsize, NULL, 0) < 0) {
sbin/ifconfig/ifieee80211.c
3671
copy_essid(char buf[], size_t bufsize, const u_int8_t *essid, size_t essid_len)
sbin/ifconfig/ifieee80211.c
3677
if (essid_len > bufsize)
sbin/ifconfig/ifieee80211.c
3678
maxlen = bufsize;
sbin/ifconfig/ifieee80211.c
3687
if (bufsize < 3)
sbin/ifconfig/ifieee80211.c
3689
strlcpy(buf, "0x", bufsize);
sbin/ifconfig/ifieee80211.c
3690
bufsize -= 2;
sbin/ifconfig/ifieee80211.c
3692
for (i = 0; i < maxlen && bufsize >= 2; i++) {
sbin/ifconfig/ifieee80211.c
3694
bufsize -= 2;
sbin/init/init.c
635
size_t bufsize;
sbin/init/init.c
653
bufsize = sb.st_size;
sbin/init/init.c
654
buf = malloc(bufsize);
sbin/init/init.c
661
nbytes = read(fd, buf, bufsize);
sbin/init/init.c
662
if (nbytes != (ssize_t)bufsize) {
sbin/init/init.c
677
*bufsizep = bufsize;
sbin/init/init.c
683
create_file(const char *path, const void *buf, size_t bufsize)
sbin/init/init.c
694
nbytes = write(fd, buf, bufsize);
sbin/init/init.c
695
if (nbytes != (ssize_t)bufsize) {
sbin/init/init.c
745
size_t bufsize;
sbin/init/init.c
749
bufsize = 0;
sbin/init/init.c
769
error = read_file(init_path_argv0, &buf, &bufsize);
sbin/init/init.c
775
error = create_file(_PATH_REROOT_INIT, buf, bufsize);
sbin/ipf/ipmon/ipmon.c
447
read_log(int fd, int *lenp, char *buf, int bufsize)
sbin/ipf/ipmon/ipmon.c
451
if (bufsize > IPFILTER_LOGSIZE)
sbin/ipf/ipmon/ipmon.c
452
bufsize = IPFILTER_LOGSIZE;
sbin/ipf/ipmon/ipmon.c
454
nr = read(fd, buf, bufsize);
sbin/ipf/ipsend/sbpf.c
107
if (ioctl(fd, BIOCGBLEN, &bufsize) == -1)
sbin/ipf/ipsend/sbpf.c
112
buf = (u_char*)malloc(bufsize);
sbin/ipf/ipsend/sbpf.c
47
static int bufsize = 0, timeout = 1;
sbin/ipf/libipf/save_v1trap.c
289
maketrap_v1(char *community, u_char *buffer, int bufsize, u_char *msg,
sbin/ipf/libipf/save_v1trap.c
305
if (basesize + 8 > bufsize)
sbin/ipf/libipf/save_v1trap.c
308
memset(buffer, 0xff, bufsize);
sbin/ipf/libipf/save_v2trap.c
291
maketrap_v2(char *community, u_char *buffer, int bufsize, u_char *msg,
sbin/ipf/libipf/save_v2trap.c
308
if (basesize + 8 > bufsize)
sbin/ipf/libipf/save_v2trap.c
311
memset(buffer, 0xff, bufsize);
sbin/ipfw/ipfw2.c
824
concat_tokens(char *buf, size_t bufsize, struct _s_x *table,
sbin/ipfw/ipfw2.c
832
l = snprintf(buf + sz, bufsize - sz, "%s%s",
sbin/ipfw/ipfw2.c
835
bufsize += l;
sbin/ipfw/ipfw2.c
836
if (sz > bufsize)
sbin/ipfw/ipfw2.c
837
return (bufsize);
sbin/ipfw/ipfw2.h
368
size_t concat_tokens(char *buf, size_t bufsize, struct _s_x *table,
sbin/ipfw/tables.c
1808
table_show_value(char *buf, size_t bufsize, ipfw_table_value *v,
sbin/ipfw/tables.c
1817
sz = bufsize;
sbin/ipfw/tables.c
1890
if (sz != bufsize)
sbin/ipfw/tables.c
67
static void table_show_value(char *buf, size_t bufsize, ipfw_table_value *v,
sbin/ipfw/tables.c
775
table_print_valheader(char *buf, size_t bufsize, uint32_t vmask)
sbin/ipfw/tables.c
779
snprintf(buf, bufsize, "legacy");
sbin/ipfw/tables.c
783
memset(buf, 0, bufsize);
sbin/ipfw/tables.c
784
print_flags_buffer(buf, bufsize, tablevaltypes, vmask);
sbin/mount_unionfs/mount_unionfs.c
102
snprintf(buf, bufsize, "%d", pw->pw_uid);
sbin/mount_unionfs/mount_unionfs.c
109
strncpy(buf, s, bufsize);
sbin/mount_unionfs/mount_unionfs.c
77
parse_gid(const char *s, char *buf, size_t bufsize)
sbin/mount_unionfs/mount_unionfs.c
83
snprintf(buf, bufsize, "%d", gr->gr_gid);
sbin/mount_unionfs/mount_unionfs.c
90
strncpy(buf, s, bufsize);
sbin/mount_unionfs/mount_unionfs.c
96
parse_uid(const char *s, char *buf, size_t bufsize)
sbin/ping/ping6.c
1819
ssize_t bufsize;
sbin/ping/ping6.c
1823
bufsize = 0;
sbin/ping/ping6.c
1830
bufsize = CONTROLLEN - ((caddr_t)CMSG_DATA(cm) - (caddr_t)bufp);
sbin/ping/ping6.c
1831
if (bufsize <= 0)
sbin/ping/ping6.c
1836
pr_ip6opt(CMSG_DATA(cm), (size_t)bufsize);
sbin/ping/ping6.c
1843
pr_ip6opt(CMSG_DATA(cm), (size_t)bufsize);
sbin/ping/ping6.c
1847
pr_rthdr(CMSG_DATA(cm), (size_t)bufsize);
sbin/ping/ping6.c
1854
pr_ip6opt(void *extbuf, size_t bufsize)
sbin/ping/ping6.c
1874
if (bufsize < (extlen + CMSG_SPACE(0))) {
sbin/ping/ping6.c
1875
extlen = bufsize - CMSG_SPACE(0);
sbin/ping/ping6.c
1916
pr_rthdr(void *extbuf, size_t bufsize)
sbin/ping/ping6.c
1944
if (bufsize < (rthsize + CMSG_SPACE(0))) {
sbin/ping/ping6.c
1948
segments -= (rthsize - (bufsize - CMSG_SPACE(0))) /
sbin/rcorder/rcorder.c
713
size_t bufsize;
sbin/rcorder/rcorder.c
740
bufsize = 1; /* tralining \0 */
sbin/rcorder/rcorder.c
743
bufsize += strlen(revstack[stack_depth - 1]);
sbin/rcorder/rcorder.c
746
bufsize += strlen(revstack[stack_depth - 2]);
sbin/rcorder/rcorder.c
754
bufsize += strlen(revstack[i]);
sbin/rcorder/rcorder.c
756
bufsize += strlen(" -> ") * (stack_depth - 1);
sbin/rcorder/rcorder.c
758
buf = emalloc(bufsize);
sbin/rcorder/rcorder.c
759
bzero(buf, bufsize);
sbin/rcorder/rcorder.c
762
strlcat(buf, revstack[i], bufsize);
sbin/rcorder/rcorder.c
764
strlcat(buf, " -> ", bufsize);
sbin/restore/dirs.c
559
int bufsize;
sbin/restore/dirs.c
581
bufsize = 0;
sbin/restore/dirs.c
593
if (bufsize < node.extsize) {
sbin/restore/dirs.c
594
if (bufsize > 0)
sbin/restore/dirs.c
597
bufsize = node.extsize;
sbin/restore/dirs.c
599
bufsize = 0;
sbin/restore/dirs.c
602
if (bufsize >= node.extsize) {
sbin/restore/dirs.c
647
if (bufsize >= node.extsize) {
sbin/restore/dirs.c
660
if (bufsize > 0)
sbin/route/route_netlink.c
394
print_prefix(struct nl_helper *h, char *buf, int bufsize, struct sockaddr *sa, int plen)
sbin/route/route_netlink.c
399
snprintf(buf, bufsize, "<NULL>");
sbin/route/route_netlink.c
410
sz = snprintf(buf, bufsize, "%s", abuf);
sbin/route/route_netlink.c
429
sz = snprintf(buf, bufsize, "%s", abuf);
sbin/route/route_netlink.c
431
sz = snprintf(buf, bufsize, "%s%%%s", abuf, ifname);
sbin/route/route_netlink.c
435
snprintf(buf, bufsize, "unknown_af#%d", sa->sa_family);
sbin/route/route_netlink.c
440
snprintf(buf + sz, bufsize - sz, "/%d", plen);
sbin/routed/parms.c
427
u_int bufsize)
sbin/routed/parms.c
433
buf,bufsize)
sbin/routed/parms.c
434
|| buf[bufsize-1] != '\0'
sbin/routed/parms.c
435
|| buf[bufsize-2] != '\0') {
sbin/swapon/swapon.c
796
sizetobuf(char *buf, size_t bufsize, int hflag, long long val, int hlen,
sbin/swapon/swapon.c
804
snprintf(buf, bufsize, "%*s", hlen, tmp);
sbin/swapon/swapon.c
806
snprintf(buf, bufsize, "%*lld", hlen, val / blocksize);
sbin/umount/umount.c
612
size_t bufsize;
sbin/umount/umount.c
618
bufsize = (mntsize + 1) * sizeof(struct statfs);
sbin/umount/umount.c
619
if ((origbuf = malloc(bufsize)) == NULL)
sbin/umount/umount.c
621
mntsize = getfsstat(origbuf, (long)bufsize, MNT_NOWAIT);
stand/efi/boot1/boot1.c
65
size_t bufsize, cmdsize;
stand/efi/boot1/boot1.c
84
status = mod->load(PATH_DOTCONFIG, dev, &buf, &bufsize);
stand/efi/boot1/boot1.c
86
status = mod->load(PATH_CONFIG, dev, &buf, &bufsize);
stand/efi/boot1/boot1.c
88
cmdsize = bufsize + 1;
stand/efi/boot1/boot1.c
92
memcpy(cmd, buf, bufsize);
stand/efi/boot1/boot1.c
93
cmd[bufsize] = '\0';
stand/efi/boot1/boot_module.h
88
void **buf, size_t *bufsize);
stand/efi/boot1/proto.c
131
size_t *bufsize, int preferred)
stand/efi/boot1/proto.c
143
if (mod->load(PATH_LOADER_EFI, dev, bufp, bufsize) ==
stand/efi/boot1/ufs_module.c
138
load(const char *filepath, dev_info_t *dev, void **bufp, size_t *bufsize)
stand/efi/boot1/ufs_module.c
185
*bufsize = size;
stand/efi/boot1/zfs_module.c
139
load(const char *filepath, dev_info_t *devinfo, void **bufp, size_t *bufsize)
stand/efi/boot1/zfs_module.c
239
*bufsize = st.st_size;
sys/amd64/linux/linux_proto.h
377
char bufsize_l_[PADL_(l_ulong)]; l_ulong bufsize; char bufsize_r_[PADR_(l_ulong)];
sys/amd64/linux/linux_systrace_args.c
703
iarg[a++] = p->bufsize; /* l_ulong */
sys/amd64/linux32/linux32_proto.h
602
char bufsize_l_[PADL_(l_ulong)]; l_ulong bufsize; char bufsize_r_[PADR_(l_ulong)];
sys/amd64/linux32/linux32_proto.h
888
char bufsize_l_[PADL_(size_t)]; size_t bufsize; char bufsize_r_[PADR_(size_t)];
sys/amd64/linux32/linux32_proto.h
893
char bufsize_l_[PADL_(size_t)]; size_t bufsize; char bufsize_r_[PADR_(size_t)];
sys/amd64/linux32/linux32_systrace_args.c
1267
iarg[a++] = p->bufsize; /* l_ulong */
sys/amd64/linux32/linux32_systrace_args.c
1870
uarg[a++] = p->bufsize; /* size_t */
sys/amd64/linux32/linux32_systrace_args.c
1879
uarg[a++] = p->bufsize; /* size_t */
sys/arm/allwinner/a10_codec.c
681
unsigned bufsize;
sys/arm/allwinner/a10_codec.c
683
bufsize = ch->buffer->bufsize;
sys/arm/allwinner/a10_codec.c
686
if (ch->pos >= bufsize)
sys/arm/allwinner/a10_codec.c
687
ch->pos -= bufsize;
sys/arm/allwinner/aw_i2s.c
533
size = play_buf->bufsize;
sys/arm/allwinner/aw_i2s.c
559
size = rec_buf->bufsize;
sys/arm/broadcom/bcm2835/bcm2835_audio.c
502
ch->buffer->bufsize
sys/arm/broadcom/bcm2835/bcm2835_audio.c
628
unsigned int bsize = ch->buffer->bufsize;
sys/arm/broadcom/bcm2835/bcm2835_audio.c
649
ch->buffer->bufsize);
sys/arm/broadcom/bcm2835/bcm2835_audio.c
650
size = ch->buffer->bufsize;
sys/arm/broadcom/bcm2835/bcm2835_audio.c
708
ch->buffer->bufsize;
sys/arm/broadcom/bcm2835/bcm2835_gpio.c
210
bcm_gpio_func_str(uint32_t nfunc, char *buf, int bufsize)
sys/arm/broadcom/bcm2835/bcm2835_gpio.c
215
strncpy(buf, "input", bufsize);
sys/arm/broadcom/bcm2835/bcm2835_gpio.c
218
strncpy(buf, "output", bufsize);
sys/arm/broadcom/bcm2835/bcm2835_gpio.c
221
strncpy(buf, "alt0", bufsize);
sys/arm/broadcom/bcm2835/bcm2835_gpio.c
224
strncpy(buf, "alt1", bufsize);
sys/arm/broadcom/bcm2835/bcm2835_gpio.c
227
strncpy(buf, "alt2", bufsize);
sys/arm/broadcom/bcm2835/bcm2835_gpio.c
230
strncpy(buf, "alt3", bufsize);
sys/arm/broadcom/bcm2835/bcm2835_gpio.c
233
strncpy(buf, "alt4", bufsize);
sys/arm/broadcom/bcm2835/bcm2835_gpio.c
236
strncpy(buf, "alt5", bufsize);
sys/arm/broadcom/bcm2835/bcm2835_gpio.c
239
strncpy(buf, "invalid", bufsize);
sys/arm/freescale/imx/imx6_ssi.c
411
int bufsize;
sys/arm/freescale/imx/imx6_ssi.c
418
bufsize = ch->buffer->bufsize;
sys/arm/freescale/imx/imx6_ssi.c
421
if (sc->pos >= bufsize)
sys/arm/freescale/imx/imx6_ssi.c
422
sc->pos -= bufsize;
sys/arm64/coresight/coresight.h
125
uint32_t bufsize;
sys/arm64/coresight/coresight_tmc.c
170
bus_write_4(sc->res, TMC_RSZ, event->etr.bufsize / 4);
sys/arm64/linux/linux_proto.h
104
char bufsize_l_[PADL_(l_ulong)]; l_ulong bufsize; char bufsize_r_[PADR_(l_ulong)];
sys/arm64/linux/linux_systrace_args.c
133
iarg[a++] = p->bufsize; /* l_ulong */
sys/arm64/rockchip/rk_i2s.c
406
size = play_buf->bufsize;
sys/arm64/rockchip/rk_i2s.c
429
size = rec_buf->bufsize;
sys/arm64/spe/arm_spe_backend.c
174
if (ctx->bufsize % sc->kva_align != 0)
sys/arm64/spe/arm_spe_backend.c
181
if (ctx->bufsize < (2 * PAGE_SIZE))
sys/arm64/spe/arm_spe_backend.c
349
info->buf_size = ctx->bufsize;
sys/arm64/spe/arm_spe_backend.c
436
info->buf_size = ctx->bufsize;
sys/cddl/compat/opensolaris/sys/kmem.h
68
kmem_cache_t *kmem_cache_create(char *name, size_t bufsize, size_t align,
sys/compat/freebsd32/freebsd32_misc.c
352
if (uap->bufsize < 0 || uap->bufsize > SIZE_MAX)
sys/compat/freebsd32/freebsd32_misc.c
354
error = kern_getfsstat(td, &uap->buf, uap->bufsize, &count,
sys/compat/freebsd32/freebsd32_misc.c
371
count = uap->bufsize / sizeof(struct ostatfs32);
sys/compat/freebsd32/freebsd32_misc.c
397
return(kern_freebsd11_getfsstat(td, uap->buf, uap->bufsize,
sys/compat/freebsd32/freebsd32_proto.h
1124
char bufsize_l_[PADL_(int32_t)]; int32_t bufsize; char bufsize_r_[PADR_(int32_t)];
sys/compat/freebsd32/freebsd32_proto.h
634
char bufsize_l_[PADL_(int32_t)]; int32_t bufsize; char bufsize_r_[PADR_(int32_t)];
sys/compat/freebsd32/freebsd32_proto.h
923
char bufsize_l_[PADL_(int32_t)]; int32_t bufsize; char bufsize_r_[PADR_(int32_t)];
sys/compat/freebsd32/freebsd32_systrace_args.c
2580
uarg[a++] = p->bufsize; /* size_t */
sys/compat/freebsd32/freebsd32_systrace_args.c
3049
iarg[a++] = p->bufsize; /* int32_t */
sys/compat/freebsd32/freebsd32_systrace_args.c
3155
uarg[a++] = p->bufsize; /* size_t */
sys/compat/linux/linux_getcwd.c
62
buflen = uap->bufsize;
sys/compat/linux/linux_stats.c
420
if (args->bufsize != sizeof(struct l_statfs64))
sys/compat/linux/linux_stats.c
440
if (args->bufsize != sizeof(struct l_statfs64))
sys/compat/linuxkpi/common/include/linux/usb.h
289
struct usb_host_endpoint *uhe, usb_frlength_t bufsize);
sys/compat/linuxkpi/common/include/net/cfg80211.h
2181
char *buf, size_t bufsize, const char __user *userbuf, size_t count,
sys/compat/linuxkpi/common/include/net/cfg80211.h
2193
char *buf, size_t bufsize, const char __user *userbuf, size_t count,
sys/compat/linuxkpi/common/src/linux_usb.c
774
struct usb_host_endpoint *uhe, usb_size_t bufsize)
sys/compat/linuxkpi/common/src/linux_usb.c
780
if (uhe->fbsd_buf_size == bufsize) {
sys/compat/linuxkpi/common/src/linux_usb.c
786
uhe->fbsd_buf_size = bufsize;
sys/compat/linuxkpi/common/src/linux_usb.c
788
if (bufsize == 0) {
sys/compat/linuxkpi/common/src/linux_usb.c
803
cfg[0].bufsize = 0; /* use wMaxPacketSize */
sys/compat/linuxkpi/common/src/linux_usb.c
827
if (bufsize > (1 << 22)) {
sys/compat/linuxkpi/common/src/linux_usb.c
829
bufsize = (1 << 22);
sys/compat/linuxkpi/common/src/linux_usb.c
837
cfg[0].bufsize = bufsize;
sys/crypto/via/padlock_hash.c
172
padlock_sha_update(void *vctx, const void *buf, u_int bufsize)
sys/crypto/via/padlock_hash.c
177
if (ctx->psc_size - ctx->psc_offset < bufsize) {
sys/crypto/via/padlock_hash.c
178
ctx->psc_size = MAX(ctx->psc_size * 2, ctx->psc_size + bufsize);
sys/crypto/via/padlock_hash.c
184
bcopy(buf, ctx->psc_buf + ctx->psc_offset, bufsize);
sys/crypto/via/padlock_hash.c
185
ctx->psc_offset += bufsize;
sys/crypto/via/padlock_hash.c
75
static int padlock_sha_update(void *vctx, const void *buf, u_int bufsize);
sys/ddb/db_capture.c
167
SYSCTL_PROC(_debug_ddb_capture, OID_AUTO, bufsize,
sys/dev/bwn/if_bwn.c
3032
struct bwn_dmadesc_generic *desc, bus_addr_t dmaaddr, uint16_t bufsize,
sys/dev/bwn/if_bwn.c
3051
ctl = bufsize & BWN_DMA32_DCTL_BYTECNT;
sys/dev/bwn/if_bwn.c
3125
struct bwn_dmadesc_generic *desc, bus_addr_t dmaaddr, uint16_t bufsize,
sys/dev/bwn/if_bwn.c
3161
ctl1 |= bufsize & BWN_DMA64_DCTL1_BYTECNT;
sys/dev/ciss/ciss.c
168
int opcode, void **bufp, size_t bufsize);
sys/dev/ciss/ciss.c
2604
int opcode, void **bufp, size_t bufsize)
sys/dev/ciss/ciss.c
2628
if ((bufsize > 0) && (bufp != NULL)) {
sys/dev/ciss/ciss.c
2630
if ((buf = malloc(bufsize, CISS_MALLOC_CLASS, M_NOWAIT | M_ZERO)) == NULL) {
sys/dev/ciss/ciss.c
2644
cr->cr_length = bufsize;
sys/dev/ciss/ciss.c
2662
cbc->size = htons((u_int16_t)bufsize);
sys/dev/cxgb/cxgb_ioctl.h
199
uint32_t bufsize;
sys/dev/cxgb/cxgb_ioctl.h
216
uint32_t bufsize;
sys/dev/cxgb/cxgb_main.c
2953
if (la->bufsize < LA_BUFSIZE)
sys/dev/cxgb/cxgb_main.c
2958
&la->bufsize, buf);
sys/dev/cxgb/cxgb_main.c
2960
error = copyout(buf, la->data, la->bufsize);
sys/dev/cxgb/cxgb_main.c
2973
if (ioqs->bufsize < IOQS_BUFSIZE)
sys/dev/cxgb/cxgb_main.c
2977
error = -t3_get_up_ioqs(sc, &ioqs->bufsize, buf);
sys/dev/cxgb/cxgb_main.c
2987
error = copyout(v, ioqs->data, ioqs->bufsize);
sys/dev/hwt/hwt_context.h
60
size_t bufsize; /* Trace bufsize for each vm.*/
sys/dev/hwt/hwt_hook.c
212
size_t bufsize;
sys/dev/hwt/hwt_hook.c
224
bufsize = ctx->bufsize;
sys/dev/hwt/hwt_hook.c
230
error = hwt_thread_alloc(&thr, path, bufsize, kva_req);
sys/dev/hwt/hwt_ioctl.c
153
ctx->bufsize = halloc->bufsize;
sys/dev/hwt/hwt_ioctl.c
222
error = hwt_thread_alloc(&thr, path, ctx->bufsize,
sys/dev/hwt/hwt_ioctl.c
329
ctx->bufsize = halloc->bufsize;
sys/dev/hwt/hwt_ioctl.c
345
error = hwt_vm_alloc(ctx->bufsize, ctx->hwt_backend->kva_req,
sys/dev/hwt/hwt_ioctl.c
390
if (halloc->bufsize > HWT_MAXBUFSIZE)
sys/dev/hwt/hwt_ioctl.c
392
if (halloc->bufsize % PAGE_SIZE)
sys/dev/hwt/hwt_thread.c
113
hwt_thread_alloc(struct hwt_thread **thr0, char *path, size_t bufsize,
sys/dev/hwt/hwt_thread.c
120
error = hwt_vm_alloc(bufsize, kva_req, path, &vm);
sys/dev/hwt/hwt_thread.h
50
int hwt_thread_alloc(struct hwt_thread **thr0, char *path, size_t bufsize,
sys/dev/hwt/hwt_vm.c
480
hwt_vm_alloc(size_t bufsize, int kva_req, char *path, struct hwt_vm **vm0)
sys/dev/hwt/hwt_vm.c
486
vm->npages = bufsize / PAGE_SIZE;
sys/dev/hwt/hwt_vm.h
44
int hwt_vm_alloc(size_t bufsize, int kva_req, char *path, struct hwt_vm **vm0);
sys/dev/iicbus/iiconf.c
552
size_t bufsize;
sys/dev/iicbus/iiconf.c
568
bufsize = buflen + 1;
sys/dev/iicbus/iiconf.c
569
if (bufsize <= sizeof(local_buffer)) {
sys/dev/iicbus/iiconf.c
572
bufptr = malloc(bufsize, M_DEVBUF,
sys/dev/iicbus/iiconf.c
583
msg.len = bufsize;
sys/dev/iwx/if_iwx.c
851
iwx_fw_version_str(char *buf, size_t bufsize,
sys/dev/iwx/if_iwx.c
859
snprintf(buf, bufsize, "%u.%08x.%u", major, minor, api);
sys/dev/iwx/if_iwx.c
861
snprintf(buf, bufsize, "%u.%u.%u", major, minor, api);
sys/dev/malo/if_malo.c
430
int nbuf, size_t bufsize, int ndesc, size_t descsize)
sys/dev/malo/if_malo.c
437
__func__, name, nbuf, (uintmax_t) bufsize,
sys/dev/mfi/mfi.c
904
uint32_t opcode, void **bufp, size_t bufsize)
sys/dev/mfi/mfi.c
922
if ((bufsize > 0) && (bufp != NULL)) {
sys/dev/mfi/mfi.c
924
buf = malloc(bufsize, M_MFIBUF, M_NOWAIT|M_ZERO);
sys/dev/mfi/mfi.c
940
dcmd->header.data_len = bufsize;
sys/dev/mfi/mfi.c
948
cm->cm_len = bufsize;
sys/dev/mge/if_mge.c
1301
uint16_t bufsize;
sys/dev/mge/if_mge.c
1315
bufsize = dw->mge_desc->buff_size;
sys/dev/mge/if_mge.c
1340
bufsize);
sys/dev/mge/if_mge.c
145
uint32_t status, uint16_t bufsize);
sys/dev/mge/if_mge.c
1868
uint32_t status, uint16_t bufsize)
sys/dev/mge/if_mge.c
1876
if ((bufsize & MGE_RX_IP_FRAGMENT) == 0 &&
sys/dev/mlx/mlx.c
101
static void *mlx_enquire(struct mlx_softc *sc, int command, size_t bufsize,
sys/dev/mlx/mlx.c
1587
mlx_enquire(struct mlx_softc *sc, int command, size_t bufsize, void (* complete)(struct mlx_command *mc))
sys/dev/mlx/mlx.c
1602
if ((result = malloc(bufsize, M_DEVBUF, M_NOWAIT)) == NULL)
sys/dev/mlx/mlx.c
1611
mc->mc_length = bufsize;
sys/dev/mwl/if_mwl.c
1927
int nbuf, size_t bufsize, int ndesc, size_t descsize)
sys/dev/mwl/if_mwl.c
1934
__func__, name, nbuf, (uintmax_t) bufsize,
sys/dev/mxge/if_mxge.c
3369
int bufsize = mtu + ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN + MXGEFW_PAD;
sys/dev/mxge/if_mxge.c
3371
if (bufsize < MCLBYTES) {
sys/dev/mxge/if_mxge.c
3379
if (bufsize < MJUMPAGESIZE) {
sys/dev/netmap/netmap_mem2.c
2650
uint32_t bufsize;
sys/dev/netmap/netmap_mem2.c
2674
bufsize = nm_os_pt_memdev_ioread(ptnmd->ptn_dev,
sys/dev/netmap/netmap_mem2.c
2697
vaddr += bufsize;
sys/dev/netmap/netmap_mem2.c
2698
paddr += bufsize;
sys/dev/netmap/netmap_mem2.c
2702
ptnmd->buf_lut.objsize = bufsize;
sys/dev/netmap/netmap_mem2.c
2710
nmd->pools[NETMAP_BUF_POOL]._objsize = bufsize;
sys/dev/otus/if_otus.c
238
.bufsize = 0x200,
sys/dev/otus/if_otus.c
247
.bufsize = OTUS_RXBUFSZ,
sys/dev/otus/if_otus.c
255
.bufsize = OTUS_MAX_CTRLSZ,
sys/dev/otus/if_otus.c
263
.bufsize = OTUS_MAX_CTRLSZ,
sys/dev/random/randomdev.c
167
ssize_t bufsize;
sys/dev/random/randomdev.c
198
bufsize = MIN(sigchk_period, (size_t)uio->uio_resid);
sys/dev/random/randomdev.c
199
random_buf = malloc(bufsize, M_ENTROPY, M_NOWAIT);
sys/dev/random/randomdev.c
201
bufsize = PAGE_SIZE;
sys/dev/random/randomdev.c
202
random_buf = malloc(bufsize, M_ENTROPY, M_WAITOK);
sys/dev/random/randomdev.c
207
read_len = MIN((size_t)uio->uio_resid, bufsize);
sys/dev/rtwn/usb/rtwn_usb_ep.c
112
.bufsize = RTWN_USB_TXBUFSZ,
sys/dev/rtwn/usb/rtwn_usb_ep.c
236
rtwn_config[RTWN_BULK_RX].bufsize =
sys/dev/rtwn/usb/rtwn_usb_ep.c
73
.bufsize = RTWN_USB_TXBUFSZ,
sys/dev/rtwn/usb/rtwn_usb_ep.c
86
.bufsize = RTWN_USB_TXBUFSZ,
sys/dev/rtwn/usb/rtwn_usb_ep.c
99
.bufsize = RTWN_USB_TXBUFSZ,
sys/dev/sound/dummy.c
117
ch->ptr %= ch->buf->bufsize;
sys/dev/sound/macio/aoa.c
77
KASSERT(dma->bufsz == dma->buf->bufsize, ("bad size"));
sys/dev/sound/pci/als4000.c
284
sz = ch->buffer->bufsize;
sys/dev/sound/pci/als4000.c
352
bufsz = ch->buffer->bufsize;
sys/dev/sound/pci/als4000.c
455
bufsz = ch->buffer->bufsize;
sys/dev/sound/pci/cmi.c
261
sz = (u_int32_t)ch->buffer->bufsize;
sys/dev/sound/pci/cmi.c
528
sz = ch->buffer->bufsize;
sys/dev/sound/pci/cs4281.c
331
ch->blksz = ch->buffer->bufsize;
sys/dev/sound/pci/cs4281.c
415
sz = ch->buffer->bufsize;
sys/dev/sound/pci/cs4281.c
498
ch->buffer->bufsize / ch->bps - 1);
sys/dev/sound/pci/es137x.c
664
ch->bufsz = ch->buffer->bufsize;
sys/dev/sound/pci/hdsp.c
188
sc->bufsize = HDSP_DMASEGSIZE;
sys/dev/sound/pci/hdsp.c
197
if (bus_dmamap_load(sc->dmat, sc->pmap, sc->pbuf, sc->bufsize,
sys/dev/sound/pci/hdsp.c
210
if (bus_dmamap_load(sc->dmat, sc->rmap, sc->rbuf, sc->bufsize,
sys/dev/sound/pci/hdsp.c
216
bzero(sc->pbuf, sc->bufsize);
sys/dev/sound/pci/hdsp.c
217
bzero(sc->rbuf, sc->bufsize);
sys/dev/sound/pci/hdsp.h
245
uint32_t bufsize;
sys/dev/sound/pci/hdspe.c
198
sc->bufsize = HDSPE_DMASEGSIZE;
sys/dev/sound/pci/hdspe.c
207
if (bus_dmamap_load(sc->dmat, sc->pmap, sc->pbuf, sc->bufsize,
sys/dev/sound/pci/hdspe.c
220
if (bus_dmamap_load(sc->dmat, sc->rmap, sc->rbuf, sc->bufsize,
sys/dev/sound/pci/hdspe.c
226
bzero(sc->pbuf, sc->bufsize);
sys/dev/sound/pci/hdspe.c
227
bzero(sc->rbuf, sc->bufsize);
sys/dev/sound/pci/hdspe.h
237
uint32_t bufsize;
sys/dev/sound/pci/maestro3.c
111
u_int32_t bufsize;
sys/dev/sound/pci/maestro3.c
1163
delta = pch->bufsize + pch->ptr - pch->prevptr;
sys/dev/sound/pci/maestro3.c
1164
delta %= pch->bufsize;
sys/dev/sound/pci/maestro3.c
1177
delta = rch->bufsize + rch->ptr - rch->prevptr;
sys/dev/sound/pci/maestro3.c
1178
delta %= rch->bufsize;
sys/dev/sound/pci/maestro3.c
125
u_int32_t bufsize;
sys/dev/sound/pci/maestro3.c
447
ch->bufsize = ch->buffer->bufsize;
sys/dev/sound/pci/maestro3.c
458
LO(bus_addr + ch->bufsize));
sys/dev/sound/pci/maestro3.c
460
HI(bus_addr + ch->bufsize));
sys/dev/sound/pci/maestro3.c
826
ch->bufsize = ch->buffer->bufsize;
sys/dev/sound/pci/maestro3.c
837
LO(bus_addr + ch->bufsize));
sys/dev/sound/pci/maestro3.c
839
HI(bus_addr + ch->bufsize));
sys/dev/sound/pci/solo.c
588
ch->buffer->bufsize, ch->dir);
sys/dev/sound/pci/t4dwave.c
560
ch->eso = (ch->buffer->bufsize / ch->buffer->align) - 1;
sys/dev/sound/pci/via82c686.c
229
segs = ch->buffer->bufsize / seg_size;
sys/dev/sound/pci/via82c686.c
388
ptr = (seg * ch->buffer->bufsize / SEGS_PER_CHAN) - len;
sys/dev/sound/pci/vibes.c
331
count = ch->buffer->bufsize / 2; /* DMAC uses words */
sys/dev/sound/pci/vibes.c
363
sz = ch->buffer->bufsize;
sys/dev/sound/pci/vibes.c
407
count = ch->buffer->bufsize;
sys/dev/sound/pci/vibes.c
440
sz = ch->buffer->bufsize;
sys/dev/sound/pcm/buffer.c
125
b->bufsize = b->maxsize;
sys/dev/sound/pcm/buffer.c
159
unsigned int bufsize, allocsize;
sys/dev/sound/pcm/buffer.c
176
bufsize = blkcnt * blksz;
sys/dev/sound/pcm/buffer.c
178
if (bufsize > b->allocsize ||
sys/dev/sound/pcm/buffer.c
179
bufsize < (b->allocsize >> SNDBUF_CACHE_SHIFT)) {
sys/dev/sound/pcm/buffer.c
180
allocsize = round_page(bufsize);
sys/dev/sound/pcm/buffer.c
187
b->allocsize, allocsize, bufsize);
sys/dev/sound/pcm/buffer.c
193
__func__, b, b->allocsize, b->bufsize);
sys/dev/sound/pcm/buffer.c
197
b->bufsize = bufsize;
sys/dev/sound/pcm/buffer.c
208
unsigned int bufsize, allocsize;
sys/dev/sound/pcm/buffer.c
214
bufsize = blksz * blkcnt;
sys/dev/sound/pcm/buffer.c
216
if (bufsize > b->allocsize ||
sys/dev/sound/pcm/buffer.c
217
bufsize < (b->allocsize >> SNDBUF_CACHE_SHIFT)) {
sys/dev/sound/pcm/buffer.c
218
allocsize = round_page(bufsize);
sys/dev/sound/pcm/buffer.c
232
__func__, b, b->allocsize, allocsize, bufsize);
sys/dev/sound/pcm/buffer.c
236
__func__, b, b->allocsize, b->bufsize);
sys/dev/sound/pcm/buffer.c
240
b->bufsize = bufsize;
sys/dev/sound/pcm/buffer.c
241
b->maxsize = bufsize;
sys/dev/sound/pcm/buffer.c
242
b->sl = bufsize;
sys/dev/sound/pcm/buffer.c
266
if (length > b->bufsize)
sys/dev/sound/pcm/buffer.c
267
length = b->bufsize;
sys/dev/sound/pcm/buffer.c
273
p[i % b->bufsize] = data;
sys/dev/sound/pcm/buffer.c
284
if (b->bufsize > 0)
sys/dev/sound/pcm/buffer.c
285
memset(b->buf, sndbuf_zerodata(b->fmt), b->bufsize);
sys/dev/sound/pcm/buffer.c
287
b->rl = b->bufsize;
sys/dev/sound/pcm/buffer.c
293
if (b->bufsize > 0)
sys/dev/sound/pcm/buffer.c
294
memset(b->buf, sndbuf_zerodata(b->fmt), b->bufsize);
sys/dev/sound/pcm/buffer.c
296
b->rl = min(b->bufsize, rl);
sys/dev/sound/pcm/buffer.c
312
if (b->buf && b->bufsize > 0)
sys/dev/sound/pcm/buffer.c
313
sndbuf_clear(b, b->bufsize);
sys/dev/sound/pcm/buffer.c
326
if (b->buf && b->bufsize > 0)
sys/dev/sound/pcm/buffer.c
327
sndbuf_clear(b, b->bufsize);
sys/dev/sound/pcm/buffer.c
349
KASSERT(ofs < b->bufsize, ("%s: ofs invalid %d", __func__, ofs));
sys/dev/sound/pcm/buffer.c
375
KASSERT((b->rl >= 0) && (b->rl <= b->bufsize), ("%s: b->rl invalid %d", __func__, b->rl));
sys/dev/sound/pcm/buffer.c
383
KASSERT((b->rp >= 0) && (b->rp <= b->bufsize), ("%s: b->rp invalid %d", __func__, b->rp));
sys/dev/sound/pcm/buffer.c
391
KASSERT((b->rl >= 0) && (b->rl <= b->bufsize), ("%s: b->rl invalid %d", __func__, b->rl));
sys/dev/sound/pcm/buffer.c
393
return b->bufsize - b->rl;
sys/dev/sound/pcm/buffer.c
399
KASSERT((b->rp >= 0) && (b->rp <= b->bufsize), ("%s: b->rp invalid %d", __func__, b->rp));
sys/dev/sound/pcm/buffer.c
400
KASSERT((b->rl >= 0) && (b->rl <= b->bufsize), ("%s: b->rl invalid %d", __func__, b->rl));
sys/dev/sound/pcm/buffer.c
402
return (b->rp + b->rl) % b->bufsize;
sys/dev/sound/pcm/buffer.c
453
KASSERT((b->rl >= 0) && (b->rl <= b->bufsize), ("%s: b->rl invalid %d", __func__, b->rl));
sys/dev/sound/pcm/buffer.c
457
l = min(count, b->bufsize - sndbuf_getfreeptr(b));
sys/dev/sound/pcm/buffer.c
465
KASSERT((b->rl >= 0) && (b->rl <= b->bufsize), ("%s: b->rl invalid %d, count %d", __func__, b->rl, count));
sys/dev/sound/pcm/buffer.c
490
KASSERT((b->rl >= 0) && (b->rl <= b->bufsize), ("%s: b->rl invalid %d", __func__, b->rl));
sys/dev/sound/pcm/buffer.c
493
l = min(count, b->bufsize - sndbuf_getreadyptr(b));
sys/dev/sound/pcm/buffer.c
497
b->rp = (b->rp + l) % b->bufsize;
sys/dev/sound/pcm/buffer.c
502
b->rp = (b->rp + count) % b->bufsize;
sys/dev/sound/pcm/buffer.c
504
KASSERT((b->rl >= 0) && (b->rl <= b->bufsize), ("%s: b->rl invalid %d, count %d", __func__, b->rl, count));
sys/dev/sound/pcm/buffer.c
96
b->bufsize = b->maxsize;
sys/dev/sound/pcm/buffer.h
41
unsigned int bufsize, maxsize, allocsize;
sys/dev/sound/pcm/channel.c
1239
if (b->bufsize == 0 && ((c->flags & CHN_F_VIRTUAL) == 0)) {
sys/dev/sound/pcm/channel.c
1887
sndbuf_xbytes(pb->bufsize, pb, bs) : 0;
sys/dev/sound/pcm/channel.c
1957
bs->bufsize != (sblkcnt * sblksz)) {
sys/dev/sound/pcm/channel.c
1969
c->timeout = ((u_int64_t)hz * bs->bufsize) /
sys/dev/sound/pcm/channel.c
1989
b->bufsize, b->blksz,
sys/dev/sound/pcm/channel.c
1991
bs->bufsize, bs->blksz,
sys/dev/sound/pcm/channel.c
359
KASSERT(b->bufsize > 0, ("bufsize == 0"));
sys/dev/sound/pcm/channel.c
364
delta = (b->bufsize + hwptr - old) % b->bufsize;
sys/dev/sound/pcm/channel.c
402
want = min(b->bufsize, imax(0, sndbuf_xbytes(bs->bufsize, bs, b) -
sys/dev/sound/pcm/channel.c
453
sz = min(sz, bs->bufsize - p);
sys/dev/sound/pcm/channel.c
562
sz = min(sz, bs->bufsize - p);
sys/dev/sound/pcm/channel.c
649
sndbuf_xbytes(bs->bufsize, bs, b));
sys/dev/sound/pcm/channel.c
662
(b->bufsize * 1000) /
sys/dev/sound/pcm/channel.c
722
minflush += sndbuf_xbytes(b->bufsize, b, bs);
sys/dev/sound/pcm/channel.c
748
__func__, b->maxsize, b->bufsize,
sys/dev/sound/pcm/channel.c
751
blksz = b->bufsize / b->blkcnt;
sys/dev/sound/pcm/dsp.c
669
uint32_t bufsize;
sys/dev/sound/pcm/dsp.c
934
p->bufsize = p32->bufsize;
sys/dev/sound/pcm/dsp.c
954
p->bufsize = min(rdch? rdch->bufsoft->bufsize : 1000000,
sys/dev/sound/pcm/dsp.c
955
wrch? wrch->bufsoft->bufsize : 1000000);
sys/dev/sound/pcm/dsp.c
978
p32->bufsize = p->bufsize;
sys/dev/sound/pcm/feeder_mixer.c
144
cnt = b->bufsize;
sys/dev/sound/pcm/feeder_mixer.c
235
sz = src->bufsize;
sys/dev/sound/sndstat.c
1287
c->bufhard->bufsize,
sys/dev/sound/sndstat.c
1290
c->bufsoft->bufsize,
sys/dev/sound/sndstat.c
1299
c->bufhard->bufsize,
sys/dev/sound/sndstat.c
1302
c->bufsoft->bufsize,
sys/dev/sound/sndstat.c
498
c->bufhard->bufsize);
sys/dev/sound/sndstat.c
512
c->bufsoft->bufsize);
sys/dev/sound/usb/uaudio.c
574
.bufsize = 0, /* use "wMaxPacketSize * frames" */
sys/dev/sound/usb/uaudio.c
584
.bufsize = 0, /* use "wMaxPacketSize * frames" */
sys/dev/sound/usb/uaudio.c
594
.bufsize = 0, /* use "wMaxPacketSize * frames" */
sys/dev/sound/usb/uaudio.c
607
.bufsize = 0, /* use "wMaxPacketSize * frames" */
sys/dev/sound/usb/uaudio.c
617
.bufsize = 0, /* use "wMaxPacketSize * frames" */
sys/dev/sound/usb/uaudio.c
627
.bufsize = 0, /* use "wMaxPacketSize * frames" */
sys/dev/sound/usb/uaudio.c
640
.bufsize = (sizeof(struct usb_device_request) + 4),
sys/dev/sound/usb/uaudio.c
672
.bufsize = UMIDI_TX_BUFFER,
sys/dev/sound/usb/uaudio.c
681
.bufsize = 4, /* bytes */
sys/dev/sound/usb/uaudio.c
693
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/spibus/spigen.c
235
if (mmap->bufsize < stm->stm_command_length + stm->stm_data_length)
sys/dev/spibus/spigen.c
287
pmap_qremove(mmap->kvaddr, mmap->bufsize / PAGE_SIZE);
sys/dev/spibus/spigen.c
288
kva_free(mmap->kvaddr, mmap->bufsize);
sys/dev/spibus/spigen.c
319
mmap->bufsize = size;
sys/dev/spibus/spigen.c
77
size_t bufsize;
sys/dev/usb/controller/uhci.c
2845
nfixup = (parm->bufsize / USB_PAGE_SIZE) + 1;
sys/dev/usb/gadget/g_audio.c
165
.bufsize = G_AUDIO_BUFSIZE,
sys/dev/usb/gadget/g_audio.c
177
.bufsize = G_AUDIO_BUFSIZE,
sys/dev/usb/gadget/g_audio.c
189
.bufsize = G_AUDIO_BUFSIZE,
sys/dev/usb/gadget/g_audio.c
201
.bufsize = G_AUDIO_BUFSIZE,
sys/dev/usb/gadget/g_keyboard.c
161
.bufsize = sizeof(struct g_keyboard_data),
sys/dev/usb/gadget/g_modem.c
160
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/gadget/g_modem.c
172
.bufsize = G_MODEM_BUFSIZE,
sys/dev/usb/gadget/g_modem.c
184
.bufsize = G_MODEM_BUFSIZE,
sys/dev/usb/gadget/g_mouse.c
159
.bufsize = sizeof(struct g_mouse_data),
sys/dev/usb/input/atp.c
815
.bufsize = ATP_SENSOR_DATA_BUF_MAX,
sys/dev/usb/input/atp.c
822
.bufsize = sizeof(struct usb_device_request) + MODE_LENGTH,
sys/dev/usb/input/uep.c
324
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/input/uhid.c
375
.bufsize = UHID_BSIZE,
sys/dev/usb/input/uhid.c
384
.bufsize = UHID_BSIZE,
sys/dev/usb/input/uhid.c
392
.bufsize = sizeof(struct usb_device_request) + UHID_BSIZE,
sys/dev/usb/input/uhid.c
401
.bufsize = sizeof(struct usb_device_request) + UHID_BSIZE,
sys/dev/usb/input/uhid_snes.c
141
.bufsize = sizeof(struct usb_device_request) +1,
sys/dev/usb/input/uhid_snes.c
150
.bufsize = sizeof(struct usb_device_request) + 1,
sys/dev/usb/input/ukbd.c
1009
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/input/ukbd.c
1018
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/input/ukbd.c
1026
.bufsize = sizeof(struct usb_device_request) + UKBD_BUFFER_SIZE,
sys/dev/usb/input/ums.c
409
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/input/usbhid.c
381
sc->sc_config[USBHID_INTR_OUT_DT].bufsize = rdesc->osize;
sys/dev/usb/input/usbhid.c
382
sc->sc_config[USBHID_INTR_IN_DT].bufsize = rdesc->isize;
sys/dev/usb/input/usbhid.c
383
sc->sc_config[USBHID_CTRL_DT].bufsize =
sys/dev/usb/input/wmt.c
275
.bufsize = WMT_BSIZE,
sys/dev/usb/input/wsp.c
692
.bufsize = WSP_BUFFER_MAX,
sys/dev/usb/misc/cp2112.c
857
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/misc/cp2112.c
865
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/misc/udbp.c
205
.bufsize = UDBP_BUFFERSIZE,
sys/dev/usb/misc/udbp.c
215
.bufsize = UDBP_BUFFERSIZE,
sys/dev/usb/misc/udbp.c
224
.bufsize = sizeof(struct usb_device_request),
sys/dev/usb/misc/udbp.c
234
.bufsize = sizeof(struct usb_device_request),
sys/dev/usb/misc/ugold.c
152
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/net/if_aue.c
233
.bufsize = (MCLBYTES + 2),
sys/dev/usb/net/if_aue.c
243
.bufsize = (MCLBYTES + 4 + ETHER_CRC_LEN),
sys/dev/usb/net/if_aue.c
253
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/net/if_axe.c
226
.bufsize = 16 * MCLBYTES,
sys/dev/usb/net/if_axe.c
236
.bufsize = 16384, /* bytes */
sys/dev/usb/net/if_axge.c
158
.bufsize = AXGE_N_FRAMES * MCLBYTES,
sys/dev/usb/net/if_axge.c
167
.bufsize = 65536,
sys/dev/usb/net/if_cdce.c
140
.bufsize = (CDCE_FRAMES_MAX * MCLBYTES),
sys/dev/usb/net/if_cdce.c
153
.bufsize = (CDCE_FRAMES_MAX * MCLBYTES),
sys/dev/usb/net/if_cdce.c
165
.bufsize = CDCE_IND_SIZE_MAX,
sys/dev/usb/net/if_cdce.c
177
.bufsize = CDCE_IND_SIZE_MAX,
sys/dev/usb/net/if_cdce.c
193
.bufsize = (CDCE_NCM_RX_FRAMES_MAX * CDCE_NCM_RX_MAXLEN),
sys/dev/usb/net/if_cdce.c
206
.bufsize = (CDCE_NCM_TX_FRAMES_MAX * CDCE_NCM_TX_MAXLEN),
sys/dev/usb/net/if_cdce.c
218
.bufsize = CDCE_IND_SIZE_MAX,
sys/dev/usb/net/if_cdce.c
230
.bufsize = CDCE_IND_SIZE_MAX,
sys/dev/usb/net/if_cdceem.c
174
.bufsize = 16 * (MCLBYTES + 16),
sys/dev/usb/net/if_cdceem.c
185
.bufsize = 20480, /* bytes */
sys/dev/usb/net/if_cue.c
141
.bufsize = (MCLBYTES + 2),
sys/dev/usb/net/if_cue.c
151
.bufsize = (MCLBYTES + 2),
sys/dev/usb/net/if_ipheth.c
102
.bufsize = (IPHETH_RX_FRAMES_MAX * MCLBYTES),
sys/dev/usb/net/if_ipheth.c
113
.bufsize = (IPHETH_TX_FRAMES_MAX * IPHETH_BUF_SIZE),
sys/dev/usb/net/if_ipheth.c
126
.bufsize = IPHETH_RX_NCM_BUF_SIZE,
sys/dev/usb/net/if_ipheth.c
137
.bufsize = (IPHETH_TX_FRAMES_MAX * IPHETH_BUF_SIZE),
sys/dev/usb/net/if_kue.c
182
.bufsize = (MCLBYTES + 2 + 64),
sys/dev/usb/net/if_kue.c
192
.bufsize = (MCLBYTES + 2),
sys/dev/usb/net/if_mos.c
200
.bufsize = (MCLBYTES + 2),
sys/dev/usb/net/if_mos.c
210
.bufsize = (MCLBYTES + 4 + ETHER_CRC_LEN),
sys/dev/usb/net/if_mos.c
220
.bufsize = 0,
sys/dev/usb/net/if_muge.c
227
.bufsize = 16 * (MCLBYTES + 16),
sys/dev/usb/net/if_muge.c
237
.bufsize = 20480, /* bytes */
sys/dev/usb/net/if_rue.c
166
.bufsize = MCLBYTES,
sys/dev/usb/net/if_rue.c
176
.bufsize = (MCLBYTES + 4),
sys/dev/usb/net/if_rue.c
187
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/net/if_smsc.c
215
.bufsize = 16 * (MCLBYTES + 16),
sys/dev/usb/net/if_smsc.c
225
.bufsize = 20480, /* bytes */
sys/dev/usb/net/if_udav.c
123
.bufsize = (MCLBYTES + 2),
sys/dev/usb/net/if_udav.c
133
.bufsize = (MCLBYTES + 3),
sys/dev/usb/net/if_udav.c
144
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/net/if_umb.c
267
.bufsize = sizeof (struct usb_cdc_notification),
sys/dev/usb/net/if_umb.c
277
.bufsize = 8 * 1024,
sys/dev/usb/net/if_umb.c
287
.bufsize = 8 * 1024,
sys/dev/usb/net/if_umb.c
676
config[UMB_BULK_RX].bufsize = UGETDW(np.dwNtbInMaxSize);
sys/dev/usb/net/if_umb.c
677
config[UMB_BULK_TX].bufsize = UGETDW(np.dwNtbOutMaxSize);
sys/dev/usb/net/if_umb.c
679
sc->sc_rx_bufsz = config[UMB_BULK_RX].bufsize;
sys/dev/usb/net/if_umb.c
680
sc->sc_tx_bufsz = config[UMB_BULK_TX].bufsize;
sys/dev/usb/net/if_ure.c
600
.bufsize = sc->sc_rxbufsz,
sys/dev/usb/net/if_ure.c
618
.bufsize = URE_TX_BUFSZ,
sys/dev/usb/net/if_urndis.c
109
.bufsize = RNDIS_RX_MAXLEN,
sys/dev/usb/net/if_urndis.c
122
.bufsize = (RNDIS_TX_FRAMES_MAX * RNDIS_TX_MAXLEN),
sys/dev/usb/net/if_urndis.c
136
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/net/if_usie.c
149
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/net/if_usie.c
157
.bufsize = USIE_BUFSIZE,
sys/dev/usb/net/if_usie.c
165
.bufsize = USIE_BUFSIZE,
sys/dev/usb/net/if_usie.c
176
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/net/if_usie.c
184
.bufsize = USIE_BUFSIZE,
sys/dev/usb/net/if_usie.c
192
.bufsize = MAX(USIE_BUFSIZE, MCLBYTES),
sys/dev/usb/net/uhso.c
368
.bufsize = sizeof(struct usb_device_request) + 1024,
sys/dev/usb/net/uhso.c
377
.bufsize = sizeof(struct usb_device_request) + 1024,
sys/dev/usb/net/uhso.c
390
.bufsize = 0,
sys/dev/usb/net/uhso.c
402
.bufsize = MCLBYTES,
sys/dev/usb/net/uhso.c
410
.bufsize = MCLBYTES,
sys/dev/usb/net/uhso.c
423
.bufsize = 4096,
sys/dev/usb/net/uhso.c
432
.bufsize = 8192,
sys/dev/usb/net/uhso.c
441
.bufsize = 0,
sys/dev/usb/serial/u3g.c
147
.bufsize = U3G_BSIZE,/* bytes */
sys/dev/usb/serial/u3g.c
157
.bufsize = U3G_BSIZE,/* bytes */
sys/dev/usb/serial/u3g.c
167
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/serial/uark.c
123
.bufsize = UARK_BUF_SIZE,
sys/dev/usb/serial/uark.c
132
.bufsize = UARK_BUF_SIZE,
sys/dev/usb/serial/ubsa.c
199
.bufsize = UBSA_BSIZE, /* bytes */
sys/dev/usb/serial/ubsa.c
208
.bufsize = UBSA_BSIZE, /* bytes */
sys/dev/usb/serial/ubsa.c
218
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/serial/ubser.c
165
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/serial/ubser.c
174
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/serial/uchcom.c
243
.bufsize = UCHCOM_BULK_BUF_SIZE,
sys/dev/usb/serial/uchcom.c
252
.bufsize = UCHCOM_BULK_BUF_SIZE,
sys/dev/usb/serial/uchcom.c
264
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/serial/ucycom.c
135
.bufsize = (sizeof(struct usb_device_request) + UCYCOM_MAX_IOLEN),
sys/dev/usb/serial/ucycom.c
145
.bufsize = UCYCOM_MAX_IOLEN,
sys/dev/usb/serial/udbc.c
125
.bufsize = UDBC_OBUFSIZE,
sys/dev/usb/serial/udbc.c
134
.bufsize = UDBC_IBUFSIZE,
sys/dev/usb/serial/ufintek.c
241
.bufsize = UFINTEK_BUFSIZE,
sys/dev/usb/serial/ufintek.c
249
.bufsize = UFINTEK_BUFSIZE,
sys/dev/usb/serial/ufoma.c
239
.bufsize = sizeof(struct usb_cdc_notification),
sys/dev/usb/serial/ufoma.c
247
.bufsize = (sizeof(struct usb_device_request) + UFOMA_CMD_BUF_SIZE),
sys/dev/usb/serial/ufoma.c
257
.bufsize = (sizeof(struct usb_device_request) + 1),
sys/dev/usb/serial/ufoma.c
269
.bufsize = UFOMA_BULK_BUF_SIZE,
sys/dev/usb/serial/ufoma.c
278
.bufsize = UFOMA_BULK_BUF_SIZE,
sys/dev/usb/serial/uftdi.c
218
.bufsize = UFTDI_OBUFSIZE,
sys/dev/usb/serial/uftdi.c
227
.bufsize = UFTDI_IBUFSIZE,
sys/dev/usb/serial/ugensa.c
116
.bufsize = UGENSA_BUF_SIZE,
sys/dev/usb/serial/ugensa.c
125
.bufsize = UGENSA_BUF_SIZE,
sys/dev/usb/serial/uipaq.c
125
.bufsize = UIPAQ_BUF_SIZE,
sys/dev/usb/serial/uipaq.c
134
.bufsize = UIPAQ_BUF_SIZE,
sys/dev/usb/serial/ulpt.c
356
.bufsize = ULPT_BSIZE,
sys/dev/usb/serial/ulpt.c
365
.bufsize = ULPT_BSIZE,
sys/dev/usb/serial/ulpt.c
374
.bufsize = sizeof(struct usb_device_request) + 1,
sys/dev/usb/serial/umcs.c
205
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/serial/umcs.c
215
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/serial/umcs.c
227
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/serial/umct.c
163
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/serial/umct.c
173
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/serial/umct.c
183
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/serial/umodem.c
237
.bufsize = UMODEM_BUF_SIZE,
sys/dev/usb/serial/umodem.c
248
.bufsize = UMODEM_BUF_SIZE,
sys/dev/usb/serial/umodem.c
260
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/serial/umodem.c
271
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/serial/umoscom.c
221
.bufsize = UMOSCOM_BUFSIZE,
sys/dev/usb/serial/umoscom.c
230
.bufsize = UMOSCOM_BUFSIZE,
sys/dev/usb/serial/umoscom.c
240
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/serial/uplcom.c
214
.bufsize = UPLCOM_BULK_BUF_SIZE,
sys/dev/usb/serial/uplcom.c
224
.bufsize = UPLCOM_BULK_BUF_SIZE,
sys/dev/usb/serial/uplcom.c
235
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/serial/uslcom.c
185
.bufsize = USLCOM_BULK_BUF_SIZE,
sys/dev/usb/serial/uslcom.c
194
.bufsize = USLCOM_BULK_BUF_SIZE,
sys/dev/usb/serial/uslcom.c
202
.bufsize = sizeof(struct usb_device_request) + 8,
sys/dev/usb/serial/uvisor.c
214
.bufsize = UVISOROBUFSIZE * UVISOROFRAMES,
sys/dev/usb/serial/uvisor.c
224
.bufsize = UVISORIBUFSIZE,
sys/dev/usb/serial/uvscom.c
196
.bufsize = UVSCOM_BULK_BUF_SIZE,
sys/dev/usb/serial/uvscom.c
205
.bufsize = UVSCOM_BULK_BUF_SIZE,
sys/dev/usb/serial/uvscom.c
215
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/storage/cfumass.c
234
.bufsize = sizeof(struct cfumass_cbw_t),
sys/dev/usb/storage/cfumass.c
243
.bufsize = CFUMASS_BULK_SIZE,
sys/dev/usb/storage/cfumass.c
254
.bufsize = CFUMASS_BULK_SIZE,
sys/dev/usb/storage/cfumass.c
265
.bufsize = sizeof(struct cfumass_csw_t),
sys/dev/usb/storage/umass.c
517
.bufsize = sizeof(struct usb_device_request),
sys/dev/usb/storage/umass.c
527
.bufsize = sizeof(struct usb_device_request),
sys/dev/usb/storage/umass.c
537
.bufsize = sizeof(struct usb_device_request),
sys/dev/usb/storage/umass.c
547
.bufsize = sizeof(umass_bbb_cbw_t),
sys/dev/usb/storage/umass.c
556
.bufsize = UMASS_BULK_SIZE,
sys/dev/usb/storage/umass.c
566
.bufsize = sizeof(struct usb_device_request),
sys/dev/usb/storage/umass.c
575
.bufsize = UMASS_BULK_SIZE,
sys/dev/usb/storage/umass.c
585
.bufsize = sizeof(struct usb_device_request),
sys/dev/usb/storage/umass.c
594
.bufsize = sizeof(umass_bbb_csw_t),
sys/dev/usb/storage/umass.c
606
.bufsize = (sizeof(struct usb_device_request) +
sys/dev/usb/storage/umass.c
617
.bufsize = sizeof(struct usb_device_request),
sys/dev/usb/storage/umass.c
627
.bufsize = sizeof(struct usb_device_request),
sys/dev/usb/storage/umass.c
637
.bufsize = (sizeof(struct usb_device_request) +
sys/dev/usb/storage/umass.c
647
.bufsize = UMASS_BULK_SIZE,
sys/dev/usb/storage/umass.c
657
.bufsize = sizeof(struct usb_device_request),
sys/dev/usb/storage/umass.c
666
.bufsize = UMASS_BULK_SIZE,
sys/dev/usb/storage/umass.c
676
.bufsize = sizeof(struct usb_device_request),
sys/dev/usb/storage/umass.c
686
.bufsize = sizeof(umass_cbi_sbl_t),
sys/dev/usb/storage/umass.c
695
.bufsize = sizeof(struct usb_device_request),
sys/dev/usb/storage/urio.c
145
.bufsize = URIO_BSIZE,
sys/dev/usb/storage/urio.c
154
.bufsize = URIO_BSIZE,
sys/dev/usb/storage/urio.c
163
.bufsize = sizeof(struct usb_device_request),
sys/dev/usb/storage/urio.c
173
.bufsize = sizeof(struct usb_device_request),
sys/dev/usb/storage/ustorage_fs.c
277
.bufsize = sizeof(ustorage_fs_bbb_cbw_t),
sys/dev/usb/storage/ustorage_fs.c
286
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/storage/ustorage_fs.c
296
.bufsize = USTORAGE_FS_BULK_SIZE,
sys/dev/usb/storage/ustorage_fs.c
306
.bufsize = USTORAGE_FS_BULK_SIZE,
sys/dev/usb/storage/ustorage_fs.c
316
.bufsize = sizeof(ustorage_fs_bbb_csw_t),
sys/dev/usb/usb_dev.c
1947
usb_fifo_alloc_buffer(struct usb_fifo *f, usb_size_t bufsize,
sys/dev/usb/usb_dev.c
1958
M_USBDEV, &temp_q, bufsize, nbuf);
sys/dev/usb/usb_dev.c
1960
if (queue_data == NULL && bufsize != 0 && nbuf != 0)
sys/dev/usb/usb_dev.h
129
usb_frlength_t bufsize; /* BULK and INTERRUPT buffer size */
sys/dev/usb/usb_generic.c
1040
usb_config[0].bufsize = popen->max_bufsize;
sys/dev/usb/usb_generic.c
1803
if (f->bufsize == t) {
sys/dev/usb/usb_generic.c
1811
f->bufsize = t;
sys/dev/usb/usb_generic.c
1818
*(int *)addr = f->bufsize;
sys/dev/usb/usb_generic.c
198
f->bufsize = UGEN_BULK_FS_BUFFER_SIZE;
sys/dev/usb/usb_generic.c
202
f->bufsize = UGEN_BULK_HS_BUFFER_SIZE;
sys/dev/usb/usb_generic.c
208
f->bufsize = 0; /* use "wMaxPacketSize" */
sys/dev/usb/usb_generic.c
261
usb_config[1].bufsize = sizeof(struct usb_device_request);
sys/dev/usb/usb_generic.c
282
usb_config[0].bufsize = f->bufsize;
sys/dev/usb/usb_generic.c
292
usb_config[0].bufsize = 0; /* use default */
sys/dev/usb/usb_generic.c
330
usb_config[1].bufsize = sizeof(struct usb_device_request);
sys/dev/usb/usb_generic.c
351
usb_config[0].bufsize = f->bufsize;
sys/dev/usb/usb_generic.c
362
usb_config[0].bufsize = 0; /* use default */
sys/dev/usb/usb_hub.c
138
.bufsize = 0, /* use wMaxPacketSize */
sys/dev/usb/usb_hub.c
147
.bufsize = sizeof(struct usb_device_request),
sys/dev/usb/usb_msctest.c
206
.bufsize = sizeof(struct bbb_cbw),
sys/dev/usb/usb_msctest.c
215
.bufsize = SCSI_MAX_LEN,
sys/dev/usb/usb_msctest.c
225
.bufsize = sizeof(struct usb_device_request),
sys/dev/usb/usb_msctest.c
234
.bufsize = SCSI_MAX_LEN,
sys/dev/usb/usb_msctest.c
244
.bufsize = sizeof(struct usb_device_request),
sys/dev/usb/usb_msctest.c
253
.bufsize = sizeof(struct bbb_csw),
sys/dev/usb/usb_msctest.c
265
.bufsize = SCSI_MAX_LEN,
sys/dev/usb/usb_transfer.c
1025
if (setup->bufsize == (usb_frlength_t)-1) {
sys/dev/usb/usb_transfer.c
114
.bufsize = 65535, /* bytes */
sys/dev/usb/usb_transfer.c
125
.bufsize = sizeof(struct usb_device_request),
sys/dev/usb/usb_transfer.c
500
parm->bufsize = setup->bufsize;
sys/dev/usb/usb_transfer.c
717
if ((parm->bufsize <= MIN_PKT) &&
sys/dev/usb/usb_transfer.c
723
parm->bufsize = 0; /* automatic setup length */
sys/dev/usb/usb_transfer.c
740
if (parm->bufsize == 0) {
sys/dev/usb/usb_transfer.c
741
parm->bufsize = xfer->max_frame_size;
sys/dev/usb/usb_transfer.c
744
parm->bufsize *= xfer->nframes;
sys/dev/usb/usb_transfer.c
755
parm->bufsize += (xfer->max_frame_size - 1);
sys/dev/usb/usb_transfer.c
757
if (parm->bufsize < xfer->max_frame_size) {
sys/dev/usb/usb_transfer.c
764
parm->bufsize -= (parm->bufsize % xfer->max_frame_size);
sys/dev/usb/usb_transfer.c
769
parm->bufsize += REQ_SIZE; /* SETUP message */
sys/dev/usb/usb_transfer.c
772
xfer->max_data_length = parm->bufsize;
sys/dev/usb/usb_transfer.c
783
if (parm->bufsize <= REQ_SIZE) {
sys/dev/usb/usb_transfer.c
842
&pc, parm->bufsize, 1, 1)) {
sys/dev/usb/usb_transfer.c
869
parm->size[0] += parm->bufsize;
sys/dev/usb/usb_transfer.c
87
.bufsize = USB_EP0_BUFSIZE, /* bytes */
sys/dev/usb/usb_transfer.c
879
if (parm->bufsize_max < parm->bufsize) {
sys/dev/usb/usb_transfer.c
880
parm->bufsize_max = parm->bufsize;
sys/dev/usb/usb_transfer.c
908
parm->dma_page_ptr += (parm->bufsize / USB_PAGE_SIZE);
sys/dev/usb/usb_transfer.c
99
.bufsize = sizeof(struct usb_device_request),
sys/dev/usb/usb_transfer.h
111
usb_frlength_t bufsize;
sys/dev/usb/usbdi.h
229
usb_frlength_t bufsize; /* total pipe buffer size in bytes */
sys/dev/usb/usbdi.h
696
int usb_fifo_alloc_buffer(struct usb_fifo *f, uint32_t bufsize,
sys/dev/usb/video/udl.c
115
.bufsize = UDL_CMD_MAX_DATA_SIZE * UDL_CMD_MAX_FRAMES,
sys/dev/usb/video/udl.c
125
.bufsize = UDL_CMD_MAX_DATA_SIZE * UDL_CMD_MAX_FRAMES,
sys/dev/usb/wlan/if_mtw.c
286
.bufsize = MTW_MAX_RXSZ,
sys/dev/usb/wlan/if_mtw.c
295
.bufsize = MTW_MAX_TXSZ,
sys/dev/usb/wlan/if_mtw.c
305
.bufsize = MTW_MAX_TXSZ,
sys/dev/usb/wlan/if_mtw.c
315
.bufsize = MTW_MAX_TXSZ,
sys/dev/usb/wlan/if_mtw.c
325
.bufsize = MTW_MAX_TXSZ,
sys/dev/usb/wlan/if_mtw.c
335
.bufsize = MTW_MAX_TXSZ,
sys/dev/usb/wlan/if_mtw.c
345
.bufsize = MTW_MAX_TXSZ,
sys/dev/usb/wlan/if_mtw.c
356
.bufsize = 0x2c44,
sys/dev/usb/wlan/if_mtw.c
368
.bufsize = MTW_MAX_TXSZ,
sys/dev/usb/wlan/if_rsu.c
298
.bufsize = RSU_RXBUFSZ,
sys/dev/usb/wlan/if_rsu.c
309
.bufsize = RSU_TXBUFSZ,
sys/dev/usb/wlan/if_rsu.c
322
.bufsize = RSU_TXBUFSZ,
sys/dev/usb/wlan/if_rsu.c
335
.bufsize = RSU_TXBUFSZ,
sys/dev/usb/wlan/if_rum.c
447
.bufsize = (MCLBYTES + RT2573_TX_DESC_SIZE + 8),
sys/dev/usb/wlan/if_rum.c
456
.bufsize = (MCLBYTES + RT2573_RX_DESC_SIZE),
sys/dev/usb/wlan/if_run.c
660
.bufsize = RUN_MAX_TXSZ,
sys/dev/usb/wlan/if_run.c
670
.bufsize = RUN_MAX_TXSZ,
sys/dev/usb/wlan/if_run.c
680
.bufsize = RUN_MAX_TXSZ,
sys/dev/usb/wlan/if_run.c
690
.bufsize = RUN_MAX_TXSZ,
sys/dev/usb/wlan/if_run.c
700
.bufsize = RUN_MAX_TXSZ,
sys/dev/usb/wlan/if_run.c
710
.bufsize = RUN_MAX_TXSZ,
sys/dev/usb/wlan/if_run.c
719
.bufsize = RUN_MAX_RXSZ,
sys/dev/usb/wlan/if_uath.c
200
.bufsize = UATH_MAX_CMDSZ,
sys/dev/usb/wlan/if_uath.c
211
.bufsize = UATH_MAX_CMDSZ * UATH_CMD_LIST_COUNT,
sys/dev/usb/wlan/if_uath.c
223
.bufsize = MCLBYTES,
sys/dev/usb/wlan/if_uath.c
235
.bufsize = UATH_MAX_TXBUFSZ * UATH_TX_DATA_LIST_COUNT,
sys/dev/usb/wlan/if_upgt.c
204
.bufsize = MCLBYTES * UPGT_TX_MAXCOUNT,
sys/dev/usb/wlan/if_upgt.c
216
.bufsize = MCLBYTES * UPGT_RX_MAXCOUNT,
sys/dev/usb/wlan/if_ural.c
367
.bufsize = (RAL_FRAME_SIZE + RAL_TX_DESC_SIZE + 4),
sys/dev/usb/wlan/if_ural.c
376
.bufsize = (RAL_FRAME_SIZE + RAL_RX_DESC_SIZE),
sys/dev/usb/wlan/if_urtw.c
527
.bufsize = MCLBYTES,
sys/dev/usb/wlan/if_urtw.c
539
.bufsize = sizeof(uint64_t),
sys/dev/usb/wlan/if_urtw.c
550
.bufsize = URTW_TX_MAXSIZE * URTW_TX_DATA_LIST_COUNT,
sys/dev/usb/wlan/if_urtw.c
562
.bufsize = URTW_TX_MAXSIZE,
sys/dev/usb/wlan/if_urtw.c
575
.bufsize = URTW_TX_MAXSIZE,
sys/dev/usb/wlan/if_urtw.c
588
.bufsize = URTW_TX_MAXSIZE,
sys/dev/usb/wlan/if_urtw.c
601
.bufsize = URTW_TX_MAXSIZE,
sys/dev/usb/wlan/if_urtw.c
617
.bufsize = MCLBYTES,
sys/dev/usb/wlan/if_urtw.c
629
.bufsize = URTW_TX_MAXSIZE * URTW_TX_DATA_LIST_COUNT,
sys/dev/usb/wlan/if_urtw.c
641
.bufsize = URTW_TX_MAXSIZE,
sys/dev/usb/wlan/if_zyd.c
258
.bufsize = ZYD_MAX_TXBUFSZ,
sys/dev/usb/wlan/if_zyd.c
268
.bufsize = ZYX_MAX_RXBUFSZ,
sys/dev/usb/wlan/if_zyd.c
277
.bufsize = sizeof(struct zyd_cmd),
sys/dev/usb/wlan/if_zyd.c
287
.bufsize = sizeof(struct zyd_cmd),
sys/dev/virtio/console/virtio_console.c
1360
vtcon_port_out(struct vtcon_port *port, void *buf, int bufsize)
sys/dev/virtio/console/virtio_console.c
1372
error = sglist_append(&sg, buf, bufsize);
sys/dev/vmm/vmm_stat.c
132
vmm_stat_desc_copy(int index, char *buf, int bufsize)
sys/dev/vmm/vmm_stat.c
141
snprintf(buf, bufsize, "%s[%d]",
sys/dev/vmm/vmm_stat.c
144
strlcpy(buf, vst->desc, bufsize);
sys/dev/vt/vt_buf.c
502
size_t bufsize, rowssize;
sys/dev/vt/vt_buf.c
513
bufsize = history_size * p->tp_col * sizeof(term_char_t);
sys/dev/vt/vt_buf.c
514
new = malloc(bufsize, M_VTBUF, M_WAITOK | M_ZERO);
sys/fs/fuse/fuse_internal.c
601
size_t bufsize,
sys/fs/fuse/fuse_internal.c
615
if (bufsize < FUSE_NAME_OFFSET)
sys/fs/fuse/fuse_internal.c
618
if (bufsize < FUSE_NAME_OFFSET) {
sys/fs/fuse/fuse_internal.c
625
if (bufsize < freclen) {
sys/fs/fuse/fuse_internal.c
679
bufsize -= freclen;
sys/fs/fuse/fuse_internal.c
781
size_t bufsize,
sys/fs/fuse/fuse_internal.c
784
fdip->iosize = bufsize + cnp->cn_namelen + 1;
sys/fs/fuse/fuse_internal.c
787
memcpy(fdip->indata, buf, bufsize);
sys/fs/fuse/fuse_internal.c
788
memcpy((char *)fdip->indata + bufsize, cnp->cn_nameptr, cnp->cn_namelen);
sys/fs/fuse/fuse_internal.c
789
((char *)fdip->indata)[bufsize + cnp->cn_namelen] = '\0';
sys/fs/fuse/fuse_internal.c
836
size_t bufsize,
sys/fs/fuse/fuse_internal.c
845
bufsize, &fdi);
sys/fs/fuse/fuse_internal.h
255
void *buf, size_t bufsize, struct fuse_iov *cookediov, int *ncookies,
sys/fs/fuse/fuse_internal.h
303
struct componentname *cnp, enum fuse_opcode op, void *buf, size_t bufsize,
sys/fs/fuse/fuse_internal.h
307
struct componentname *cnp, enum fuse_opcode op, void *buf, size_t bufsize,
sys/fs/nfsclient/nfs_clbio.c
1818
int bufsize;
sys/fs/nfsclient/nfs_clbio.c
1827
bufsize = nsize - (lbn * biosize);
sys/fs/nfsclient/nfs_clbio.c
1828
bp = nfs_getcacheblk(vp, lbn, bufsize, td);
sys/i386/linux/linux_proto.h
602
char bufsize_l_[PADL_(l_ulong)]; l_ulong bufsize; char bufsize_r_[PADR_(l_ulong)];
sys/i386/linux/linux_proto.h
888
char bufsize_l_[PADL_(size_t)]; size_t bufsize; char bufsize_r_[PADR_(size_t)];
sys/i386/linux/linux_proto.h
893
char bufsize_l_[PADL_(size_t)]; size_t bufsize; char bufsize_r_[PADR_(size_t)];
sys/i386/linux/linux_systrace_args.c
1300
iarg[a++] = p->bufsize; /* l_ulong */
sys/i386/linux/linux_systrace_args.c
1907
uarg[a++] = p->bufsize; /* size_t */
sys/i386/linux/linux_systrace_args.c
1916
uarg[a++] = p->bufsize; /* size_t */
sys/kern/kern_kcov.c
129
size_t bufsize; /* (o) */
sys/kern/kern_kcov.c
373
info->bufsize = roundup2(entries * KCOV_ELEMENT_SIZE, PAGE_SIZE);
sys/kern/kern_kcov.c
374
pages = info->bufsize / PAGE_SIZE;
sys/kern/kern_kcov.c
376
if ((info->kvaddr = kva_alloc(info->bufsize)) == 0)
sys/kern/kern_kcov.c
379
info->bufobj = vm_pager_allocate(OBJT_PHYS, 0, info->bufsize,
sys/kern/kern_kcov.c
404
pmap_qremove(info->kvaddr, info->bufsize / PAGE_SIZE);
sys/kern/kern_kcov.c
405
kva_free(info->kvaddr, info->bufsize);
sys/kern/kern_kcov.c
409
info->bufsize / PAGE_SIZE);
sys/kern/kern_rctl.c
1712
size_t bufsize;
sys/kern/kern_rctl.c
1734
bufsize = uap->outbuflen;
sys/kern/kern_rctl.c
1735
if (bufsize > rctl_maxbufsize) {
sys/kern/kern_rctl.c
1740
buf = malloc(bufsize, M_RCTL, M_WAITOK);
sys/kern/kern_rctl.c
1741
sb = sbuf_new(NULL, buf, bufsize, SBUF_FIXEDLEN);
sys/kern/kern_rctl.c
1797
size_t bufsize;
sys/kern/kern_rctl.c
1835
bufsize = uap->outbuflen;
sys/kern/kern_rctl.c
1836
if (bufsize > rctl_maxbufsize) {
sys/kern/kern_rctl.c
1842
buf = malloc(bufsize, M_RCTL, M_WAITOK);
sys/kern/kern_rctl.c
1843
sb = sbuf_new(NULL, buf, bufsize, SBUF_FIXEDLEN);
sys/kern/systrace_args.c
2691
uarg[a++] = p->bufsize; /* size_t */
sys/kern/systrace_args.c
3142
iarg[a++] = p->bufsize; /* long */
sys/kern/systrace_args.c
3242
uarg[a++] = p->bufsize; /* size_t */
sys/kern/vfs_bio.c
645
bufspace_adjust(struct buf *bp, int bufsize)
sys/kern/vfs_bio.c
654
diff = bufsize - bp->b_bufsize;
sys/kern/vfs_bio.c
664
bp->b_bufsize = bufsize;
sys/kern/vfs_bio.c
886
bufmallocadjust(struct buf *bp, int bufsize)
sys/kern/vfs_bio.c
892
diff = bufsize - bp->b_bufsize;
sys/kern/vfs_bio.c
897
bp->b_bufsize = bufsize;
sys/kern/vfs_syscalls.c
2749
size_t bufsize;
sys/kern/vfs_syscalls.c
2757
uap->buf, UIO_USERSPACE, uap->bufsize));
sys/kern/vfs_syscalls.c
395
long bufsize;
sys/kern/vfs_syscalls.c
405
if (uap->bufsize < 0 || uap->bufsize > SIZE_MAX)
sys/kern/vfs_syscalls.c
407
error = kern_getfsstat(td, &uap->buf, uap->bufsize, &count,
sys/kern/vfs_syscalls.c
420
kern_getfsstat(struct thread *td, struct statfs **buf, size_t bufsize,
sys/kern/vfs_syscalls.c
438
maxcount = bufsize / sizeof(struct statfs);
sys/kern/vfs_syscalls.c
439
if (bufsize == 0) {
sys/kern/vfs_syscalls.c
4689
size_t bufsize;
sys/kern/vfs_syscalls.c
4703
if (uap->bufsize > IOSIZE_MAX)
sys/kern/vfs_syscalls.c
4714
error = kern_readlink_vp(vp, uap->buf, UIO_USERSPACE, uap->bufsize, td);
sys/kern/vfs_syscalls.c
640
long bufsize;
sys/kern/vfs_syscalls.c
652
if (uap->bufsize < 0)
sys/kern/vfs_syscalls.c
654
count = uap->bufsize / sizeof(struct ostatfs);
sys/kern/vfs_syscalls.c
788
return (kern_freebsd11_getfsstat(td, uap->buf, uap->bufsize, uap->mode));
sys/kern/vfs_syscalls.c
793
long bufsize, int mode)
sys/kern/vfs_syscalls.c
800
if (bufsize < 0)
sys/kern/vfs_syscalls.c
803
count = bufsize / sizeof(struct ostatfs);
sys/net/bpf_buffer.c
90
SYSCTL_INT(_net_bpf, OID_AUTO, bufsize, CTLFLAG_RW,
sys/net/if.c
3801
if (req->bufsize < req->lladdr_len)
sys/net/if.c
3814
req->bufsize = req->lladdr_len;
sys/net/if_ethersubr.c
152
if (req->bufsize < ETHER_HDR_LEN)
sys/net/if_ethersubr.c
192
req->bufsize = sizeof(struct ether_header);
sys/net/if_infiniband.c
219
if (req->bufsize < INFINIBAND_HDR_LEN)
sys/net/if_infiniband.c
259
req->bufsize = sizeof(struct infiniband_header);
sys/net/if_llatbl.c
411
char *buf, size_t *bufsize, int *lladdr_off)
sys/net/if_llatbl.c
416
bzero(buf, *bufsize);
sys/net/if_llatbl.c
419
ereq.bufsize = *bufsize;
sys/net/if_llatbl.c
426
*bufsize = ereq.bufsize;
sys/net/if_llatbl.c
475
char *buf, size_t bufsize)
sys/net/if_llatbl.c
488
snprintf(buf, bufsize, "lle/%s/%s/%s/%s", upper_str,
sys/net/if_llatbl.c
495
snprintf(buf, bufsize, "lle/%s/%s/%s/%s", upper_str,
sys/net/if_llatbl.c
500
snprintf(buf, bufsize, "lle/%s/%s/%s/????", upper_str,
sys/net/if_llatbl.c
509
llentry_print_buf_lltable(const struct llentry *lle, char *buf, size_t bufsize)
sys/net/if_llatbl.c
513
return (llentry_print_buf(lle, lltable_get_ifp(tbl), lltable_get_af(tbl), buf, bufsize));
sys/net/if_llatbl.h
256
char *buf, size_t *bufsize, int *lladdr_off);
sys/net/if_var.h
189
size_t bufsize; /* size of provided buffer (r) */
sys/net/route/nhgrp_ctl.c
807
nhgrp_print_buf(const struct nhgrp_object *nhg, char *buf, size_t bufsize)
sys/net/route/nhgrp_ctl.c
811
int off = snprintf(buf, bufsize, "nhg#%u/sz=%u:[", nhg_priv->nhg_idx,
sys/net/route/nhgrp_ctl.c
816
int len = snprintf(&buf[off], bufsize - off, "#%u:%u,",
sys/net/route/nhgrp_ctl.c
818
if (len + off + 3 >= bufsize) {
sys/net/route/nhgrp_ctl.c
819
int len = snprintf(&buf[off], bufsize - off, "...");
sys/net/route/nhgrp_ctl.c
827
if (off + 1 < bufsize)
sys/net/route/nhgrp_ctl.c
828
snprintf(&buf[off], bufsize - off, "]");
sys/net/route/nhop_ctl.c
1125
nhop_print_buf(const struct nhop_object *nh, char *buf, size_t bufsize)
sys/net/route/nhop_ctl.c
1137
snprintf(buf, bufsize, "nh#%d/%s/%s/%s", nh_priv->nh_idx, upper_str,
sys/net/route/nhop_ctl.c
1144
snprintf(buf, bufsize, "nh#%d/%s/%s/%s", nh_priv->nh_idx, upper_str,
sys/net/route/nhop_ctl.c
1149
snprintf(buf, bufsize, "nh#%d/%s/%s/resolve", nh_priv->nh_idx, upper_str,
sys/net/route/nhop_ctl.c
1153
snprintf(buf, bufsize, "nh#%d/%s/%s/????", nh_priv->nh_idx, upper_str,
sys/net/route/nhop_ctl.c
1162
nhop_print_buf_any(const struct nhop_object *nh, char *buf, size_t bufsize)
sys/net/route/nhop_ctl.c
1166
return (nhgrp_print_buf((const struct nhgrp_object *)nh, buf, bufsize));
sys/net/route/nhop_ctl.c
1168
return (nhop_print_buf(nh, buf, bufsize));
sys/net/route/route_debug.h
175
char *nhop_print_buf(const struct nhop_object *nh, char *buf, size_t bufsize);
sys/net/route/route_debug.h
176
char *nhop_print_buf_any(const struct nhop_object *nh, char *buf, size_t bufsize);
sys/net/route/route_debug.h
177
char *nhgrp_print_buf(const struct nhgrp_object *nhg, char *buf, size_t bufsize);
sys/net/route/route_debug.h
179
size_t bufsize);
sys/net/route/route_debug.h
180
char *llentry_print_buf_lltable(const struct llentry *lle, char *buf, size_t bufsize);
sys/net/route/route_debug.h
181
char *neigh_print_buf(const struct nhop_neigh *nn, char *buf, size_t bufsize);
sys/net/route/route_debug.h
182
char *rt_print_buf(const struct rtentry *rt, char *buf, size_t bufsize);
sys/net/route/route_helpers.c
628
rt_print_buf(const struct rtentry *rt, char *buf, size_t bufsize)
sys/net/route/route_helpers.c
643
snprintf(buf, bufsize, "rt/%s/%d", abuf, plen);
sys/net/route/route_helpers.c
653
snprintf(buf, bufsize, "rt/%s/%d", abuf, plen);
sys/net/route/route_helpers.c
658
snprintf(buf, bufsize, "rt/unknown_af#%d", rt_get_family(rt));
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
297
.bufsize = UBT_BULK_WRITE_BUFFER_SIZE,
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
307
.bufsize = UBT_BULK_READ_BUFFER_SIZE,
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
318
.bufsize = UBT_INTR_BUFFER_SIZE,
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
327
.bufsize = UBT_CTRL_BUFFER_SIZE,
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
342
.bufsize = 0, /* use "wMaxPacketSize * frames" */
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
353
.bufsize = 0, /* use "wMaxPacketSize * frames" */
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
364
.bufsize = 0, /* use "wMaxPacketSize * frames" */
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
375
.bufsize = 0, /* use "wMaxPacketSize * frames" */
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
548
.bufsize = UBT_INTR_BUFFER_SIZE,
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
135
.bufsize = UBTBCMFW_BSIZE,
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
146
.bufsize = UBTBCMFW_BSIZE,
sys/netinet/if_ether.c
317
size_t *bufsize)
sys/netinet/if_ether.c
322
bzero(buf, *bufsize);
sys/netinet/if_ether.c
325
ereq.bufsize = *bufsize;
sys/netinet/if_ether.c
334
*bufsize = ereq.bufsize;
sys/netinet/libalias/alias_db.c
2365
fill_rule(void *buf, int bufsize, int rulenum,
sys/netinet/libalias/alias_db.c
2372
bzero(buf, bufsize);
sys/netinet/tcp_input.c
3870
uint32_t bufsize;
sys/netinet/tcp_input.c
3893
bufsize = metrics.hc_sendpipe;
sys/netinet/tcp_input.c
3895
bufsize = so->so_snd.sb_hiwat;
sys/netinet/tcp_input.c
3896
if (bufsize < mss)
sys/netinet/tcp_input.c
3897
mss = bufsize;
sys/netinet/tcp_input.c
3899
bufsize = roundup(bufsize, mss);
sys/netinet/tcp_input.c
3900
if (bufsize > sb_max)
sys/netinet/tcp_input.c
3901
bufsize = sb_max;
sys/netinet/tcp_input.c
3902
if (bufsize > so->so_snd.sb_hiwat)
sys/netinet/tcp_input.c
3903
(void)sbreserve_locked(so, SO_SND, bufsize, NULL);
sys/netinet/tcp_input.c
3928
bufsize = metrics.hc_recvpipe;
sys/netinet/tcp_input.c
3930
bufsize = so->so_rcv.sb_hiwat;
sys/netinet/tcp_input.c
3931
if (bufsize > mss) {
sys/netinet/tcp_input.c
3932
bufsize = roundup(bufsize, mss);
sys/netinet/tcp_input.c
3933
if (bufsize > sb_max)
sys/netinet/tcp_input.c
3934
bufsize = sb_max;
sys/netinet/tcp_input.c
3935
if (bufsize > so->so_rcv.sb_hiwat)
sys/netinet/tcp_input.c
3936
(void)sbreserve_locked(so, SO_RCV, bufsize, NULL);
sys/netlink/netlink_snl.h
120
size_t bufsize;
sys/netlink/netlink_snl.h
276
ss->bufsize = rcvbuf;
sys/netlink/netlink_snl.h
277
ss->buf = (char *)malloc(ss->bufsize);
sys/netlink/netlink_snl.h
343
.iov_len = ss->bufsize,
sys/netlink/netlink_snl.h
378
.iov_len = ss->bufsize,
sys/netpfil/ipfw/ip_fw_table.h
123
size_t bufsize);
sys/netpfil/ipfw/ip_fw_table_algo.c
1248
size_t bufsize)
sys/netpfil/ipfw/ip_fw_table_algo.c
1255
snprintf(buf, bufsize, "%s masks=/%d,/%d", "addr:hash",
sys/netpfil/ipfw/ip_fw_table_algo.c
1258
snprintf(buf, bufsize, "%s", "addr:hash");
sys/netpfil/ipfw/ip_fw_table_algo.c
3781
char *buf, size_t bufsize);
sys/netpfil/ipfw/ip_fw_table_algo.c
3858
size_t bufsize)
sys/netpfil/ipfw/ip_fw_table_algo.c
3862
snprintf(buf, bufsize, "%s fib=%lu", "addr:kfib", ti->data);
sys/netpfil/ipfw/ip_fw_table_algo.c
3864
snprintf(buf, bufsize, "%s", "addr:kfib");
sys/netpfil/ipfw/ip_fw_table_algo.c
970
char *buf, size_t bufsize);
sys/powerpc/powernv/opal_console.c
337
uart_opal_get(struct uart_opal_softc *sc, void *buffer, size_t bufsize)
sys/powerpc/powernv/opal_console.c
343
uint64_t len = htobe64(bufsize);
sys/powerpc/powernv/opal_console.c
356
bufsize = be64toh(len);
sys/powerpc/powernv/opal_console.c
375
if (bufsize > sc->inbuflen)
sys/powerpc/powernv/opal_console.c
376
bufsize = sc->inbuflen;
sys/powerpc/powernv/opal_console.c
385
memcpy(buffer, sc->opal_inbuf, bufsize);
sys/powerpc/powernv/opal_console.c
386
sc->inbuflen -= bufsize;
sys/powerpc/powernv/opal_console.c
388
memmove(&sc->opal_inbuf[0], &sc->opal_inbuf[bufsize],
sys/powerpc/powernv/opal_console.c
394
return (bufsize);
sys/powerpc/powernv/opal_console.c
398
uart_opal_put(struct uart_opal_softc *sc, void *buffer, size_t bufsize)
sys/powerpc/powernv/opal_console.c
409
len = bufsize;
sys/powerpc/powernv/opal_console.c
418
if (bufsize > 12)
sys/powerpc/powernv/opal_console.c
419
bufsize = 12;
sys/powerpc/powernv/opal_console.c
422
cbuf[1] = 4 + bufsize; /* total length */
sys/powerpc/powernv/opal_console.c
425
memcpy(&cbuf[4], buffer, bufsize);
sys/powerpc/powernv/opal_console.c
426
len = 4 + bufsize;
sys/powerpc/pseries/phyp_console.c
285
uart_phyp_get(struct uart_phyp_softc *sc, void *buffer, size_t bufsize)
sys/powerpc/pseries/phyp_console.c
339
if (bufsize > sc->inbuflen)
sys/powerpc/pseries/phyp_console.c
340
bufsize = sc->inbuflen;
sys/powerpc/pseries/phyp_console.c
342
memcpy(buffer, sc->phyp_inbuf.str, bufsize);
sys/powerpc/pseries/phyp_console.c
343
sc->inbuflen -= bufsize;
sys/powerpc/pseries/phyp_console.c
345
memmove(&sc->phyp_inbuf.str[0], &sc->phyp_inbuf.str[bufsize],
sys/powerpc/pseries/phyp_console.c
349
return (bufsize);
sys/powerpc/pseries/phyp_console.c
353
uart_phyp_put(struct uart_phyp_softc *sc, void *buffer, size_t bufsize)
sys/powerpc/pseries/phyp_console.c
367
if (bufsize > 16)
sys/powerpc/pseries/phyp_console.c
368
bufsize = 16;
sys/powerpc/pseries/phyp_console.c
369
memcpy(&cbuf, buffer, bufsize);
sys/powerpc/pseries/phyp_console.c
370
len = bufsize;
sys/powerpc/pseries/phyp_console.c
373
if (bufsize > 12)
sys/powerpc/pseries/phyp_console.c
374
bufsize = 12;
sys/powerpc/pseries/phyp_console.c
377
cbuf.bytes[1] = 4 + bufsize; /* total length, max 16 bytes */
sys/powerpc/pseries/phyp_console.c
380
memcpy(&cbuf.bytes[4], buffer, bufsize);
sys/powerpc/pseries/phyp_console.c
381
len = 4 + bufsize;
sys/powerpc/pseries/phyp_console.c
393
return (bufsize);
sys/sys/hwt.h
55
size_t bufsize;
sys/sys/soundcard.h
307
u_long bufsize; /* DMA buffer size */
sys/sys/syscallsubr.h
170
struct freebsd11_statfs *ubuf, long bufsize, int mode);
sys/sys/syscallsubr.h
187
int kern_getfsstat(struct thread *td, struct statfs **buf, size_t bufsize,
sys/sys/sysproto.h
1450
char bufsize_l_[PADL_(size_t)]; size_t bufsize; char bufsize_r_[PADR_(size_t)];
sys/sys/sysproto.h
1699
char bufsize_l_[PADL_(long)]; long bufsize; char bufsize_r_[PADR_(long)];
sys/sys/sysproto.h
1759
char bufsize_l_[PADL_(size_t)]; size_t bufsize; char bufsize_r_[PADR_(size_t)];
sys/sys/sysproto.h
2540
char bufsize_l_[PADL_(long)]; long bufsize; char bufsize_r_[PADR_(long)];
sys/sys/sysproto.h
2762
char bufsize_l_[PADL_(long)]; long bufsize; char bufsize_r_[PADR_(long)];
sys/tests/ktest.c
214
.bufsize = KTEST_MAX_BUF,
sys/tests/ktest.c
330
vsnprintf(ctx->buf, ctx->bufsize, fmt, ap);
sys/tests/ktest.h
47
size_t bufsize;
tests/sys/fs/fusefs/cache.cc
144
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/cache.cc
145
uint8_t buf[bufsize];
tests/sys/fs/fusefs/cache.cc
152
ASSERT_LE(osize, bufsize);
tests/sys/fs/fusefs/cache.cc
153
ASSERT_LE(nsize, bufsize);
tests/sys/fs/fusefs/cache.cc
172
ASSERT_EQ(osize, read(fd, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/cache.cc
192
ASSERT_EQ(nsize, read(fd, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/default_permissions.cc
1251
ssize_t bufsize = 100;
tests/sys/fs/fusefs/default_permissions.cc
1252
uint8_t buf[bufsize];
tests/sys/fs/fusefs/default_permissions.cc
1276
ASSERT_EQ(fsize, read(fd, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/fallocate.cc
504
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/fallocate.cc
505
uint64_t fsize = bufsize;
tests/sys/fs/fusefs/fallocate.cc
506
uint8_t buf[bufsize];
tests/sys/fs/fusefs/fallocate.cc
507
char zbuf[bufsize];
tests/sys/fs/fusefs/fallocate.cc
509
uint64_t length = bufsize;
tests/sys/fs/fusefs/fallocate.cc
512
bzero(zbuf, bufsize);
tests/sys/fs/fusefs/fallocate.cc
526
ASSERT_EQ(fsize, (uint64_t)pread(fd, buf, bufsize, 0))
tests/sys/fs/fusefs/fallocate.cc
538
ASSERT_EQ(fsize, (uint64_t)pread(fd, buf, bufsize, 0))
tests/sys/fs/fusefs/fifo.cc
102
r = read(fd, message + recvd, bufsize - recvd);
tests/sys/fs/fusefs/fifo.cc
154
const int bufsize = 80;
tests/sys/fs/fusefs/fifo.cc
155
char message[bufsize];
tests/sys/fs/fusefs/fifo.cc
203
r = read(connected, message + recvd, bufsize - recvd);
tests/sys/fs/fusefs/fifo.cc
89
const int bufsize = 80;
tests/sys/fs/fusefs/fifo.cc
90
char message[bufsize];
tests/sys/fs/fusefs/fsync.cc
106
expect_write(ino, bufsize, CONTENTS);
tests/sys/fs/fusefs/fsync.cc
111
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/fsync.cc
133
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/fsync.cc
139
expect_write(ino, bufsize, CONTENTS);
tests/sys/fs/fusefs/fsync.cc
160
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/fsync.cc
169
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/fsync.cc
175
expect_write(ino, bufsize, CONTENTS);
tests/sys/fs/fusefs/fsync.cc
180
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/fsync.cc
197
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/fsync.cc
203
expect_write(ino, bufsize, CONTENTS);
tests/sys/fs/fusefs/fsync.cc
208
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/fsync.cc
222
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/fsync.cc
228
expect_write(ino, bufsize, CONTENTS);
tests/sys/fs/fusefs/fsync.cc
233
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/fsync.cc
244
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/fsync.cc
250
expect_write(ino, bufsize, CONTENTS);
tests/sys/fs/fusefs/fsync.cc
255
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/fsync.cc
267
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/fsync.cc
273
expect_write(ino, bufsize, CONTENTS);
tests/sys/fs/fusefs/fsync.cc
280
ASSERT_EQ(bufsize, write(fd1, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/fsync.cc
99
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/interrupt.cc
208
const size_t bufsize = FILESIZE;
tests/sys/fs/fusefs/interrupt.cc
209
char buf[bufsize];
tests/sys/fs/fusefs/interrupt.cc
213
r = read(fd, buf, bufsize);
tests/sys/fs/fusefs/interrupt.cc
584
const size_t bufsize = 80;
tests/sys/fs/fusefs/interrupt.cc
585
char buf[bufsize];
tests/sys/fs/fusefs/interrupt.cc
614
ASSERT_EQ(-1, read(fd, buf, bufsize));
tests/sys/fs/fusefs/notify.cc
485
ssize_t bufsize = sizeof(CONTENTS);
tests/sys/fs/fusefs/notify.cc
494
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/notify.cc
496
expect_write(ino, 0, bufsize, CONTENTS);
tests/sys/fs/fusefs/notify.cc
528
ssize_t bufsize = sizeof(CONTENTS);
tests/sys/fs/fusefs/notify.cc
549
out.body.attr.attr.size = bufsize;
tests/sys/fs/fusefs/notify.cc
556
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/notify.cc
571
EXPECT_EQ(bufsize, sb.st_size);
tests/sys/fs/fusefs/read.cc
1009
size_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
1014
expect_lookup(RELPATH, ino, bufsize);
tests/sys/fs/fusefs/read.cc
1022
in.body.read.size == bufsize);
tests/sys/fs/fusefs/read.cc
1026
out.header.len = sizeof(struct fuse_out_header) + bufsize;
tests/sys/fs/fusefs/read.cc
1027
memmove(out.body.bytes, CONTENTS, bufsize);
tests/sys/fs/fusefs/read.cc
1036
ASSERT_EQ(0, memcmp(p, CONTENTS, bufsize));
tests/sys/fs/fusefs/read.cc
1050
ssize_t bufsize = 65536;
tests/sys/fs/fusefs/read.cc
1051
ssize_t fragsize = bufsize / 4;
tests/sys/fs/fusefs/read.cc
1054
rbuf = new char[bufsize]();
tests/sys/fs/fusefs/read.cc
1064
expect_lookup(RELPATH, ino, bufsize);
tests/sys/fs/fusefs/read.cc
1074
ASSERT_EQ(bufsize, read(fd, rbuf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
1100
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
1101
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
1103
expect_lookup(RELPATH, ino, bufsize);
tests/sys/fs/fusefs/read.cc
1105
expect_read(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
1113
ASSERT_EQ(bufsize, read(fd, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
1136
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
1137
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
1139
expect_lookup(RELPATH, ino, bufsize);
tests/sys/fs/fusefs/read.cc
1141
expect_read(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
1146
ASSERT_EQ(bufsize, pread(fd, buf, bufsize, 0)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
1151
ASSERT_EQ(bufsize, pread(fd, buf, bufsize, 0)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
1172
size_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
1177
expect_lookup(RELPATH, ino, bufsize);
tests/sys/fs/fusefs/read.cc
1224
size_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
1242
out.header.len = sizeof(struct fuse_out_header) + bufsize;
tests/sys/fs/fusefs/read.cc
1243
memmove(out.body.bytes, CONTENTS, bufsize);
tests/sys/fs/fusefs/read.cc
1245
expect_getattr(ino, bufsize);
tests/sys/fs/fusefs/read.cc
1254
ASSERT_EQ(0, memcmp(p, CONTENTS, bufsize));
tests/sys/fs/fusefs/read.cc
1256
EXPECT_EQ((off_t)bufsize, sb.st_size);
tests/sys/fs/fusefs/read.cc
1277
size_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
1283
FuseTest::expect_lookup(RELPATH, ino, mode, bufsize, 1, 0);
tests/sys/fs/fusefs/read.cc
1297
out.body.attr.attr.size = bufsize;
tests/sys/fs/fusefs/read.cc
1350
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
1351
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
1353
expect_lookup(RELPATH, ino, bufsize);
tests/sys/fs/fusefs/read.cc
1355
expect_read(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
1361
ASSERT_EQ(bufsize, read(fd, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
1362
ASSERT_EQ(0, memcmp(buf, CONTENTS, bufsize));
tests/sys/fs/fusefs/read.cc
1365
expect_read(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
1368
ASSERT_EQ(bufsize, read(fd, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
1369
ASSERT_EQ(0, memcmp(buf, CONTENTS, bufsize));
tests/sys/fs/fusefs/read.cc
1386
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
1387
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
1389
expect_lookup(RELPATH, ino, offset + bufsize);
tests/sys/fs/fusefs/read.cc
1391
expect_read(ino, offset, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
1396
ASSERT_EQ(bufsize, pread(fd, buf, bufsize, offset)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
1397
ASSERT_EQ(0, memcmp(buf, CONTENTS, bufsize));
tests/sys/fs/fusefs/read.cc
1408
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
1409
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
1411
expect_lookup(RELPATH, ino, bufsize);
tests/sys/fs/fusefs/read.cc
1413
expect_read(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
1418
ASSERT_EQ(bufsize, read(fd, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
1419
ASSERT_EQ(0, memcmp(buf, CONTENTS, bufsize));
tests/sys/fs/fusefs/read.cc
1431
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
1432
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
1434
expect_lookup(RELPATH, ino, bufsize);
tests/sys/fs/fusefs/read.cc
1436
expect_read(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
1441
ASSERT_EQ(bufsize, read(fd, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
1442
ASSERT_EQ(0, memcmp(buf, CONTENTS, bufsize));
tests/sys/fs/fusefs/read.cc
1458
ssize_t bufsize = 8;
tests/sys/fs/fusefs/read.cc
1461
char buf[bufsize];
tests/sys/fs/fusefs/read.cc
1462
const char *contents1 = CONTENTS0 + bufsize;
tests/sys/fs/fusefs/read.cc
1475
ASSERT_EQ(bufsize, read(fd, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
1476
ASSERT_EQ(0, memcmp(buf, CONTENTS0, bufsize));
tests/sys/fs/fusefs/read.cc
1479
ASSERT_EQ(bufsize, read(fd, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
1480
ASSERT_EQ(0, memcmp(buf, contents1, bufsize));
tests/sys/fs/fusefs/read.cc
1493
size_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
1494
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
1498
expect_lookup(RELPATH, ino, bufsize);
tests/sys/fs/fusefs/read.cc
1506
in.body.read.size == bufsize);
tests/sys/fs/fusefs/read.cc
1510
out.header.len = sizeof(struct fuse_out_header) + bufsize;
tests/sys/fs/fusefs/read.cc
1511
memmove(out.body.bytes, CONTENTS, bufsize);
tests/sys/fs/fusefs/read.cc
1519
ASSERT_EQ(0, sendfile(fd, sp[1], 0, bufsize, NULL, &sbytes, 0))
tests/sys/fs/fusefs/read.cc
1521
ASSERT_EQ(static_cast<ssize_t>(bufsize), read(sp[0], buf, bufsize))
tests/sys/fs/fusefs/read.cc
1523
ASSERT_EQ(0, memcmp(buf, CONTENTS, bufsize));
tests/sys/fs/fusefs/read.cc
1539
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
1543
expect_lookup(RELPATH, ino, bufsize);
tests/sys/fs/fusefs/read.cc
1557
ASSERT_NE(0, sendfile(fd, sp[1], 0, bufsize, NULL, &sbytes, 0));
tests/sys/fs/fusefs/read.cc
1573
ssize_t bufsize = 4 * m_maxbcachebuf;
tests/sys/fs/fusefs/read.cc
1574
ssize_t filesize = bufsize;
tests/sys/fs/fusefs/read.cc
1581
rbuf = new char[bufsize]();
tests/sys/fs/fusefs/read.cc
1588
for (offs = 0; offs < bufsize; offs += clustersize) {
tests/sys/fs/fusefs/read.cc
1599
ASSERT_EQ(bufsize, read(fd, rbuf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
1600
ASSERT_EQ(0, memcmp(rbuf, contents, bufsize));
tests/sys/fs/fusefs/read.cc
1624
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
1625
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
1627
expect_lookup(RELPATH, ino, bufsize);
tests/sys/fs/fusefs/read.cc
1629
expect_read(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
1645
ASSERT_EQ(bufsize, read(fd, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
1656
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
1657
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
1662
expect_lookup(RELPATH, ino, bufsize);
tests/sys/fs/fusefs/read.cc
1664
expect_read(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
1683
ASSERT_EQ(bufsize, read(fd, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
185
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
186
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
189
expect_lookup(RELPATH, ino, bufsize);
tests/sys/fs/fusefs/read.cc
191
expect_read(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
196
iocb.aio_nbytes = bufsize;
tests/sys/fs/fusefs/read.cc
202
ASSERT_EQ(bufsize, aio_waitcomplete(&piocb, NULL)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
203
ASSERT_EQ(0, memcmp(buf, CONTENTS, bufsize));
tests/sys/fs/fusefs/read.cc
218
ssize_t bufsize = 50;
tests/sys/fs/fusefs/read.cc
219
char buf0[bufsize], buf1[bufsize];
tests/sys/fs/fusefs/read.cc
260
iocb0.aio_nbytes = bufsize;
tests/sys/fs/fusefs/read.cc
267
iocb1.aio_nbytes = bufsize;
tests/sys/fs/fusefs/read.cc
298
ssize_t bufsize = 50;
tests/sys/fs/fusefs/read.cc
299
char buf0[bufsize], buf1[bufsize];
tests/sys/fs/fusefs/read.cc
342
iocb0.aio_nbytes = bufsize;
tests/sys/fs/fusefs/read.cc
349
iocb1.aio_nbytes = bufsize;
tests/sys/fs/fusefs/read.cc
383
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
384
ssize_t partbufsize = 3 * bufsize / 4;
tests/sys/fs/fusefs/read.cc
386
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
389
expect_lookup(RELPATH, ino, offset + bufsize);
tests/sys/fs/fusefs/read.cc
391
expect_read(ino, 0, offset + bufsize, offset + partbufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
397
r = pread(fd, buf, bufsize, offset);
tests/sys/fs/fusefs/read.cc
420
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
421
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
436
out.body.attr.attr.size = bufsize;
tests/sys/fs/fusefs/read.cc
439
expect_read(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
444
ASSERT_EQ(bufsize, read(fd, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
445
ASSERT_EQ(0, memcmp(buf, CONTENTS, bufsize));
tests/sys/fs/fusefs/read.cc
464
size_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
465
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
466
size_t size1 = bufsize - 1;
tests/sys/fs/fusefs/read.cc
467
size_t size2 = bufsize;
tests/sys/fs/fusefs/read.cc
535
ASSERT_EQ(static_cast<ssize_t>(size1), read(fd, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
540
ASSERT_EQ(static_cast<ssize_t>(size2), pread(fd, buf, bufsize, 0)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
555
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
556
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
558
expect_lookup(RELPATH, ino, bufsize);
tests/sys/fs/fusefs/read.cc
560
expect_read(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
569
ASSERT_EQ(bufsize, read(fd, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
589
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
590
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
592
expect_lookup(RELPATH, ino, bufsize);
tests/sys/fs/fusefs/read.cc
594
expect_read(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
599
ASSERT_EQ(bufsize, pread(fd, buf, bufsize, 0)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
605
ASSERT_EQ(bufsize, pread(fd, buf, bufsize, 0)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
626
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
627
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
629
expect_lookup(RELPATH, ino, bufsize);
tests/sys/fs/fusefs/read.cc
631
expect_read(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
658
ASSERT_EQ(bufsize, read(fd, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
676
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
677
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
679
expect_lookup(RELPATH, ino, bufsize);
tests/sys/fs/fusefs/read.cc
681
expect_read(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
700
ASSERT_EQ(bufsize, read(fd, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
715
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
716
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
718
expect_lookup(RELPATH, ino, bufsize);
tests/sys/fs/fusefs/read.cc
720
expect_read(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
745
ASSERT_EQ(bufsize, read(fd, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
784
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
785
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
787
expect_lookup(RELPATH, ino, offset + bufsize);
tests/sys/fs/fusefs/read.cc
789
expect_read(ino, offset, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
794
ASSERT_EQ(bufsize, pread(fd, buf, bufsize, offset)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
795
ASSERT_EQ(0, memcmp(buf, CONTENTS, bufsize));
tests/sys/fs/fusefs/read.cc
799
expect_read(ino, offset, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
800
ASSERT_EQ(bufsize, pread(fd, buf, bufsize, offset)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
801
ASSERT_EQ(0, memcmp(buf, CONTENTS, bufsize));
tests/sys/fs/fusefs/read.cc
817
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
818
ssize_t halfbufsize = bufsize / 2;
tests/sys/fs/fusefs/read.cc
819
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
821
expect_lookup(RELPATH, ino, offset + bufsize);
tests/sys/fs/fusefs/read.cc
823
expect_read(ino, offset, bufsize, halfbufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
828
ASSERT_EQ(halfbufsize, pread(fd, buf, bufsize, offset))
tests/sys/fs/fusefs/read.cc
841
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
842
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
844
expect_lookup(RELPATH, ino, bufsize);
tests/sys/fs/fusefs/read.cc
856
ASSERT_EQ(-1, read(fd, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
874
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
875
ssize_t partbufsize = 3 * bufsize / 4;
tests/sys/fs/fusefs/read.cc
877
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
880
expect_lookup(RELPATH, ino, offset + bufsize);
tests/sys/fs/fusefs/read.cc
882
expect_read(ino, 0, offset + bufsize, offset + partbufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
888
r = pread(fd, buf, bufsize, offset);
tests/sys/fs/fusefs/read.cc
904
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
905
off_t old_filesize = m_maxbcachebuf * 2 + bufsize;
tests/sys/fs/fusefs/read.cc
906
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
911
expect_read(ino, 2 * m_maxbcachebuf, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
919
ASSERT_EQ(bufsize, pread(fd, buf, bufsize, m_maxbcachebuf * 2))
tests/sys/fs/fusefs/read.cc
922
ASSERT_EQ(0, pread(fd, buf, bufsize, m_maxbcachebuf))
tests/sys/fs/fusefs/read.cc
940
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
941
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
943
FuseTest::expect_lookup(RELPATH, ino, S_IFREG | 0644, bufsize, 2);
tests/sys/fs/fusefs/read.cc
945
expect_read(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
949
ASSERT_EQ(bufsize, read(fd0, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
958
ASSERT_EQ(bufsize, read(fd1, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
975
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/read.cc
976
uint8_t buf[bufsize];
tests/sys/fs/fusefs/read.cc
978
FuseTest::expect_lookup(RELPATH, ino, S_IFREG | 0644, bufsize, 2);
tests/sys/fs/fusefs/read.cc
980
expect_read(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
984
ASSERT_EQ(bufsize, read(fd0, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
993
expect_read(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/read.cc
995
ASSERT_EQ(bufsize, read(fd0, buf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/readdir.cc
197
const size_t bufsize = 8192;
tests/sys/fs/fusefs/readdir.cc
198
char buf[bufsize];
tests/sys/fs/fusefs/readdir.cc
229
ASSERT_LT(de0->d_reclen + offsetof(struct dirent, d_fileno), bufsize);
tests/sys/fs/fusefs/write.cc
1015
ssize_t bufsize = m_maxbcachebuf;
tests/sys/fs/fusefs/write.cc
1016
off_t filesize = 4 * bufsize;
tests/sys/fs/fusefs/write.cc
1018
wbuf = new char[bufsize];
tests/sys/fs/fusefs/write.cc
1019
memset(wbuf, 'X', bufsize);
tests/sys/fs/fusefs/write.cc
1036
ASSERT_EQ(bufsize, write(fd, wbuf, bufsize))
tests/sys/fs/fusefs/write.cc
1057
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
1062
maybe_expect_write(ino, offset, bufsize, CONTENTS);
tests/sys/fs/fusefs/write.cc
1067
ASSERT_EQ(bufsize, pwrite(fd, CONTENTS, bufsize, offset))
tests/sys/fs/fusefs/write.cc
1082
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
1083
uint8_t readbuf[bufsize];
tests/sys/fs/fusefs/write.cc
1087
expect_write(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/write.cc
1092
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1098
ASSERT_EQ(bufsize, read(fd, readbuf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1114
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
1115
uint8_t readbuf[bufsize];
tests/sys/fs/fusefs/write.cc
1119
FuseTest::expect_write(ino, 0, bufsize, bufsize, 0, FUSE_WRITE_CACHE,
tests/sys/fs/fusefs/write.cc
1121
expect_read(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/write.cc
1126
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1130
ASSERT_EQ(bufsize, read(fd, readbuf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1141
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
1142
uint8_t readbuf[bufsize];
tests/sys/fs/fusefs/write.cc
1146
FuseTest::expect_write(ino, 0, bufsize, bufsize, 0, FUSE_WRITE_CACHE,
tests/sys/fs/fusefs/write.cc
1148
expect_read(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/write.cc
1153
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1157
ASSERT_EQ(bufsize, read(fd, readbuf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1176
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
1196
memmove((uint8_t*)p, CONTENTS, bufsize);
tests/sys/fs/fusefs/write.cc
1214
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
1229
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1247
ssize_t bufsize = strlen(CONTENTS0) + 1;
tests/sys/fs/fusefs/write.cc
1249
char readbuf[bufsize];
tests/sys/fs/fusefs/write.cc
1257
FuseTest::expect_write(ino, m_maxbcachebuf, bufsize, bufsize, 0, 0,
tests/sys/fs/fusefs/write.cc
1265
ASSERT_EQ(bufsize, pwrite(fd, CONTENTS0, bufsize, 0))
tests/sys/fs/fusefs/write.cc
1270
ASSERT_EQ(bufsize, pwrite(fd, CONTENTS1, bufsize, m_maxbcachebuf))
tests/sys/fs/fusefs/write.cc
1275
ASSERT_EQ(bufsize, pread(fd, readbuf, bufsize, 0)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1415
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
1438
out.body.attr.attr.size = bufsize;
tests/sys/fs/fusefs/write.cc
1441
expect_write(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/write.cc
1450
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1484
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
1525
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1541
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
1564
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1576
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
1601
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1619
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
1620
uint8_t readbuf[bufsize];
tests/sys/fs/fusefs/write.cc
1624
expect_write(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/write.cc
1629
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1635
ASSERT_EQ(bufsize, read(fd, readbuf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1648
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
1652
expect_write(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/write.cc
1657
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1660
ASSERT_EQ(bufsize, sb.st_size);
tests/sys/fs/fusefs/write.cc
245
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
250
expect_write(ino, offset, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/write.cc
255
iocb.aio_nbytes = bufsize;
tests/sys/fs/fusefs/write.cc
261
ASSERT_EQ(bufsize, aio_waitcomplete(&piocb, NULL)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
369
ssize_t bufsize = strlen(CONTENTS0) + 1;
tests/sys/fs/fusefs/write.cc
370
char readbuf[bufsize];
tests/sys/fs/fusefs/write.cc
372
expect_lookup(RELPATH, ino, bufsize);
tests/sys/fs/fusefs/write.cc
374
expect_read(ino, 0, bufsize, bufsize, CONTENTS0);
tests/sys/fs/fusefs/write.cc
375
expect_write(ino, 0, bufsize, bufsize, CONTENTS1);
tests/sys/fs/fusefs/write.cc
381
ASSERT_EQ(bufsize, read(fd, readbuf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
386
ASSERT_EQ(bufsize, write(fd, CONTENTS1, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
389
expect_read(ino, 0, bufsize, bufsize, CONTENTS1);
tests/sys/fs/fusefs/write.cc
392
ASSERT_EQ(bufsize, read(fd, readbuf, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
411
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
418
expect_write(ino, 0, bufsize, bufsize0, CONTENTS);
tests/sys/fs/fusefs/write.cc
424
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
436
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
443
expect_write(ino, 0, bufsize, bufsize_out, CONTENTS);
tests/sys/fs/fusefs/write.cc
449
ASSERT_EQ(-1, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
474
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
479
expect_write(ino, 0, bufsize, bufsize_out, CONTENTS);
tests/sys/fs/fusefs/write.cc
484
ASSERT_EQ(-1, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
500
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
501
ssize_t halfbufsize = bufsize / 2;
tests/sys/fs/fusefs/write.cc
505
expect_write(ino, 0, bufsize, halfbufsize, CONTENTS);
tests/sys/fs/fusefs/write.cc
510
ASSERT_EQ(halfbufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
555
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
574
ASSERT_EQ(-1, pwrite(fd, CONTENTS, bufsize, offset));
tests/sys/fs/fusefs/write.cc
591
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
601
expect_write(ino, offset, bufsize / 2, bufsize / 2, CONTENTS);
tests/sys/fs/fusefs/write.cc
612
ASSERT_EQ(bufsize / 2, pwrite(fd, CONTENTS, bufsize, offset))
tests/sys/fs/fusefs/write.cc
633
ssize_t bufsize = strlen(CONTENTS) + 1;
tests/sys/fs/fusefs/write.cc
641
maybe_expect_write(ino, offset, bufsize, CONTENTS);
tests/sys/fs/fusefs/write.cc
646
ASSERT_EQ(bufsize, pwrite(fd, CONTENTS, bufsize, offset))
tests/sys/fs/fusefs/write.cc
741
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
751
memmove((uint8_t*)expected + offset, CONTENTS, bufsize);
tests/sys/fs/fusefs/write.cc
770
memmove((uint8_t*)p + offset, CONTENTS, bufsize);
tests/sys/fs/fusefs/write.cc
789
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
793
expect_write(ino, offset, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/write.cc
798
ASSERT_EQ(bufsize, pwrite(fd, CONTENTS, bufsize, offset))
tests/sys/fs/fusefs/write.cc
809
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
816
maybe_expect_write(ino, 0, bufsize, CONTENTS);
tests/sys/fs/fusefs/write.cc
821
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
841
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
845
expect_write(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/write.cc
850
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
862
ssize_t halfbufsize, bufsize;
tests/sys/fs/fusefs/write.cc
868
bufsize = halfbufsize * 2;
tests/sys/fs/fusefs/write.cc
869
contents = new int[bufsize / sizeof(int)];
tests/sys/fs/fusefs/write.cc
870
for (int i = 0; i < (int)bufsize / (int)sizeof(i); i++) {
tests/sys/fs/fusefs/write.cc
883
ASSERT_EQ(bufsize, write(fd, contents, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
896
ssize_t bufsize = 0;
tests/sys/fs/fusefs/write.cc
904
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
915
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
919
expect_write_7_8(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/write.cc
924
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
936
ssize_t bufsize = strlen(CONTENTS);
tests/sys/fs/fusefs/write.cc
940
expect_write(ino, 0, bufsize, bufsize, CONTENTS);
tests/sys/fs/fusefs/write.cc
956
ASSERT_EQ(bufsize, write(fd, CONTENTS, bufsize)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
968
ssize_t bufsize = m_maxbcachebuf;
tests/sys/fs/fusefs/write.cc
969
off_t filesize = 5 * bufsize;
tests/sys/fs/fusefs/write.cc
971
wbuf = new char[bufsize];
tests/sys/fs/fusefs/write.cc
972
memset(wbuf, 'X', bufsize);
tests/sys/fs/fusefs/write.cc
973
wbuf2x = new char[2 * bufsize];
tests/sys/fs/fusefs/write.cc
974
memset(wbuf2x, 'X', 2 * bufsize);
tests/sys/fs/fusefs/write.cc
983
expect_write(ino, 0, 2 * bufsize, 2 * bufsize, wbuf2x);
tests/sys/fs/fusefs/write.cc
984
expect_write(ino, 2 * bufsize, 2 * bufsize, 2 * bufsize, wbuf2x);
tests/sys/fs/fusefs/write.cc
992
ASSERT_EQ(bufsize, write(fd, wbuf, bufsize))
tests/sys/kern/unix_seqpacket_test.c
189
test_sendrecv_symmetric_buffers(int bufsize, int blocking) {
tests/sys/kern/unix_seqpacket_test.c
192
const ssize_t pktsize = bufsize / 2;
tests/sys/kern/unix_seqpacket_test.c
204
s = setsockopt(sv[0], SOL_SOCKET, SO_SNDBUF, &bufsize, sizeof(bufsize));
tests/sys/kern/unix_seqpacket_test.c
206
s = setsockopt(sv[1], SOL_SOCKET, SO_RCVBUF, &bufsize, sizeof(bufsize));
tests/sys/kern/unix_seqpacket_test.c
720
const int bufsize = 64;
tests/sys/kern/unix_seqpacket_test.c
722
char recv_buf[bufsize];
tests/sys/kern/unix_seqpacket_test.c
739
rsize = recv(sv[1], recv_buf, bufsize, MSG_WAITALL);
tests/sys/kern/unix_seqpacket_test.c
760
const int bufsize = 64;
tests/sys/kern/unix_seqpacket_test.c
762
char recv_buf[bufsize];
tests/sys/kern/unix_seqpacket_test.c
784
rsize = recvfrom(sv[1], recv_buf, bufsize, MSG_WAITALL,
tests/sys/kern/unix_seqpacket_test.c
814
const int bufsize = 64;
tests/sys/kern/unix_seqpacket_test.c
816
char recv_buf[bufsize];
tests/sys/kern/unix_seqpacket_test.c
832
rsize = recv(sv[1], recv_buf, bufsize, MSG_WAITALL);
tests/sys/kern/unix_seqpacket_test.c
934
const int bufsize = 64;
tests/sys/kern/unix_seqpacket_test.c
936
char recv_buf[bufsize];
tests/sys/kern/unix_seqpacket_test.c
944
rsize = recv(sv[1], recv_buf, bufsize, MSG_WAITALL);
tests/sys/kern/unix_seqpacket_test.c
958
rsize = recv(sv[1], recv_buf, bufsize, MSG_WAITALL);
tests/sys/net/routing/rtsock_print.h
97
_printb(char *buf, size_t bufsize, int b, const char *str)
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
325
init_hdrs(struct msghdr *mhp, struct cmsghdr *cmhp, char *bufp, size_t bufsize)
tools/regression/netinet6/inet6_rth/inet6_rth-segments.c
332
memset((void *)bufp, 0, bufsize);
tools/regression/netinet6/inet6_rth/test_subr.c
44
set_funcname(char *bufp, size_t bufsize)
tools/regression/netinet6/inet6_rth/test_subr.c
47
bufsize < FUNCNAMESIZE ? bufsize : FUNCNAMESIZE);
tools/test/stress2/testcases/mkfifo/mkfifo.c
117
bufsize = 2 << random_int(2, 12);
tools/test/stress2/testcases/mkfifo/mkfifo.c
43
static int bufsize, freespace;
tools/test/stress2/testcases/mkfifo/mkfifo.c
54
if ((buf = malloc(bufsize)) == NULL)
tools/test/stress2/testcases/mkfifo/mkfifo.c
55
err(1, "malloc(%d), %s:%d", bufsize, __FILE__, __LINE__);
tools/test/stress2/testcases/mkfifo/mkfifo.c
62
if ((n = read(fd, buf, bufsize)) < 0)
tools/test/stress2/testcases/mkfifo/mkfifo.c
78
if ((buf = malloc(bufsize)) == NULL)
tools/test/stress2/testcases/mkfifo/mkfifo.c
79
err(1, "malloc(%d), %s:%d", bufsize, __FILE__, __LINE__);
tools/test/stress2/testcases/mkfifo/mkfifo.c
80
memset(buf, 0, bufsize);
tools/test/stress2/testcases/mkfifo/mkfifo.c
82
if (write(fd, buf, bufsize) < 0)
tools/test/stress2/testcases/socket/socket.c
45
static int bufsize;
tools/test/stress2/testcases/socket/socket.c
52
if ((buf = malloc(bufsize)) == NULL)
tools/test/stress2/testcases/socket/socket.c
53
err(1, "malloc(%d), %s:%d", bufsize, __FILE__, __LINE__);
tools/test/stress2/testcases/socket/socket.c
55
if ((n = read(sv[0], buf, bufsize)) < 0)
tools/test/stress2/testcases/socket/socket.c
67
if ((buf = malloc(bufsize)) == NULL)
tools/test/stress2/testcases/socket/socket.c
68
err(1, "malloc(%d), %s:%d", bufsize, __FILE__, __LINE__);
tools/test/stress2/testcases/socket/socket.c
69
for (i = 0; i < bufsize / (int)sizeof(int); i++)
tools/test/stress2/testcases/socket/socket.c
73
for (i = 0; i < NB; i+= bufsize) {
tools/test/stress2/testcases/socket/socket.c
74
if (write(sv[1], buf, bufsize) < 0) {
tools/test/stress2/testcases/socket/socket.c
89
bufsize = 2 << random_int(2, 12);
tools/test/stress2/testcases/tcp/tcp.c
135
if ((buf = malloc(bufsize)) == NULL)
tools/test/stress2/testcases/tcp/tcp.c
136
err(1, "malloc(%d), %s:%d", bufsize, __FILE__, __LINE__);
tools/test/stress2/testcases/tcp/tcp.c
137
for (i = 0; i < bufsize / (int)sizeof(int); i++)
tools/test/stress2/testcases/tcp/tcp.c
141
for (i = 0; i < NB; i+= bufsize) {
tools/test/stress2/testcases/tcp/tcp.c
142
if (write(tcpsock, buf, bufsize) < 0) {
tools/test/stress2/testcases/tcp/tcp.c
159
bufsize = 2 << random_int(1, 12);
tools/test/stress2/testcases/tcp/tcp.c
48
static int bufsize;
tools/test/stress2/testcases/tcp/tcp.c
88
if ((buf = malloc(bufsize)) == NULL)
tools/test/stress2/testcases/tcp/tcp.c
89
err(1, "malloc(%d), %s:%d", bufsize, __FILE__, __LINE__);
tools/test/stress2/testcases/tcp/tcp.c
91
if ((n = read(msgsock, buf, bufsize)) < 0)
tools/test/stress2/testcases/udp/udp.c
100
n = write(f, buf, bufsize);
tools/test/stress2/testcases/udp/udp.c
106
err(1, "write(%d) #%d", bufsize, i);
tools/test/stress2/testcases/udp/udp.c
42
static int bufsize;
tools/test/stress2/testcases/udp/udp.c
47
bufsize = 2 << random_int(1, 12);
tools/test/stress2/testcases/udp/udp.c
94
if ((buf = calloc(1, bufsize)) == NULL)
tools/test/stress2/testcases/udp/udp.c
95
err(1, "malloc(%d), %s:%d", bufsize, __FILE__, __LINE__);
tools/test/stress2/testcases/udp/udp.c
98
printf("udp %s:9 with %d bytes\n", hostname, bufsize);
tools/tools/cxgbtool/cxgbtool.c
1572
la.bufsize = LA_BUFSIZE;
tools/tools/cxgbtool/cxgbtool.c
1573
la.data = malloc(la.bufsize);
tools/tools/cxgbtool/cxgbtool.c
1583
entries = la.bufsize / 4;
tools/tools/cxgbtool/cxgbtool.c
1606
ioqs.bufsize = IOQS_BUFSIZE;
tools/tools/cxgbtool/cxgbtool.c
1619
entries = ioqs.bufsize / sizeof(struct t3_ioq_entry);
tools/tools/intel-ucode-split/intel-ucode-split.c
150
buf = malloc(bufsize);
tools/tools/intel-ucode-split/intel-ucode-split.c
198
len = resid < bufsize ? resid : bufsize;
tools/tools/intel-ucode-split/intel-ucode-split.c
37
static const size_t bufsize = 65536;
tools/tools/kttcp/kttcp.c
106
int bufsize;
tools/tools/kttcp/kttcp.c
125
bufsize = KTTCP_SOCKBUF_DEFAULT;
tools/tools/kttcp/kttcp.c
145
bufsize = ull;
tools/tools/kttcp/kttcp.c
214
printf("kttcp: socket buffer size: %d\n", bufsize);
tools/tools/kttcp/kttcp.c
225
if (setsockopt(s, SOL_SOCKET, SO_SNDBUF, &bufsize, sizeof (int))
tools/tools/kttcp/kttcp.c
249
if (setsockopt(s2, SOL_SOCKET, SO_RCVBUF, &bufsize,
usr.bin/cut/cut.c
271
size_t col, i, bufsize = 0;
usr.bin/cut/cut.c
279
while ((lbuflen = getline(&lbuf, &bufsize, fp)) >= 0) {
usr.bin/cut/cut.c
388
size_t clen, bufsize = 0, reallen;
usr.bin/cut/cut.c
391
while ((lbuflen = getline(&lbuf, &bufsize, fp)) >= 0) {
usr.bin/cut/cut.c
396
if ((ssize_t)bufsize < (lbuflen + 1)) {
usr.bin/cut/cut.c
397
bufsize = lbuflen + 1;
usr.bin/cut/cut.c
398
lbuf = realloc(lbuf, bufsize);
usr.bin/diff3/diff3.c
350
static size_t bufsize = 0;
usr.bin/diff3/diff3.c
352
if ((len = getline(&buf, &bufsize, b)) < 0)
usr.bin/etdump/etdump.c
119
dump_section(char *buffer, size_t bufsize, size_t offset, FILE *outfile,
usr.bin/etdump/etdump.c
128
if (offset + sizeof(boot_catalog_section_header) > bufsize)
usr.bin/etdump/etdump.c
141
bufsize)
usr.bin/head/head.c
160
size_t error, bufsize = 0;
usr.bin/head/head.c
163
while (cnt != 0 && (readlen = getline(&cp, &bufsize, fp)) >= 0) {
usr.bin/hexdump/conv.c
101
clen = mbrtowc(&wc, p, bufsize, &pr->mbstate);
usr.bin/hexdump/conv.c
124
oclen = bufsize;
usr.bin/hexdump/conv.c
126
bufsize = peek(p = peekbuf, MB_CUR_MAX);
usr.bin/hexdump/conv.c
45
conv_c(PR *pr, u_char *p, size_t bufsize)
usr.bin/indent/indent.c
124
combuf = (char *) malloc(bufsize);
usr.bin/indent/indent.c
127
labbuf = (char *) malloc(bufsize);
usr.bin/indent/indent.c
130
codebuf = (char *) malloc(bufsize);
usr.bin/indent/indent.c
133
tokenbuf = (char *) malloc(bufsize);
usr.bin/indent/indent.c
138
l_com = combuf + bufsize - 5;
usr.bin/indent/indent.c
139
l_lab = labbuf + bufsize - 5;
usr.bin/indent/indent.c
140
l_code = codebuf + bufsize - 5;
usr.bin/indent/indent.c
141
l_token = tokenbuf + bufsize - 5;
usr.bin/iscsictl/periphs.c
68
int bufsize, fd;
usr.bin/iscsictl/periphs.c
89
bufsize = sizeof(struct dev_match_result) * 100;
usr.bin/iscsictl/periphs.c
90
ccb.cdm.match_buf_len = bufsize;
usr.bin/iscsictl/periphs.c
91
ccb.cdm.matches = (struct dev_match_result *)malloc(bufsize);
usr.bin/m4/gnum4.c
190
static size_t bufsize = 0;
usr.bin/m4/gnum4.c
212
while (current + n > bufsize) {
usr.bin/m4/gnum4.c
213
if (bufsize == 0)
usr.bin/m4/gnum4.c
214
bufsize = 1024;
usr.bin/m4/gnum4.c
215
else if (bufsize <= SIZE_MAX/2) {
usr.bin/m4/gnum4.c
216
bufsize *= 2;
usr.bin/m4/gnum4.c
220
buffer = xrealloc(buffer, bufsize, NULL);
usr.bin/m4/gnum4.c
229
if (current +1 > bufsize) {
usr.bin/m4/gnum4.c
230
if (bufsize == 0)
usr.bin/m4/gnum4.c
231
bufsize = 1024;
usr.bin/m4/gnum4.c
233
bufsize *= 2;
usr.bin/m4/gnum4.c
234
buffer = xrealloc(buffer, bufsize, NULL);
usr.bin/m4/misc.c
166
buf = xalloc(bufsize, NULL);
usr.bin/m4/misc.c
169
endpbb = buf + bufsize;
usr.bin/m4/misc.c
201
bufsize += bufsize/2;
usr.bin/m4/misc.c
202
newbuf = xrealloc(buf, bufsize, "too many characters pushed back");
usr.bin/m4/misc.c
208
endpbb = buf+bufsize;
usr.bin/m4/misc.c
58
static size_t bufsize = BUFSIZE;
usr.bin/netstat/nhops.c
123
print_sockaddr_buf(char *buf, size_t bufsize, const struct sockaddr *sa)
usr.bin/netstat/nhops.c
129
buf, bufsize);
usr.bin/netstat/nhops.c
133
buf, bufsize);
usr.bin/netstat/nhops.c
136
snprintf(buf, bufsize, "unknown:%d", sa->sa_family);
usr.bin/sockstat/main.c
1142
format_unix_faddr(struct addr *faddr, char *buf, size_t bufsize) {
usr.bin/sockstat/main.c
1144
#define SAFESIZE (buf == NULL ? 0 : bufsize - pos)
usr.bin/sockstat/main.c
1410
display_sock(struct sock *s, struct col_widths *cw, char *buf, size_t bufsize)
usr.bin/sockstat/main.c
1418
snprintf(buf, bufsize, "%s%s%s",
usr.bin/sockstat/main.c
1430
formataddr(&laddr->address, buf, bufsize);
usr.bin/sockstat/main.c
1449
bufsize);
usr.bin/sockstat/main.c
1464
formataddr(&laddr->address, buf, bufsize);
usr.bin/sockstat/main.c
1476
formataddr(&faddr->address, buf, bufsize);
usr.bin/sockstat/main.c
1490
snprintf(buf, bufsize, "%#*" PRIx64,
usr.bin/sockstat/main.c
1504
buf, bufsize);
usr.bin/sockstat/main.c
1507
strlcpy(buf, "??", bufsize);
usr.bin/sockstat/main.c
1509
strlcpy(buf, "??", bufsize);
usr.bin/sockstat/main.c
1517
snprintf(buf, bufsize, "%" PRIu64,
usr.bin/sockstat/main.c
1649
const size_t bufsize = 512;
usr.bin/sockstat/main.c
1651
if ((buf = (char *)malloc(bufsize)) == NULL) {
usr.bin/sockstat/main.c
1740
display_sock(s, &cw, buf, bufsize);
usr.bin/sockstat/main.c
1754
display_sock(s, &cw, buf, bufsize);
usr.bin/sockstat/main.c
1767
display_sock(s, &cw, buf, bufsize);
usr.bin/sockstat/main.c
630
size_t len, bufsize;
usr.bin/sockstat/main.c
662
bufsize = 8192;
usr.bin/sockstat/main.c
666
if ((buf = realloc(buf, bufsize)) == NULL)
usr.bin/sockstat/main.c
668
len = bufsize;
usr.bin/sockstat/main.c
674
if (errno != ENOMEM || len != bufsize)
usr.bin/sockstat/main.c
676
bufsize *= 2;
usr.bin/sockstat/main.c
795
size_t len, bufsize;
usr.bin/sockstat/main.c
816
bufsize = 8192;
usr.bin/sockstat/main.c
820
if ((buf = realloc(buf, bufsize)) == NULL)
usr.bin/sockstat/main.c
822
len = bufsize;
usr.bin/sockstat/main.c
826
if (errno != ENOMEM || len != bufsize)
usr.bin/sockstat/main.c
828
bufsize *= 2;
usr.bin/sockstat/main.c
926
formataddr(struct sockaddr_storage *ss, char *buf, size_t bufsize)
usr.bin/sockstat/main.c
954
return snprintf(buf, bufsize, "%.*s",
usr.bin/sockstat/main.c
970
return (snprintf(buf, bufsize, "[%s]:*", addrstr));
usr.bin/sockstat/main.c
971
return (snprintf(buf, bufsize, "[%s]:%d", addrstr, port));
usr.bin/sockstat/main.c
974
return (snprintf(buf, bufsize, "%s:*", addrstr));
usr.bin/sockstat/main.c
975
return (snprintf(buf, bufsize, "%s:%d", addrstr, port));
usr.bin/split/split.c
276
size_t bufsize;
usr.bin/split/split.c
282
bufsize = 0;
usr.bin/split/split.c
289
while ((errno = 0, len = getline(&buf, &bufsize, infp)) > 0) {
usr.bin/vmstat/vmstat.c
203
int bufsize, c, reps, todo;
usr.bin/vmstat/vmstat.c
300
bufsize = 0;
usr.bin/vmstat/vmstat.c
322
bufsize += strlen(namelist[c].n_name)
usr.bin/vmstat/vmstat.c
324
bufsize += len + 1;
usr.bin/vmstat/vmstat.c
325
buf = bp = alloca(bufsize);
usr.bin/xinstall/xinstall.c
1097
static size_t bufsize;
usr.bin/xinstall/xinstall.c
1110
bufsize = MIN(BUFSIZE_MAX, MAXPHYS * 8);
usr.bin/xinstall/xinstall.c
1112
bufsize = BUFSIZE_SMALL;
usr.bin/xinstall/xinstall.c
1113
buf = malloc(bufsize * 2);
usr.bin/xinstall/xinstall.c
1117
buf2 = buf + bufsize;
usr.bin/xinstall/xinstall.c
1123
n1 = read(from_fd, buf1, bufsize);
usr.bin/xinstall/xinstall.c
1181
static size_t bufsize;
usr.bin/xinstall/xinstall.c
1222
bufsize = MIN(BUFSIZE_MAX, MAXPHYS * 8);
usr.bin/xinstall/xinstall.c
1224
bufsize = BUFSIZE_SMALL;
usr.bin/xinstall/xinstall.c
1225
buf = malloc(bufsize);
usr.bin/xinstall/xinstall.c
1230
if ((nr = read(from_fd, buf, bufsize)) < 0) {
usr.sbin/bhyve/pci_virtio_scsi.c
480
size_t bufsize)
usr.sbin/bhyve/pci_virtio_scsi.c
486
if (bufsize < sizeof(uint32_t)) {
usr.sbin/bhyve/pci_virtio_scsi.c
494
if (bufsize != sizeof(*tmf)) {
usr.sbin/bhyve/pci_virtio_scsi.c
495
WPRINTF("ignoring tmf request with size %zu", bufsize);
usr.sbin/bhyve/pci_virtio_scsi.c
501
if (bufsize != sizeof(*an)) {
usr.sbin/bhyve/pci_virtio_scsi.c
502
WPRINTF("ignoring AN request with size %zu", bufsize);
usr.sbin/bhyve/pci_virtio_scsi.c
896
size_t bufsize;
usr.sbin/bhyve/pci_virtio_scsi.c
905
bufsize = iov_to_buf(iov, n, &buf);
usr.sbin/bhyve/pci_virtio_scsi.c
906
pci_vtscsi_control_handle(sc, buf, bufsize);
usr.sbin/bhyve/pci_virtio_scsi.c
907
buf_to_iov((uint8_t *)buf, bufsize, iov, n);
usr.sbin/bhyve/pci_virtio_scsi.c
912
vq_relchain(vq, req.idx, bufsize);
usr.sbin/bluetooth/hccontrol/le.c
1049
bufsize = sizeof(b);
usr.sbin/bluetooth/hccontrol/le.c
1050
if (hci_recv(s, b, &bufsize) == ERROR) {
usr.sbin/bluetooth/hccontrol/le.c
1054
if (bufsize < sizeof(*e)) {
usr.sbin/bluetooth/hccontrol/le.c
1157
int n, bufsize;
usr.sbin/bluetooth/hccontrol/le.c
1191
bufsize = sizeof(b);
usr.sbin/bluetooth/hccontrol/le.c
1192
if (hci_recv(s, b, &bufsize) == ERROR) {
usr.sbin/bluetooth/hccontrol/le.c
1196
if (bufsize < sizeof(*e)) {
usr.sbin/bluetooth/hccontrol/le.c
647
int n, bufsize, scancount, numscans;
usr.sbin/bluetooth/hccontrol/le.c
722
bufsize = sizeof(b);
usr.sbin/bluetooth/hccontrol/le.c
723
if (hci_recv(s, b, &bufsize) == ERROR) {
usr.sbin/bluetooth/hccontrol/le.c
727
if (bufsize < sizeof(*e)) {
usr.sbin/bluetooth/hccontrol/le.c
965
int n, scancount, bufsize;
usr.sbin/makefs/ffs.c
491
int i, bufsize;
usr.sbin/makefs/ffs.c
511
bufsize = 8192;
usr.sbin/makefs/ffs.c
514
image, bufsize);
usr.sbin/makefs/ffs.c
516
bufsize = sfs.f_iosize;
usr.sbin/makefs/ffs.c
533
bufsize);
usr.sbin/makefs/ffs.c
534
buf = ecalloc(1, bufsize);
usr.sbin/makefs/ffs.c
545
i = write(fsopts->fd, buf, MIN(bufsize, bufrem));
usr.sbin/makefs/ffs/ffs_balloc.c
333
ffs_balloc_ufs2(struct inode *ip, off_t offset, int bufsize,
usr.sbin/makefs/ffs/ffs_balloc.c
349
size = blkoff(fs, offset) + bufsize;
usr.sbin/makefs/ffs/ffs_balloc.c
66
ffs_balloc(struct inode *ip, off_t offset, int bufsize, struct m_buf **bpp)
usr.sbin/makefs/ffs/ffs_balloc.c
69
return ffs_balloc_ufs2(ip, offset, bufsize, bpp);
usr.sbin/makefs/ffs/ffs_balloc.c
71
return ffs_balloc_ufs1(ip, offset, bufsize, bpp);
usr.sbin/makefs/ffs/ffs_balloc.c
75
ffs_balloc_ufs1(struct inode *ip, off_t offset, int bufsize,
usr.sbin/makefs/ffs/ffs_balloc.c
92
size = blkoff(fs, offset) + bufsize;
usr.sbin/mfiutil/mfi_cmd.c
265
mfi_dcmd_command(int fd, uint32_t opcode, void *buf, size_t bufsize,
usr.sbin/mfiutil/mfi_cmd.c
285
dcmd->header.data_len = bufsize;
usr.sbin/mfiutil/mfi_cmd.c
289
ioc.buf_size = bufsize;
usr.sbin/mfiutil/mfiutil.h
156
int mfi_dcmd_command(int fd, uint32_t opcode, void *buf, size_t bufsize,
usr.sbin/mptutil/mpt_cam.c
127
size_t bufsize;
usr.sbin/mptutil/mpt_cam.c
149
bufsize = sizeof(struct dev_match_result) * 5;
usr.sbin/mptutil/mpt_cam.c
151
ccb.cdm.match_buf_len = bufsize;
usr.sbin/mptutil/mpt_cam.c
152
ccb.cdm.matches = calloc(1, bufsize);
usr.sbin/mptutil/mpt_cam.c
154
bufsize = sizeof(struct dev_match_pattern) * 1;
usr.sbin/mptutil/mpt_cam.c
156
ccb.cdm.pattern_buf_len = bufsize;
usr.sbin/mptutil/mpt_cam.c
157
ccb.cdm.patterns = calloc(1, bufsize);
usr.sbin/mptutil/mpt_cam.c
397
size_t bufsize;
usr.sbin/mptutil/mpt_cam.c
414
bufsize = sizeof(struct dev_match_result) * (count + 1);
usr.sbin/mptutil/mpt_cam.c
416
ccb.cdm.match_buf_len = bufsize;
usr.sbin/mptutil/mpt_cam.c
417
ccb.cdm.matches = calloc(1, bufsize);
usr.sbin/mptutil/mpt_cam.c
419
bufsize = sizeof(struct dev_match_pattern) * 1;
usr.sbin/mptutil/mpt_cam.c
421
ccb.cdm.pattern_buf_len = bufsize;
usr.sbin/mptutil/mpt_cam.c
422
ccb.cdm.patterns = calloc(1, bufsize);
usr.sbin/mptutil/mpt_cam.c
64
size_t bufsize;
usr.sbin/mptutil/mpt_cam.c
75
bufsize = sizeof(struct dev_match_result) * 1;
usr.sbin/mptutil/mpt_cam.c
77
ccb.cdm.match_buf_len = bufsize;
usr.sbin/mptutil/mpt_cam.c
78
ccb.cdm.matches = calloc(1, bufsize);
usr.sbin/mptutil/mpt_cam.c
80
bufsize = sizeof(struct dev_match_pattern) * 1;
usr.sbin/mptutil/mpt_cam.c
82
ccb.cdm.pattern_buf_len = bufsize;
usr.sbin/mptutil/mpt_cam.c
83
ccb.cdm.patterns = calloc(1, bufsize);
usr.sbin/newsyslog/extern.h
65
char *timebuf, size_t bufsize);
usr.sbin/newsyslog/ptimes.c
499
char *timebuf, size_t bufsize)
usr.sbin/newsyslog/ptimes.c
513
if (bufsize < sizeof(NILVALUE)) {
usr.sbin/newsyslog/ptimes.c
523
strlcpy(timebuf, NILVALUE, bufsize);
usr.sbin/newsyslog/ptimes.c
543
chars = snprintf(timebuf, bufsize,
usr.sbin/newsyslog/ptimes.c
552
if (chars >= (int)bufsize) {
usr.sbin/newsyslog/ptimes.c
553
strlcpy(timebuf, NILVALUE, bufsize);
usr.sbin/rarpd/rarpd.c
508
int bufsize, maxfd = 0;
usr.sbin/rarpd/rarpd.c
515
if (ioctl(iflist->ii_fd, BIOCGBLEN, (caddr_t)&bufsize) == -1) {
usr.sbin/rarpd/rarpd.c
519
buf = malloc(bufsize);
usr.sbin/rarpd/rarpd.c
549
cc = read(fd, (char *)buf, bufsize);
usr.sbin/rpc.umntall/rpc.umntall.c
227
size_t bufsize;
usr.sbin/rpc.umntall/rpc.umntall.c
236
bufsize = (mntsize + 1) * sizeof(struct statfs);
usr.sbin/rpc.umntall/rpc.umntall.c
237
if ((mntbuf = malloc(bufsize)) == NULL)
usr.sbin/rpc.umntall/rpc.umntall.c
239
mntsize = getfsstat(mntbuf, (long)bufsize, MNT_NOWAIT);
usr.sbin/uathload/uathload.c
130
int bufsize = 512, verbose = 0;
usr.sbin/uathload/uathload.c
178
if (ioctl(msg, USB_SET_RX_BUFFER_SIZE, &bufsize) < 0)
usr.sbin/uathload/uathload.c
179
err(-1, "%s: USB_SET_RX_BUFFER_SIZE(%u)", msgdev, bufsize);
usr.sbin/usbdump/usbdump.c
696
cc = read(p->fd, (uint8_t *)p->buffer, p->bufsize);
usr.sbin/usbdump/usbdump.c
79
uint32_t bufsize;
usr.sbin/usbdump/usbdump.c
954
p->bufsize = v;
usr.sbin/usbdump/usbdump.c
955
p->buffer = (uint8_t *)malloc(p->bufsize);
usr.sbin/virtual_oss/virtual_oss/main.c
347
int bufsize;
usr.sbin/virtual_oss/virtual_oss/main.c
408
bufsize = pvc->buffer_frags * pvc->buffer_size;
usr.sbin/virtual_oss/virtual_oss/main.c
409
bufsize_internal = ((uint64_t)bufsize * (uint64_t)voss_dsp_sample_rate * 8ULL) /
usr.sbin/virtual_oss/virtual_oss/main.c
428
if (vring_alloc(&pvc->rx_ring[1], bufsize))
usr.sbin/virtual_oss/virtual_oss/main.c
432
if (vring_alloc(&pvc->tx_ring[1], bufsize))