/netbsd-current/external/bsd/mdocml/dist/ |
H A D | compat_getline.c | 32 getline(char **buf, size_t *bufsz, FILE *fp) argument 38 if (buf == NULL || bufsz == NULL) { 44 *bufsz = 0; 50 if (pos + 1 >= *bufsz) { 51 nbufsz = *bufsz ? *bufsz * 2 : BUFSIZ; 55 *bufsz = nbufsz;
|
/netbsd-current/crypto/external/bsd/openssl/dist/apps/lib/ |
H A D | app_params.c | 13 static int describe_param_type(char *buf, size_t bufsz, const OSSL_PARAM *param) argument 45 printed_len = BIO_snprintf(buf, bufsz, "%s: ", param->key); 48 bufsz -= printed_len; 50 printed_len = BIO_snprintf(buf, bufsz, "%s%s", type_mod, type); 53 bufsz -= printed_len; 56 printed_len = BIO_snprintf(buf, bufsz, " [%d]", param->data_type); 59 bufsz -= printed_len; 63 printed_len = BIO_snprintf(buf, bufsz, " (arbitrary size)"); 65 printed_len = BIO_snprintf(buf, bufsz, " (max %zu bytes large)", 69 bufsz [all...] |
/netbsd-current/tools/compat/ |
H A D | fgetln.c | 40 static size_t bufsz = 0; local 52 bufsz = BUFSIZ; 56 if (r == bufsz) { 61 if (!(p = realloc(buf, 2 * bufsz))) { 65 buf = NULL, bufsz = 0; 68 buf = p, bufsz = 2 * bufsz;
|
/netbsd-current/external/bsd/elftoolchain/dist/libelf/ |
H A D | libelf_open.c | 61 size_t bufsz, datasz; local 66 bufsz = _LIBELF_INITSIZE; 67 if ((buf = malloc(bufsz)) == NULL) 76 if (datasz == bufsz) { 77 bufsz *= 2; 78 if ((t = realloc(buf, bufsz)) == NULL) 84 assert(bufsz - datasz > 0); 86 if ((readsz = read(fd, t, bufsz - datasz)) <= 0) 89 } while (datasz < bufsz); 103 if (bufsz > datas [all...] |
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/sha/ |
H A D | sha3.c | 18 ctx->bufsz = 0; 54 if ((num = ctx->bufsz) != 0) { /* process intermediate buffer? */ 59 ctx->bufsz += len; 70 ctx->bufsz = 0; 81 ctx->bufsz = rem; 90 size_t num = ctx->bufsz;
|
/netbsd-current/external/gpl3/binutils/dist/gprofng/src/ |
H A D | SAXParserFactory.cc | 187 int bufsz; member in class:SAXParserP 199 bufsz = 0x2000; 200 buffer = (char*) malloc (bufsz); 216 bufsz = 8192; 217 buffer = (char*) realloc (buffer, bufsz); 231 int rem = bufsz; 245 int oldbufsz = bufsz; 246 bufsz = bufsz >= 0x100000 ? bufsz [all...] |
/netbsd-current/sys/arch/ia64/stand/efi/libefi/ |
H A D | efinet.c | 150 UINTN bufsz; local 158 bufsz = sizeof(buf); 159 status = net->Receive(net, 0, &bufsz, buf, 0, 0, 0); 167 if (bufsz > len) 168 bufsz = len; 169 memcpy(pkt, buf, bufsz); 170 return bufsz;
|
/netbsd-current/external/bsd/flex/dist/src/ |
H A D | regex.c | 138 #define bufsz 20 macro 139 char buf[bufsz]; 145 if (regmatch_len (m) < bufsz)
|
/netbsd-current/crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ |
H A D | ciphercommon.c | 191 ctx->bufsz = 0; 328 if (ctx->bufsz != 0) 329 nextblocks = ossl_cipher_fillblock(ctx->buf, &ctx->bufsz, blksz, 339 if (ctx->bufsz == blksz && (ctx->enc || inl > 0 || !ctx->pad)) { 348 ctx->bufsz = 0; 375 && !ossl_cipher_trailingdata(ctx->buf, &ctx->bufsz, blksz, &in, &inl)) { 401 ossl_cipher_padblock(ctx->buf, &ctx->bufsz, blksz); 402 } else if (ctx->bufsz == 0) { 405 } else if (ctx->bufsz != blksz) { 418 ctx->bufsz [all...] |
/netbsd-current/sys/external/bsd/drm/dist/shared-core/ |
H A D | r300_cmdbuf.c | 333 cmdbuf->bufsz -= sz * 4; 359 if (sz * 4 > cmdbuf->bufsz) 381 cmdbuf->bufsz -= sz * 4; 404 if (sz * 16 > cmdbuf->bufsz) 432 cmdbuf->bufsz -= sz * 16; 446 if (8 * 4 > cmdbuf->bufsz) 466 cmdbuf->bufsz -= 8 * 4; 534 cmdbuf->bufsz -= (count + 2) * 4; 579 cmdbuf->bufsz -= (count+2)*4; 610 cmdbuf->bufsz [all...] |
/netbsd-current/lib/libcrypt/ |
H A D | hmac.c | 142 b2x(char *buf, int bufsz, unsigned char *data, int nbytes) argument 146 if (bufsz <= (nbytes * 2)) 158 x2b(unsigned char *buf, int bufsz, char *data, int nbytes) argument 166 if (bufsz <= nbytes)
|
/netbsd-current/external/mpl/bind/dist/lib/isc/ |
H A D | picohttpparser.h | 81 /* the function rewrites the buffer given as (buf, bufsz) removing the chunked- 82 * encoding headers. When the function returns without an error, bufsz is 87 * octets left undecoded, that starts from the offset returned by `*bufsz`. 92 size_t *bufsz);
|
H A D | picohttpparser.c | 605 size_t dst = 0, src = 0, bufsz = *_bufsz; local 613 if (src == bufsz) 637 if (src == bufsz) 655 size_t avail = bufsz - src; 675 if (src == bufsz) 689 if (src == bufsz) 700 if (src == bufsz) 714 ret = bufsz - src; 717 memmove(buf + dst, buf + src, bufsz - src);
|
/netbsd-current/lib/libc/db/btree/ |
H A D | bt_overflow.c | 77 * bufsz: storage size 83 __ovfl_get(BTREE *t, void *p, size_t *ssz, void **buf, size_t *bufsz) argument 99 if (*bufsz < sz) { 104 *bufsz = sz;
|
/netbsd-current/external/gpl3/gcc.old/dist/gcc/ |
H A D | sort.cc | 264 size_t bufsz = (n / 2) * size; 265 void *buf = bufsz <= sizeof scratch ? scratch : xmalloc (bufsz); 283 size_t bufsz = (n / 2) * size; 284 void *buf = bufsz <= sizeof scratch ? scratch : xmalloc (bufsz);
|
/netbsd-current/crypto/external/bsd/openssl/dist/providers/implementations/digests/ |
H A D | sha3_prov.c | 78 if ((num = ctx->bufsz) != 0) { 84 ctx->bufsz += len; 93 ctx->bufsz = 0; 100 ctx->bufsz = rem; 165 s390x_klmd(ctx->buf, ctx->bufsz, NULL, 0, ctx->pad, ctx->A); 176 s390x_klmd(ctx->buf, ctx->bufsz, md, ctx->md_size, ctx->pad, ctx->A);
|
/netbsd-current/external/gpl3/gcc/dist/gcc/ |
H A D | sort.cc | 264 size_t bufsz = (n / 2) * size; 265 void *buf = bufsz <= sizeof scratch ? scratch : xmalloc (bufsz); 287 size_t bufsz = (n / 2) * size; 288 void *buf = bufsz <= sizeof scratch ? scratch : xmalloc (bufsz);
|
/netbsd-current/usr.bin/patch/ |
H A D | pch.c | 114 while (getline(&buf, &bufsz, stdin) != -1) 274 if (getline(&buf, &bufsz, pfp) == -1) { 439 ret = getline(&buf, &bufsz, pfp); 547 ret = pgetline(&buf, &bufsz, pfp); 557 ret = pgetline(&buf, &bufsz, pfp); 709 strlcpy(buf + 1, " \n", bufsz - 1); 875 ret = pgetline(&buf, &bufsz, pfp); 918 snprintf(buf, bufsz, "*** %ld,%ld ****\n", p_first, 926 snprintf(buf, bufsz, "--- %ld,%ld ----\n", p_newfirst, 939 ret = pgetline(&buf, &bufsz, pf [all...] |
H A D | common.h | 75 extern size_t bufsz; /* general purpose buffer size */
|
/netbsd-current/external/historical/nawk/dist/ |
H A D | run.c | 468 int bufsz = recsize; local 471 if ((buf = malloc(bufsz)) == NULL) { 486 if (!adjbuf(&buf, &bufsz, tlen + 1, recsize, 0, func)) { 977 int bufsz=3*recsize; local 979 if ((buf = malloc(bufsz)) == NULL) 983 if (format(&buf, &bufsz, getsval(x), y) == -1) 1000 int bufsz=3*recsize; local 1002 if ((buf = malloc(bufsz)) == NULL) 1006 if ((len = format(&buf, &bufsz, getsval(x), y)) == -1) 1981 int bufsz local 2043 int bufsz = recsize; local 2147 int bufsz = recsize; local [all...] |
H A D | lex.c | 384 static int bufsz = 500; local 386 if (buf == NULL && (buf = malloc(bufsz)) == NULL) 389 if (!adjbuf(&buf, &bufsz, bp-buf+2, 500, &bp, "string")) 532 static int bufsz = 500; local 535 if (buf == NULL && (buf = malloc(bufsz)) == NULL) 539 if (!adjbuf(&buf, &bufsz, bp-buf+3, 500, &bp, "regexpr"))
|
/netbsd-current/sys/dev/pci/ |
H A D | if_nfevar.h | 64 int bufsz; member in struct:nfe_rx_ring
|
/netbsd-current/crypto/external/bsd/openssl/dist/include/internal/ |
H A D | sha3.h | 38 size_t bufsz; /* used bytes in below buffer */ member in struct:keccak_st
|
/netbsd-current/external/cddl/osnet/dist/uts/common/fs/zfs/ |
H A D | zfs_sa.c | 74 size_t bufsz; local 77 bufsz = zp->z_size; 78 if (bufsz + ZFS_OLD_ZNODE_PHYS_SIZE <= db->db_size) { 81 MIN((size_t)bufsz, uio->uio_resid), UIO_READ, uio); 87 MIN((size_t)bufsz, uio->uio_resid), UIO_READ, uio);
|
/netbsd-current/sys/dev/usb/ |
H A D | if_urndis.c | 183 void **buf, size_t *bufsz) 189 if (buf && bufsz) { 191 *bufsz = 0; 200 rval = urndis_ctrl_handle_query(un, hdr, buf, bufsz); 293 const struct rndis_comp_hdr *hdr, void **buf, size_t *bufsz) 308 if (buf && bufsz) { 310 *bufsz = 0; 335 if (buf && bufsz) { 339 *bufsz = le32toh(msg->rm_infobuflen); 909 size_t bufsz; local 182 urndis_ctrl_handle(struct usbnet *un, struct rndis_comp_hdr *hdr, void **buf, size_t *bufsz) argument 292 urndis_ctrl_handle_query(struct usbnet *un, const struct rndis_comp_hdr *hdr, void **buf, size_t *bufsz) argument [all...] |