Lines Matching defs:bl
1 /* $NetBSD: bl.c,v 1.27 2015/12/30 16:42:48 christos Exp $ */
36 __RCSID("$NetBSD: bl.c,v 1.27 2015/12/30 16:42:48 christos Exp $");
60 #include "bl.h"
366 bl_message_t bl;
378 ub.bl.bl_len = (uint32_t)iov.iov_len;
379 ub.bl.bl_version = BL_VERSION;
380 ub.bl.bl_type = (uint32_t)e;
382 if (bl_getsock(b, &ub.bl.bl_ss, sa, slen, ctx) == -1)
386 ub.bl.bl_salen = slen;
387 memcpy(ub.bl.bl_data, ctx, ctxlen);
430 bl_message_t bl;
504 if ((size_t)rlen <= sizeof(ub.bl)) {
509 if (ub.bl.bl_version != BL_VERSION) {
510 bl_log(b->b_fun, LOG_ERR, "bad version %d", ub.bl.bl_version);
514 bi->bi_type = ub.bl.bl_type;
515 bi->bi_slen = ub.bl.bl_salen;
516 bi->bi_ss = ub.bl.bl_ss;
521 strlcpy(bi->bi_msg, ub.bl.bl_data, MIN(sizeof(bi->bi_msg),
522 ((size_t)rlen - sizeof(ub.bl) + 1)));