| /openbsd/src/gnu/usr.bin/binutils/gdb/rdi-share/ |
| D | msgbuild.c | 47 unsigned int blen = 0; in vmsgbuild() local 58 blen++; in vmsgbuild() 79 blen += sizeof(unsigned int); in vmsgbuild() 96 blen += sizeof(unsigned short); in vmsgbuild() 120 blen++; in vmsgbuild() 126 return blen; in vmsgbuild() 139 unsigned int blen; in msgbuild() local 142 blen = vmsgbuild(buffer, format, args); in msgbuild() 145 return blen; in msgbuild() 197 unsigned int blen = 0; in unpack_message() local [all …]
|
| /openbsd/src/usr.bin/vi/common/ |
| D | mem.h | 49 #define GET_SPACE_GOTO(sp, bp, blen, nlen) { \ argument 53 (blen) = 0; \ 54 BINC_GOTO((sp), (bp), (blen), (nlen)); \ 58 (blen) = L__gp->tmp_blen; \ 62 #define GET_SPACE_RET(sp, bp, blen, nlen) { \ argument 66 (blen) = 0; \ 67 BINC_RET((sp), (bp), (blen), (nlen)); \ 71 (blen) = L__gp->tmp_blen; \ 80 #define ADD_SPACE_GOTO(sp, bp, blen, nlen) { \ argument 86 (blen) = L__gp->tmp_blen; \ [all …]
|
| D | msg.c | 43 size_t blen, len, mlen, nlen; in msgq() local 100 retry: FREE_SPACE(sp, bp, blen); in msgq() 104 blen = 0; in msgq() 105 GET_SPACE_GOTO(sp, bp, blen, nlen); in msgq() 114 #define REM (blen - mlen) in msgq() 136 if ((mlen += len) > blen) in msgq() 141 if ((mlen += len) > blen) in msgq() 159 if ((mlen += len) > blen) in msgq() 164 if ((mlen += len) > blen) in msgq() 170 if ((mlen += 1) > blen) in msgq() [all …]
|
| D | delete.c | 36 size_t blen, len, nlen, tlen; in del() local 78 GET_SPACE_RET(sp, bp, blen, fm->cno); in del() 91 GET_SPACE_RET(sp, bp, blen, len); in del() 110 GET_SPACE_RET(sp, bp, blen, tlen + 256); in del() 124 GET_SPACE_RET(sp, bp, blen, nlen); in del() 126 ADD_SPACE_RET(sp, bp, blen, nlen); in del() 149 FREE_SPACE(sp, bp, blen); in del()
|
| D | put.c | 38 size_t blen, clen, len; in put() local 117 GET_SPACE_RET(sp, bp, blen, tp->len + len + 1); in put() 182 ADD_SPACE_RET(sp, bp, blen, ltp->len + clen); in put() 222 FREE_SPACE(sp, bp, blen); in put()
|
| /openbsd/src/usr.bin/vi/ex/ |
| D | ex_argv.c | 88 size_t blen, len; in argv_exp1() local 91 GET_SPACE_RET(sp, bp, blen, 512); in argv_exp1() 94 if (argv_fexp(sp, excp, cmd, cmdlen, bp, &len, &bp, &blen, is_bang)) { in argv_exp1() 95 FREE_SPACE(sp, bp, blen); in argv_exp1() 111 ret: FREE_SPACE(sp, bp, blen); in argv_exp1() 125 size_t blen, len, n; in argv_exp2() local 129 GET_SPACE_RET(sp, bp, blen, 512); in argv_exp2() 141 if (argv_fexp(sp, excp, cmd, cmdlen, p, &len, &bp, &blen, 0)) { in argv_exp2() 210 if (argv_sexp(sp, &bp, &blen, &len)) { in argv_exp2() 219 err: FREE_SPACE(sp, bp, blen); in argv_exp2() [all …]
|
| D | ex_join.c | 36 size_t blen, clen, len, tlen; in ex_join() local 51 GET_SPACE_RET(sp, bp, blen, 256); in ex_join() 89 ADD_SPACE_RET(sp, bp, blen, tlen); in ex_join() 166 err: FREE_SPACE(sp, bp, blen); in ex_join() 169 FREE_SPACE(sp, bp, blen); in ex_join()
|
| D | ex_shift.c | 70 size_t blen, len, newcol, newidx, oldcol, oldidx, sw; in shift() local 98 GET_SPACE_RET(sp, bp, blen, 256); in shift() 138 ADD_SPACE_RET(sp, bp, blen, newcol + len); in shift() 160 err: FREE_SPACE(sp, bp, blen); in shift() 194 FREE_SPACE(sp, bp, blen); in shift()
|
| D | ex_move.c | 90 size_t blen, len; in ex_move() local 132 GET_SPACE_RET(sp, bp, blen, 256); in ex_move() 142 BINC_RET(sp, bp, blen, len); in ex_move() 160 BINC_RET(sp, bp, blen, len); in ex_move() 174 FREE_SPACE(sp, bp, blen); in ex_move()
|
| D | ex_subst.c | 51 size_t blen, len; in ex_s() local 200 GET_SPACE_RET(sp, bp, blen, len); in ex_s() 232 FREE_SPACE(sp, bp, blen); in ex_s() 237 FREE_SPACE(sp, bp, blen); in ex_s() 344 size_t blen, cnt, last, lbclen, lblen, len, llen; in s() local 482 blen = lbclen = lblen = 0; in s() 502 GET_SPACE_RET(sp, bp, blen, llen); in s() 504 ADD_SPACE_RET(sp, bp, blen, llen); in s() 732 ADD_SPACE_RET(sp, bp, blen, llen) in s() 859 FREE_SPACE(sp, bp, blen); in s() [all …]
|
| /openbsd/src/usr.sbin/bgpd/ |
| D | flowspec.c | 101 int alen, blen, clen, cmp; in flowspec_cmp_prefix4() local 104 blen = bbuf[1]; in flowspec_cmp_prefix4() 105 clen = MINIMUM(alen, blen); in flowspec_cmp_prefix4() 119 if (alen > blen) in flowspec_cmp_prefix4() 121 if (alen < blen) in flowspec_cmp_prefix4() 136 int alen, blen, clen, cmp; in flowspec_cmp_prefix6() local 146 blen = bbuf[1] - bbuf[2]; in flowspec_cmp_prefix6() 147 clen = MINIMUM(alen, blen); in flowspec_cmp_prefix6() 161 if (alen > blen) in flowspec_cmp_prefix6() 163 if (alen < blen) in flowspec_cmp_prefix6() [all …]
|
| /openbsd/src/usr.bin/tail/ |
| D | read.c | 141 size_t blen; in lines() member 148 size_t cnt, lineno, nlineno, recno, blen, newsize; in lines() local 154 lineno = blen = cnt = recno = wrap = 0; in lines() 157 if (++cnt > blen) { in lines() 158 newsize = blen + 1024; in lines() 162 blen = newsize; in lines() 175 if (lines[recno].blen < cnt) { in lines() 181 lines[recno].blen = newsize; in lines()
|
| /openbsd/src/usr.bin/stat/ |
| D | stat.c | 488 char *buf, size_t blen, in format1() argument 771 n = snprintf(buf, blen, "%.*s,%.*s", in format1() 773 return (n >= blen ? blen : n); in format1() 775 return (format1(st, file, fmt, flen, buf, blen, in format1() 820 n = snprintf(buf, blen, lfmt, (long long)secs); in format1() 821 return (n >= blen ? blen : n); in format1() 870 l = snprintf(buf, blen, lfmt, (long long)secs, nsecs); in format1() 871 if (l >= blen) in format1() 873 for (; prec > 9 && l < blen; prec--, l++) in format1() 874 (void)strlcat(buf, "0", blen); in format1() [all …]
|
| /openbsd/src/usr.bin/rcs/ |
| D | rcsnum.c | 125 rcsnum_tostr(const RCSNUM *nump, char *buf, size_t blen) in rcsnum_tostr() argument 135 if (strlcpy(buf, rcsnum_itoa(nump->rn_id[0], buf, blen), blen) >= blen) in rcsnum_tostr() 141 if (strlcat(buf, ".", blen) >= blen || in rcsnum_tostr() 142 strlcat(buf, str, blen) >= blen) in rcsnum_tostr()
|
| /openbsd/src/usr.bin/cvs/ |
| D | rcsnum.c | 102 rcsnum_tostr(const RCSNUM *nump, char *buf, size_t blen) in rcsnum_tostr() argument 112 if (strlcpy(buf, rcsnum_itoa(nump->rn_id[0], buf, blen), blen) >= blen) in rcsnum_tostr() 118 if (strlcat(buf, ".", blen) >= blen || in rcsnum_tostr() 119 strlcat(buf, str, blen) >= blen) in rcsnum_tostr()
|
| /openbsd/src/usr.bin/kstat/ |
| D | kstat.c | 388 ssize_t blen; in kstat_kv() local 405 blen = 0; in kstat_kv() 439 blen = kstat_kv_len(kv); in kstat_kv() 443 blen = kstat_kv_len(kv); in kstat_kv() 509 if (blen > 0) { in kstat_kv() 510 if (blen > len) { in kstat_kv() 511 blen = len; in kstat_kv() 514 (*trailer)(buf, blen); in kstat_kv() 518 blen = roundup(blen, KSTAT_KV_ALIGN); in kstat_kv() 519 buf += blen; in kstat_kv() [all …]
|
| /openbsd/src/lib/libform/ |
| D | fty_regex.c | 189 int blen = RX_INCREMENT; in Generic_RegularExpression_Type() 198 char *buf = typeMalloc(char, blen); in Generic_RegularExpression_Type() 203 char *last_pos = compile(rx, buf, &buf[blen], '\0'); in Generic_RegularExpression_Type() 206 char *last_pos = compile(rx, buf, &buf[blen]); in Generic_RegularExpression_Type() 212 blen += RX_INCREMENT; in Generic_RegularExpression_Type() 227 while (blen <= MAX_RX_LEN); in Generic_RegularExpression_Type()
|
| /openbsd/src/bin/mv/ |
| D | mv.c | 265 static u_int32_t blen; in fastcopy() local 270 if (!blen) { in fastcopy() 271 blen = sbp->st_blksize; in fastcopy() 272 if ((bp = malloc(blen)) == NULL) { in fastcopy() 274 blen = 0; in fastcopy() 295 while ((nread = read(from_fd, bp, blen)) > 0) in fastcopy()
|
| /openbsd/src/usr.sbin/unbound/testcode/ |
| D | unitldns.c | 54 buf_to_hex(uint8_t* b, size_t blen, char* s, size_t slen) in buf_to_hex() argument 58 if(slen < blen*2+2 && vbmp) printf("hexstring buffer too small\n"); in buf_to_hex() 59 unit_assert(slen >= blen*2+2); in buf_to_hex() 60 for(i=0; i<blen; i++) { in buf_to_hex() 64 s[blen*2] = '\n'; in buf_to_hex() 65 s[blen*2+1] = 0; in buf_to_hex()
|
| /openbsd/src/sys/ntfs/ |
| D | ntfs_compr.c | 46 int blen, boff; in ntfs_uncompblock() local 75 blen = 3 + (GET_UINT16(cbuf + cpos) & lmask); in ntfs_uncompblock() 76 for (j = 0; (j < blen) && in ntfs_uncompblock()
|
| /openbsd/src/usr.bin/vi/vi/ |
| D | v_search.c | 319 size_t blen, len; in v_searchw() local 324 GET_SPACE_RET(sp, bp, blen, len); in v_searchw() 325 len = snprintf(bp, blen, "%s%s%s", RE_WSTART, VIP(sp)->keyw, RE_WSTOP); in v_searchw() 326 if (len >= blen) in v_searchw() 327 len = blen - 1; in v_searchw() 331 FREE_SPACE(sp, bp, blen); in v_searchw()
|
| D | v_ulcase.c | 144 size_t blen; in ulcase() local 149 GET_SPACE_RET(sp, bp, blen, len); in ulcase() 167 FREE_SPACE(sp, bp, blen); in ulcase()
|
| /openbsd/src/usr.bin/ssh/ |
| D | ssh-pkcs11-helper.c | 118 size_t blen; in process_add() local 133 if ((r = sshkey_to_blob(keys[i], &blob, &blen)) != 0) { in process_add() 137 if ((r = sshbuf_put_string(msg, blob, blen)) != 0 || in process_add() 181 size_t blen, dlen; in process_sign() local 190 if ((r = sshbuf_get_string(iqueue, &blob, &blen)) != 0 || in process_sign() 195 if ((r = sshkey_from_blob(blob, blen, &key)) != 0) in process_sign()
|
| /openbsd/src/gnu/usr.sbin/mkhybrid/src/libhfs_iso/ |
| D | data.c | 175 char blen; in d_fetchs() local 177 d_fetchb(ptr, &blen); in d_fetchs() 178 len = blen; in d_fetchs()
|
| /openbsd/src/lib/libcrypto/asn1/ |
| D | asn_mime.c | 105 static int mime_bound_check(char *line, int linelen, char *bound, int blen); 612 int len, blen; in multi_split() local 618 blen = strlen(bound); in multi_split() 627 state = mime_bound_check(linebuf, len, bound, blen); in multi_split() 976 mime_bound_check(char *line, int linelen, char *bound, int blen) in mime_bound_check() argument 980 if (blen == -1) in mime_bound_check() 981 blen = strlen(bound); in mime_bound_check() 983 if (blen + 2 > linelen) in mime_bound_check() 986 if (!strncmp(line, "--", 2) && !strncmp(line + 2, bound, blen)) { in mime_bound_check() 987 if (!strncmp(line + blen + 2, "--", 2)) in mime_bound_check()
|