| /openbsd-src/lib/libevent/ |
| H A D | event_tagging.c | 45 int evtag_decode_int(ev_uint32_t *pnumber, struct evbuffer *evbuf); 46 int evtag_encode_tag(struct evbuffer *evbuf, ev_uint32_t tag); 47 int evtag_decode_tag(ev_uint32_t *ptag, struct evbuffer *evbuf); 68 encode_int(struct evbuffer *evbuf, ev_uint32_t number) in encode_int() argument 90 evbuffer_add(evbuf, data, (off + 1) / 2); in encode_int() 99 evtag_encode_tag(struct evbuffer *evbuf, ev_uint32_t tag) in evtag_encode_tag() argument 115 if (evbuf != NULL) in evtag_encode_tag() 116 evbuffer_add(evbuf, data, bytes); in evtag_encode_tag() 122 decode_tag_internal(ev_uint32_t *ptag, struct evbuffer *evbuf, int dodrain) in decode_tag_internal() argument 125 ev_uint8_t *data = EVBUFFER_DATA(evbuf); in decode_tag_internal() [all …]
|
| H A D | event.h | 1167 void evtag_marshal(struct evbuffer *evbuf, ev_uint32_t tag, const void *data, 1180 void encode_int(struct evbuffer *evbuf, ev_uint32_t number); 1182 void evtag_marshal_int(struct evbuffer *evbuf, ev_uint32_t tag, 1188 void evtag_marshal_timeval(struct evbuffer *evbuf, ev_uint32_t tag, 1193 int evtag_peek(struct evbuffer *evbuf, ev_uint32_t *ptag); 1194 int evtag_peek_length(struct evbuffer *evbuf, ev_uint32_t *plength); 1195 int evtag_payload_length(struct evbuffer *evbuf, ev_uint32_t *plength); 1196 int evtag_consume(struct evbuffer *evbuf); 1198 int evtag_unmarshal_int(struct evbuffer *evbuf, ev_uint32_t need_tag, 1204 int evtag_unmarshal_string(struct evbuffer *evbuf, ev_uint32_t need_tag, [all …]
|
| /openbsd-src/usr.sbin/ldpd/ |
| H A D | ldpd.h | 62 struct evbuf { struct 598 void evbuf_enqueue(struct evbuf *, struct ibuf *); 599 void evbuf_event_add(struct evbuf *); 600 void evbuf_init(struct evbuf *, int, void (*)(int, short, void *), void *); 601 void evbuf_clear(struct evbuf *); 63 wbufevbuf global() argument 64 evevbuf global() argument
|
| H A D | ldpd.c | 584 evbuf_enqueue(struct evbuf *eb, struct ibuf *buf) in evbuf_event_add() 591 evbuf_event_add(struct evbuf *eb) in evbuf_init() 598 evbuf_init(struct evbuf *eb, int fd, void (*handler)(int, short, void *), 609 evbuf_clear(struct evbuf *eb) in main_imsg_send_ipc_sockets()
|
| H A D | ldpe.h | 66 struct evbuf wbuf;
|
| /openbsd-src/usr.sbin/httpd/ |
| H A D | server_fcgi.c | 415 fcgi_add_stdin(struct client *clt, struct evbuffer *evbuf) in fcgi_add_stdin() argument 425 if (evbuf == NULL) { in fcgi_add_stdin() 430 h.content_len = htons(EVBUFFER_LENGTH(evbuf)); in fcgi_add_stdin() 434 return bufferevent_write_buffer(clt->clt_srvbev, evbuf); in fcgi_add_stdin()
|
| /openbsd-src/usr.bin/compress/ |
| H A D | main.c | 220 char *evbuf, *last, **nargv = NULL; in main() local 223 if ((evbuf = strdup(p)) == NULL) in main() 225 for ((p = strtok_r(evbuf, " ", &last)); p != NULL; in main()
|
| /openbsd-src/usr.sbin/pstat/ |
| H A D | pstat.c | 859 char *vbuf, *evbuf, *bp; in kinfo_vnodes() local 870 evbuf = vbuf + (numvnodes + 20) * in kinfo_vnodes() 881 sizeof(struct vnode)) > evbuf) in kinfo_vnodes()
|
| /openbsd-src/usr.sbin/syslogd/ |
| H A D | syslogd.c | 1245 octet_counting(struct evbuffer *evbuf, char **msg, int drain) in octet_counting() 1250 buf = EVBUFFER_DATA(evbuf); in octet_counting() 1251 end = buf + EVBUFFER_LENGTH(evbuf); in octet_counting() 1277 evbuffer_drain(evbuf, p - buf); in non_transparent_framing() 1287 non_transparent_framing(struct evbuffer *evbuf, char **msg) in non_transparent_framing() 1291 buf = EVBUFFER_DATA(evbuf); in non_transparent_framing() 1292 end = buf + EVBUFFER_LENGTH(evbuf); in non_transparent_framing() 1229 octet_counting(struct evbuffer * evbuf,char ** msg,int drain) octet_counting() argument 1271 non_transparent_framing(struct evbuffer * evbuf,char ** msg) non_transparent_framing() argument
|
| /openbsd-src/regress/lib/libevent/ |
| H A D | event_regress.c | 1510 int evtag_decode_int(uint32_t *pnumber, struct evbuffer *evbuf); 1511 int evtag_encode_tag(struct evbuffer *evbuf, uint32_t number); 1512 int evtag_decode_tag(uint32_t *pnumber, struct evbuffer *evbuf);
|