/openbsd/usr.bin/sndiod/ |
H A D | abuf.h | 20 struct abuf { struct 27 void abuf_init(struct abuf *, unsigned int); argument 28 void abuf_done(struct abuf *); 29 void abuf_log(struct abuf *); 30 unsigned char *abuf_rgetblk(struct abuf *, int *); 31 unsigned char *abuf_wgetblk(struct abuf *, int *); 32 void abuf_rdiscard(struct abuf *, int); 33 void abuf_wcommit(struct abuf *, int);
|
H A D | abuf.c | 34 abuf_log(struct abuf *buf) in abuf_log() 45 abuf_init(struct abuf *buf, unsigned int len) in abuf_init() 54 abuf_done(struct abuf *buf) in abuf_done() 73 abuf_rgetblk(struct abuf *buf, int *rsize) in abuf_rgetblk() 88 abuf_rdiscard(struct abuf *buf, int count) in abuf_rdiscard() 108 abuf_wcommit(struct abuf *buf, int count) in abuf_wcommit() 125 abuf_wgetblk(struct abuf *buf, int *rsize) in abuf_wgetblk()
|
H A D | Makefile | 4 SRCS= abuf.c dev.c dev_sioctl.c dsp.c fdpass.c file.c listen.c \
|
H A D | dev.h | 65 struct abuf buf; /* socket side buffer */ 76 struct abuf buf; /* socket side buffer */
|
H A D | midi.h | 78 struct abuf obuf; /* output buffer */
|
/openbsd/usr.bin/aucat/ |
H A D | abuf.h | 20 struct abuf { struct 27 void abuf_init(struct abuf *, unsigned int); argument 28 void abuf_done(struct abuf *); 29 void abuf_log(struct abuf *); 30 unsigned char *abuf_rgetblk(struct abuf *, int *); 31 unsigned char *abuf_wgetblk(struct abuf *, int *); 32 void abuf_rdiscard(struct abuf *, int); 33 void abuf_wcommit(struct abuf *, int);
|
H A D | abuf.c | 32 abuf_log(struct abuf *buf) in abuf_log() 43 abuf_init(struct abuf *buf, unsigned int len) in abuf_init() 52 abuf_done(struct abuf *buf) in abuf_done() 71 abuf_rgetblk(struct abuf *buf, int *rsize) in abuf_rgetblk() 86 abuf_rdiscard(struct abuf *buf, int count) in abuf_rdiscard() 106 abuf_wcommit(struct abuf *buf, int count) in abuf_wcommit() 123 abuf_wgetblk(struct abuf *buf, int *rsize) in abuf_wgetblk()
|
H A D | Makefile | 4 SRCS= abuf.c afile.c aucat.c dsp.c utils.c
|
/openbsd/sbin/unwind/ |
H A D | frontend.c | 101 struct sldns_buffer *abuf; member 677 sldns_buffer_free(pq->abuf); in free_pending_query() 885 sldns_buffer_clear(pq->abuf); in noerror_answer() 979 sldns_buffer_clear(pq->abuf); in synthesize_dns64_answer() 1021 pq->abuf = sldns_buffer_new(sldns_buffer_capacity(opq->abuf)); in resend_dns64_query() 1109 sldns_buffer_clear(pq->abuf); in chaos_answer() 1135 sldns_buffer_flip(pq->abuf); in chaos_answer() 1141 sldns_buffer_clear(pq->abuf); in error_answer() 1220 sldns_buffer_free(pq->abuf); in send_answer() 1221 pq->abuf = tmp; in send_answer() [all …]
|
/openbsd/usr.sbin/bgpctl/ |
H A D | mrtparser.c | 413 struct ibuf abuf; in mrt_parse_v2_rib() local 453 struct ibuf abuf; in mrt_parse_dump() local 532 struct ibuf abuf; in mrt_parse_dump_mp() local 633 struct ibuf abuf; in mrt_extract_attr() local 639 ibuf_from_ibuf(&abuf, buf); in mrt_extract_attr() 641 ibuf_get_n8(&abuf, &type) == -1) in mrt_extract_attr() 652 if (ibuf_get_n8(&abuf, &tmp8) == -1) in mrt_extract_attr() 657 if (ibuf_truncate(&abuf, alen) == -1) in mrt_extract_attr() 725 if (ibuf_skip(&abuf, 3) == -1) in mrt_extract_attr() 773 ibuf_rewind(&abuf); in mrt_extract_attr() [all …]
|
/openbsd/usr.sbin/tcpdump/ |
H A D | print-ip6.c | 73 static u_char *abuf = NULL; in ip6_print() local 79 if (abuf == NULL) { in ip6_print() 80 abuf = malloc(snaplen); in ip6_print() 81 if (abuf == NULL) in ip6_print() 84 memmove((char *)abuf, (char *)ip6, min(length, clen)); in ip6_print() 85 snapend = abuf + clen; in ip6_print() 86 packetp = bp = abuf; in ip6_print() 87 ip6 = (struct ip6_hdr *)abuf; in ip6_print()
|
H A D | print-ip.c | 335 static u_char *abuf = NULL; in ip_print() local 341 if (abuf == NULL) { in ip_print() 342 abuf = malloc(snaplen); in ip_print() 343 if (abuf == NULL) in ip_print() 346 memmove((char *)abuf, (char *)ip, min(length, clen)); in ip_print() 347 snapend = abuf + clen; in ip_print() 348 packetp = abuf; in ip_print() 349 ip = (struct ip *)abuf; in ip_print()
|
H A D | print-atalk.c | 224 static u_char *abuf = NULL; in ddp_print() local 229 if (abuf == NULL) { in ddp_print() 230 abuf = malloc(snaplen); in ddp_print() 231 if (abuf == NULL) in ddp_print() 234 memmove((char *)abuf, (char *)bp, min(length, clen)); in ddp_print() 235 snapend = abuf + clen; in ddp_print() 236 packetp = abuf; in ddp_print() 237 bp = abuf; in ddp_print()
|
/openbsd/libexec/talkd/ |
H A D | print.c | 68 char tbuf[80], *tp, abuf[80], *ap; in print_response() local 76 (void)snprintf(abuf, sizeof(abuf), "answer %d", rp->answer); in print_response() 77 ap = abuf; in print_response()
|
/openbsd/usr.bin/mail/ |
H A D | quit.c | 67 FILE *ibuf = NULL, *obuf, *fbuf, *rbuf, *abuf; in quit() local 211 if ((abuf = Fopen(mbox, "r")) != NULL) { in quit() 212 while ((c = getc(abuf)) != EOF) in quit() 214 (void)Fclose(abuf); in quit() 302 abuf = Fopen(mailname, "r+"); in quit() 303 if (abuf == NULL) in quit() 306 (void)putc(c, abuf); in quit() 308 trunc(abuf); in quit() 309 (void)Fclose(abuf); in quit()
|
/openbsd/sys/arch/alpha/stand/nboot/ |
H A D | prom.c | 61 static char abuf[128] __attribute__ ((aligned (8))); local 64 ret.bits = prom_dispatch(PROM_R_GETENV, id, (u_int64_t)abuf, 128, 0); 70 memcpy(buf, abuf, len);
|
/openbsd/usr.sbin/bgpd/ |
H A D | flowspec.c | 97 flowspec_cmp_prefix4(const uint8_t *abuf, int ablen, const uint8_t *bbuf, in flowspec_cmp_prefix4() argument 103 alen = abuf[1]; in flowspec_cmp_prefix4() 108 extract_prefix(abuf + 2, ablen - 2, &a, clen, sizeof(a)); 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() 145 alen = abuf[1] - abuf[2]; in flowspec_cmp_prefix6() 150 extract_prefix(abuf + 3, ablen - 3, &a, clen, sizeof(a)); in flowspec_cmp_prefix6()
|
/openbsd/lib/libcrypto/pkcs7/ |
H A D | pk7_doit.c | 806 unsigned char *abuf = NULL; in PKCS7_dataFinal() local 809 abuf = malloc(abuflen); in PKCS7_dataFinal() 810 if (!abuf) in PKCS7_dataFinal() 873 unsigned char *abuf = NULL; in PKCS7_SIGNER_INFO_sign() local 894 if (!abuf) in PKCS7_SIGNER_INFO_sign() 898 free(abuf); in PKCS7_SIGNER_INFO_sign() 899 abuf = NULL; in PKCS7_SIGNER_INFO_sign() 902 abuf = malloc(siglen); in PKCS7_SIGNER_INFO_sign() 903 if (!abuf) in PKCS7_SIGNER_INFO_sign() 921 free(abuf); in PKCS7_SIGNER_INFO_sign() [all …]
|
/openbsd/regress/lib/libcrypto/ecdh/ |
H A D | ecdhtest.c | 113 unsigned char *abuf = NULL, *bbuf = NULL; in ecdh_keygen_test() local 131 if ((abuf = calloc(1, len)) == NULL) in ecdh_keygen_test() 136 if (ECDH_compute_key(abuf, len, pubb, keya, KDF1_SHA1) != len) in ecdh_keygen_test() 141 if (memcmp(abuf, bbuf, len) != 0) { in ecdh_keygen_test() 146 hexdump(abuf, len); in ecdh_keygen_test() 164 freezero(abuf, len); in ecdh_keygen_test()
|
/openbsd/sys/arch/alpha/stand/ |
H A D | prom.c | 103 static char abuf[128] __attribute__ ((aligned (8))); local 106 ret.bits = prom_dispatch(PROM_R_GETENV, id, (u_int64_t)abuf, 128, 0); 112 memcpy(buf, abuf, len);
|
/openbsd/regress/usr.sbin/bgpd/unittests/ |
H A D | rde_community_test.c | 48 struct ibuf *buf, abuf; in test_parsing() local 69 if (ibuf_get_ibuf(in, attr_len, &abuf) == -1) { in test_parsing() 77 r = community_add(&comm, flags, &abuf); in test_parsing() 80 r = community_ext_add(&comm, flags, 0, &abuf); in test_parsing() 83 r = community_large_add(&comm, flags, &abuf); in test_parsing()
|
/openbsd/usr.bin/dig/lib/dns/rdata/generic/ |
H A D | keydata_65533.c | 129 char abuf[ISC_FORMATHTTPTIMESTAMP_SIZE]; in totext_keydata() local 173 isc_time_formathttptimestamp(&t, abuf, in totext_keydata() 174 sizeof(abuf)); in totext_keydata() 175 RETERR(isc_str_tobuffer(abuf, target)); in totext_keydata()
|
/openbsd/usr.bin/ssh/ |
H A D | ssh-sk-client.c | 294 struct sshbuf *kbuf = NULL, *abuf = NULL, *req = NULL, *resp = NULL; in sshsk_enroll() local 304 if ((abuf = sshbuf_new()) == NULL || in sshsk_enroll() 327 (r = sshbuf_get_stringb(resp, abuf)) != 0) { in sshsk_enroll() 341 if (attest != NULL && (r = sshbuf_putb(attest, abuf)) != 0) { in sshsk_enroll() 354 sshbuf_free(abuf); in sshsk_enroll()
|
H A D | ssh-keygen.c | 2563 struct sshbuf *sigbuf = NULL, *abuf = NULL; in sign_one() local 2596 if ((r = sshsig_armor(sigbuf, &abuf)) != 0) { in sign_one() 2600 if ((asig = sshbuf_dup_string(abuf)) == NULL) { in sign_one() 2644 sshbuf_free(abuf); in sign_one() 2783 struct sshbuf *sigbuf = NULL, *abuf = NULL; in sig_verify() local 2794 if ((r = sshbuf_load_file(signature, &abuf)) != 0) { in sig_verify() 2799 if ((r = sshsig_dearmor(abuf, &sigbuf)) != 0) { in sig_verify() 2861 sshbuf_free(abuf); in sig_verify() 2873 struct sshbuf *sigbuf = NULL, *abuf = NULL; in sig_find_principals() local 2885 if ((r = sshsig_dearmor(abuf, &sigbuf)) != 0) { in sig_find_principals() [all …]
|
/openbsd/sys/netinet/ |
H A D | ip_esp.c | 353 uint8_t abuf[AH_HMAC_MAX_HASHLEN]; in esp_input() local 478 m_copydata(m, m->m_pkthdr.len - alen, alen, abuf); in esp_input() 525 if (timingsafe_bcmp(abuf, aalg, esph->authsize)) { in esp_input()
|