Home
last modified time | relevance | path

Searched refs:bbuf (Results 1 – 12 of 12) sorted by relevance

/openbsd-src/regress/usr.bin/ssh/unittests/bitmap/
H A Dtests.c29 u_char bbuf[1024], bnbuf[1024]; in tests() local
79 memset(bbuf, 0xfc, sizeof(bbuf)); in tests()
80 ASSERT_INT_EQ(bitmap_to_string(b, bbuf, in tests()
81 sizeof(bbuf)), 0); in tests()
82 for (n = len; n < (int)sizeof(bbuf); n++) in tests()
83 ASSERT_U8_EQ(bbuf[n], 0xfc); in tests()
87 ASSERT_MEM_EQ(bbuf, bnbuf, len); in tests()
/openbsd-src/gnu/usr.bin/perl/ext/PerlIO-mmap/
H A Dmmap.xs23 STDCHAR *bbuf; /* malloced buffer if map fails */ member
133 m->bbuf = b->buf; /* save it in case we need it again */ in PerlIOMmap_get_base()
142 b->buf = m->bbuf; in PerlIOMmap_get_base()
172 if (!b->buf && m->bbuf) in PerlIOMmap_unread()
173 b->buf = m->bbuf; in PerlIOMmap_unread()
176 m->bbuf = b->buf; in PerlIOMmap_unread()
199 if (!b->buf && m->bbuf) in PerlIOMmap_write()
200 b->buf = m->bbuf; in PerlIOMmap_write()
203 m->bbuf = b->buf; in PerlIOMmap_write()
231 m->bbuf = b->buf; in PerlIOMmap_flush()
/openbsd-src/sys/arch/hppa/stand/libsa/
H A Dlif.c166 char bbuf[DEV_BSIZE]; local
167 size_t bsize, count = sizeof(bbuf);
176 for (p = bbuf; size; fp->f_seek += bsize, p += bsize) {
183 if (p == bbuf) {
184 bsize = sizeof(bbuf) - (foff & (sizeof(bbuf) - 1));
186 bcopy(bbuf + (foff & (sizeof(bbuf) - 1)), buf, bsize);
/openbsd-src/usr.sbin/bgpd/
H A Dflowspec.c97 flowspec_cmp_prefix4(const uint8_t *abuf, int ablen, const uint8_t *bbuf, in flowspec_cmp_prefix4() argument
104 blen = bbuf[1]; in flowspec_cmp_prefix4()
109 extract_prefix(bbuf + 2, bblen - 2, &b, clen, sizeof(b)); in flowspec_cmp_prefix4()
132 flowspec_cmp_prefix6(const uint8_t *abuf, int ablen, const uint8_t *bbuf, in flowspec_cmp_prefix6() argument
139 if (abuf[2] < bbuf[2]) in flowspec_cmp_prefix6()
141 if (abuf[2] > bbuf[2]) in flowspec_cmp_prefix6()
146 blen = bbuf[1] - bbuf[2]; in flowspec_cmp_prefix6()
151 extract_prefix(bbuf + 3, bblen - 3, &b, clen, sizeof(b)); in flowspec_cmp_prefix6()
H A Dutil.c1090 static char bbuf[16]; in sa2addr()
1096 snprintf(bbuf, sizeof(bbuf), "%llu G%s",
1099 snprintf(bbuf, sizeof(bbuf), "%llu M%s", in get_baudrate()
1102 snprintf(bbuf, sizeof(bbuf), "%llu K%s", in get_baudrate()
1105 snprintf(bbuf, sizeof(bbuf), "%llu %s", in get_baudrate()
1108 return (bbuf); in get_baudrate()
1100 static char bbuf[16]; get_baudrate() local
[all...]
/openbsd-src/regress/lib/libcrypto/ecdh/
H A Decdhtest.c113 unsigned char *abuf = NULL, *bbuf = NULL; in ecdh_keygen_test() local
133 if ((bbuf = calloc(1, len)) == NULL) in ecdh_keygen_test()
138 if (ECDH_compute_key(bbuf, len, puba, keyb, KDF1_SHA1) != len) in ecdh_keygen_test()
141 if (memcmp(abuf, bbuf, len) != 0) { in ecdh_keygen_test()
150 hexdump(bbuf, len); in ecdh_keygen_test()
165 freezero(bbuf, len); in ecdh_keygen_test()
/openbsd-src/usr.sbin/ocspcheck/
H A Dhttp.c44 char *bbuf; /* body transfer buffer */ member
377 free(x->bbuf); in http_close()
405 return trans->bbuf; in http_body_read()
419 pp = recallocarray(trans->bbuf, in http_body_read()
425 trans->bbuf = pp; in http_body_read()
426 memcpy(trans->bbuf + trans->bbufsz, buf, ssz); in http_body_read()
432 return trans->bbuf; in http_body_read()
650 trans->bbuf = malloc(trans->bbufsz); in http_head_read()
651 if (trans->bbuf == NULL) { in http_head_read()
655 memcpy(trans->bbuf, ep, trans->bbufsz); in http_head_read()
/openbsd-src/usr.sbin/acme-client/
H A Dhttp.c45 char *bbuf; /* body transfer buffer */ member
385 free(x->bbuf); in http_close()
413 return trans->bbuf; in http_body_read()
426 pp = recallocarray(trans->bbuf, in http_body_read()
432 trans->bbuf = pp; in http_body_read()
433 memcpy(trans->bbuf + trans->bbufsz, buf, ssz); in http_body_read()
439 return trans->bbuf; in http_body_read()
657 trans->bbuf = malloc(trans->bbufsz); in http_head_read()
658 if (trans->bbuf == NULL) { in http_head_read()
662 memcpy(trans->bbuf, ep, trans->bbufsz); in http_head_read()
H A Dacctproc.c46 char *buf, *bbuf; in bn2string() local
62 if ((bbuf = base64buf_url(buf, len)) == NULL) { in bn2string()
69 return bbuf; in bn2string()
/openbsd-src/usr.bin/snmp/
H A Dsnmp.c573 char *bbuf; in ber_copy_writebuf() local
577 if ((ret = ober_get_writebuf(ber, (void **)&bbuf)) == -1) in ber_copy_writebuf()
581 memcpy(*buf, bbuf, ret); in ber_copy_writebuf()
/openbsd-src/gnu/lib/libstdc++/libstdc++/libio/
H A Dwgenops.c152 wchar_t *bbuf = (wchar_t *) malloc (backup_size local
154 if (bbuf == NULL)
156 fp->_wide_data->_IO_save_base = bbuf;
H A Dgenops.c967 char *bbuf = (char *) malloc (backup_size); local
968 if (bbuf == NULL)
970 fp->_IO_save_base = bbuf;