Home
last modified time | relevance | path

Searched refs:abuf (Results 1 – 25 of 29) sorted by relevance

12

/openbsd/usr.bin/sndiod/
H A Dabuf.h20 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 Dabuf.c34 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 DMakefile4 SRCS= abuf.c dev.c dev_sioctl.c dsp.c fdpass.c file.c listen.c \
H A Ddev.h65 struct abuf buf; /* socket side buffer */
76 struct abuf buf; /* socket side buffer */
H A Dmidi.h78 struct abuf obuf; /* output buffer */
/openbsd/usr.bin/aucat/
H A Dabuf.h20 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 Dabuf.c32 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 DMakefile4 SRCS= abuf.c afile.c aucat.c dsp.c utils.c
/openbsd/sbin/unwind/
H A Dfrontend.c101 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 Dmrtparser.c413 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 Dprint-ip6.c73 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 Dprint-ip.c335 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 Dprint-atalk.c224 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 Dprint.c68 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 Dquit.c67 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 Dprom.c61 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 Dflowspec.c97 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 Dpk7_doit.c806 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 Decdhtest.c113 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 Dprom.c103 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 Drde_community_test.c48 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 Dkeydata_65533.c129 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 Dssh-sk-client.c294 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 Dssh-keygen.c2563 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 Dip_esp.c353 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()

12