/freebsd-11.0-release/contrib/libxo/libxo/ |
H A D | xo_buf.h | 38 xo_buf_init (xo_buffer_t *xbp) argument 40 xbp->xb_size = XO_BUFSIZ; 41 xbp->xb_bufp = xo_realloc(NULL, xbp->xb_size); 42 xbp->xb_curp = xbp->xb_bufp; 49 xo_buf_reset (xo_buffer_t *xbp) argument 51 xbp->xb_curp = xbp->xb_bufp; 58 xo_buf_left (xo_buffer_t *xbp) argument 67 xo_buf_is_empty(xo_buffer_t *xbp) argument 76 xo_buf_offset(xo_buffer_t *xbp) argument 82 xo_buf_data(xo_buffer_t *xbp, unsigned offset) argument 90 xo_buf_cur(xo_buffer_t *xbp) argument 101 xo_buf_cleanup(xo_buffer_t *xbp) argument 114 xo_buf_has_room(xo_buffer_t *xbp, int len) argument 134 xo_buf_append(xo_buffer_t *xbp, const char *str, int len) argument 147 xo_buf_append_str(xo_buffer_t *xbp, const char *str) argument [all...] |
H A D | libxo.c | 736 xo_buffer_t *xbp = &xop->xo_data; local 741 if (!xo_buf_has_room(xbp, indent)) 744 memset(xbp->xb_curp, ' ', indent); 745 xbp->xb_curp += indent; 754 xo_escape_xml (xo_buffer_t *xbp, int len, xo_xff_flags_t flags) argument 762 for (cp = xbp->xb_curp, ep = cp + len; cp < ep; cp++) { 777 if (!xo_buf_has_room(xbp, delta)) /* No room; bail, but don't append */ 780 ep = xbp->xb_curp; 810 xo_escape_json (xo_buffer_t *xbp, int len, xo_xff_flags_t flags UNUSED) argument 815 for (cp = xbp 858 xo_escape_sdparams(xo_buffer_t *xbp, int len, xo_xff_flags_t flags UNUSED) argument 894 xo_buf_escape(xo_handle_t *xop, xo_buffer_t *xbp, const char *str, int len, xo_xff_flags_t flags) argument 928 xo_buffer_t *xbp = &xop->xo_data; local 949 xo_vsnprintf(xo_handle_t *xop, xo_buffer_t *xbp, const char *fmt, va_list vap) argument 996 xo_buffer_t *xbp = &xop->xo_data; local 1177 xo_buf_append_locale_from_utf8(xo_handle_t *xop, xo_buffer_t *xbp, const char *ibuf, int ilen) argument 1220 xo_buf_append_locale(xo_handle_t *xop, xo_buffer_t *xbp, const char *cp, int len) argument 1514 xo_buffer_t *xbp = &xop->xo_data; local 1654 xo_buffer_t *xbp; local 2516 xo_format_string_direct(xo_handle_t *xop, xo_buffer_t *xbp, xo_xff_flags_t flags, const wchar_t *wcp, const char *cp, int len, int max, int need_enc, int have_enc) argument 2718 xo_format_string(xo_handle_t *xop, xo_buffer_t *xbp, xo_xff_flags_t flags, xo_format_t *xfp) argument 2855 xo_buf_find_last_number(xo_buffer_t *xbp, int start_offset) argument 2974 xo_buffer_t *xbp = &xop->xo_data; local 3084 xo_trim_ws(xo_buffer_t *xbp, int len) argument 3122 xo_do_format_field(xo_handle_t *xop, xo_buffer_t *xbp, const char *fmt, int flen, xo_xff_flags_t flags) argument 3501 xo_buffer_t *xbp = &xop->xo_color_buf; local 3553 xo_format_humanize(xo_handle_t *xop, xo_buffer_t *xbp, xo_humanize_save_t *savep, xo_xff_flags_t flags) argument 3712 xo_buffer_t *xbp = &xop->xo_color_buf; local 3792 xo_buffer_t *xbp = &xop->xo_data; local 3890 xo_buffer_t *xbp = &xop->xo_data; local 4072 xo_buffer_t *xbp = &xop->xo_data; local 4662 xo_buffer_t *xbp = &xop->xo_color_buf; local 4793 xo_buffer_t *xbp = &xop->xo_data; local 4891 xo_buffer_t *xbp = &xop->xo_data; local 5546 xo_gettext_simplify_format(xo_handle_t *xop UNUSED, xo_buffer_t *xbp, xo_field_info_t *fields, int this_field, const char *fmt UNUSED, xo_simplify_field_func_t field_cb) argument 5860 xo_buffer_t *xbp = &xop->xo_data; local 6415 xo_buffer_t *xbp = &xop->xo_attrs; local [all...] |
H A D | xo_syslog.c | 452 xo_buffer_t *xbp = opaque; local 454 int left = xo_buf_left(xbp); 459 memcpy(xbp->xb_curp, data, len); 460 xbp->xb_curp += len; 461 *xbp->xb_curp = '\0';
|
/freebsd-11.0-release/contrib/libxo/encoder/cbor/ |
H A D | enc_cbor.c | 133 cbor_encode_uint (xo_buffer_t *xbp, uint64_t minor, unsigned limit) argument 135 char *bp = xbp->xb_curp; 163 xbp->xb_curp = bp; 167 cbor_append (xo_handle_t *xop, cbor_private_t *cbor, xo_buffer_t *xbp, argument 170 if (!xo_buf_has_room(xbp, minor + 2)) 173 unsigned offset = xo_buf_offset(xbp); 175 *xbp->xb_curp = major; 176 cbor_encode_uint(xbp, minor, CBOR_ULIMIT); 178 xo_buf_append(xbp, data, minor); 181 cbor_memdump(stdout, "append", xo_buf_data(xbp, offse 204 cbor_content(xo_handle_t *xop, cbor_private_t *cbor, xo_buffer_t *xbp, const char *value) argument 248 xo_buffer_t *xbp = cbor ? &cbor->c_data : NULL; local [all...] |
/freebsd-11.0-release/lib/libc/db/hash/ |
H A D | hash_buf.c | 159 BUFHEAD *xbp; /* Temp pointer */ local 246 for (xbp = bp; xbp->ovfl;) { 247 next_xbp = xbp->ovfl; 248 xbp->ovfl = NULL; 249 xbp = next_xbp; 252 if (IS_BUCKET(xbp->flags) || 253 (oaddr != xbp->addr)) 256 shortp = (u_int16_t *)xbp->page; 260 if ((xbp [all...] |
H A D | hash_bigkey.c | 449 BUFHEAD *xbp; local 481 xbp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); 482 if (!xbp || ((totlen = 483 collect_data(hashp, xbp, len + mylen, set)) < 1)) 514 BUFHEAD *xbp; local 533 xbp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0); 534 if (!xbp || ((totlen = 535 collect_key(hashp, xbp, totlen, val, set)) < 1))
|
/freebsd-11.0-release/contrib/sendmail/src/ |
H A D | headers.c | 509 char *xbp = NULL; local 513 xbp = quote_internal_chars(line, xbuf, &xbufs); 517 xputs(sm_debug_file(), xbp); local 520 rval = dochompheader(xbp, pflag, hdrp, e); 521 if (xbp != xbuf) 522 sm_free(xbp);
|
/freebsd-11.0-release/sys/geom/raid3/ |
H A D | g_raid3.c | 1114 struct bio *xbp, *fbp, *cbp; local 1126 xbp = fbp = NULL; 1129 KASSERT(xbp == NULL, ("More than one parity bio.")); 1130 xbp = cbp; 1178 if (xbp != fbp) 1179 g_raid3_replace_bio(xbp, fbp); 1213 if (xbp != NULL) { 1220 g_raid3_xor(cbp->bio_data, xbp->bio_data, 1221 xbp->bio_length); 1223 xbp [all...] |