Home
last modified time | relevance | path

Searched refs:blen (Results 1 – 25 of 164) sorted by relevance

1234567

/netbsd-src/external/bsd/nvi/dist/common/
H A Dmem.h63 #define GET_SPACE_GOTO(sp, type, bp, blen, nlen) { \ argument
68 blen = 0; \
69 BINC_GOTO(sp, type, bp, blen, nlen); \
73 blen = L__wp->tmp_blen; \
77 #define GET_SPACE_GOTOC(sp, bp, blen, nlen) \ argument
78 GET_SPACE_GOTO(sp, char, bp, blen, nlen)
79 #define GET_SPACE_GOTOW(sp, bp, blen, nlen) \ argument
80 GET_SPACE_GOTO(sp, CHAR_T, bp, blen, (nlen) * sizeof(CHAR_T))
81 #define GET_SPACE_RET(sp, type, bp, blen, nlen) { \ argument
86 blen = 0; \
[all …]
H A Dmsg.c78 size_t blen, len, mlen, nlen; local
143 retry: FREE_SPACE(sp, bp, blen);
147 blen = 0;
148 GET_SPACE_GOTOC(sp, bp, blen, nlen);
157 #define REM (blen - mlen)
178 if ((mlen += len) > blen)
183 if ((mlen += len) > blen)
344 if ((mlen += len) > blen)
349 if ((mlen += len) > blen)
356 if ((mlen += len) > blen)
[all …]
H A Ddelete.c44 size_t blen, len, nlen, tlen; in del() local
86 GET_SPACE_RETW(sp, bp, blen, fm->cno); in del()
99 GET_SPACE_RETW(sp, bp, blen, len); in del()
119 GET_SPACE_RETW(sp, bp, blen, tlen + 256); in del()
139 GET_SPACE_RETW(sp, bp, blen, nlen); in del()
141 ADD_SPACE_RETW(sp, bp, blen, nlen); in del()
164 FREE_SPACEW(sp, bp, blen); in del()
H A Dconv.c55 size_t *blen = &cw->blen1; in raw2int() local
57 BINC_RETW(NULL, *tostr, *blen, len); in raw2int()
116 size_t *blen = &cw->blen1; in default_char2int() local
129 BINC_RETW(NULL, *tostr, *blen, nlen); in default_char2int()
152 if (++i >= *blen) { in default_char2int()
154 BINC_GOTOW(NULL, *tostr, *blen, nlen); in default_char2int()
233 size_t *blen = &cw->blen1; in int2raw() local
235 BINC_RETC(NULL, *tostr, *blen, len); in int2raw()
256 size_t *blen = &cw->blen1; in default_int2char() local
295 BINC_RETC(NULL, *tostr, *blen, nlen); in default_int2char()
[all …]
/netbsd-src/external/bsd/wpa/dist/src/utils/
H A Dpcsc_funcs.c414 size_t blen; in scard_get_aid() local
419 blen = sizeof(buf); in scard_get_aid()
420 if (scard_select_file(scard, SCARD_FILE_EF_DIR, buf, &blen)) { in scard_get_aid()
424 wpa_hexdump(MSG_DEBUG, "SCARD: EF_DIR select", buf, blen); in scard_get_aid()
434 blen = sizeof(buf); in scard_get_aid()
435 if (rlen > (int) blen) { in scard_get_aid()
528 size_t blen; in scard_init() local
632 blen = sizeof(buf); in scard_init()
635 if (_scard_select_file(scard, SCARD_FILE_MF, buf, &blen, in scard_init()
645 blen = sizeof(buf); in scard_init()
[all …]
/netbsd-src/external/bsd/nvi/dist/ipc/
H A Dip_send.c42 static size_t blen; in vi_send() local
62 if (blen == 0 && (bp = malloc(blen = 512)) == NULL) in vi_send()
82 if (nlen >= blen) { in vi_send()
83 blen = blen * 2 + nlen; in vi_send()
85 if ((bp = realloc(bp, blen)) == NULL) in vi_send()
96 if (nlen >= blen) { in vi_send()
97 blen = blen * 2 + nlen; in vi_send()
99 if ((bp = realloc(bp, blen)) == NULL) in vi_send()
/netbsd-src/external/bsd/nvi/dist/ex/
H A Dex_argv.c96 size_t blen, len; in argv_exp1() local
99 GET_SPACE_RETW(sp, bp, blen, 512); in argv_exp1()
102 if (argv_fexp(sp, excp, cmd, cmdlen, bp, &len, &bp, &blen, is_bang)) { in argv_exp1()
103 FREE_SPACEW(sp, bp, blen); in argv_exp1()
119 ret: FREE_SPACEW(sp, bp, blen); in argv_exp1()
133 size_t blen, len, n; in argv_exp2() local
138 GET_SPACE_RETW(sp, bp, blen, 512); in argv_exp2()
154 if (argv_fexp(sp, excp, cmd, cmdlen, p, &len, &bp, &blen, 0)) { in argv_exp2()
233 if (argv_sexp(sp, &bp, &blen, &len)) { in argv_exp2()
242 err: FREE_SPACEW(sp, bp, blen); in argv_exp2()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/lto/
H A Dlto.cc212 stream_out_partitions_1 (char *temp_filename, int blen, int min, int max) in stream_out_partitions_1() argument
217 sprintf (temp_filename + blen, "%u.o", p); in stream_out_partitions_1()
227 stream_out_partitions (char *temp_filename, int blen, int min, int max, in stream_out_partitions() argument
235 stream_out_partitions_1 (temp_filename, blen, min, max); in stream_out_partitions()
255 stream_out_partitions_1 (temp_filename, blen, min, max); in stream_out_partitions()
260 stream_out_partitions_1 (temp_filename, blen, min, max); in stream_out_partitions()
268 stream_out_partitions_1 (temp_filename, blen, min, max); in stream_out_partitions()
274 stream_out_partitions_1 (temp_filename, blen, min, max); in stream_out_partitions()
290 size_t blen; in lto_wpa_write_files() local
317 blen = strlen (ltrans_output_list); in lto_wpa_write_files()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/lto/
H A Dlto.c212 stream_out_partitions_1 (char *temp_filename, int blen, int min, int max) in stream_out_partitions_1() argument
217 sprintf (temp_filename + blen, "%u.o", p); in stream_out_partitions_1()
227 stream_out_partitions (char *temp_filename, int blen, int min, int max, in stream_out_partitions() argument
235 stream_out_partitions_1 (temp_filename, blen, min, max); in stream_out_partitions()
255 stream_out_partitions_1 (temp_filename, blen, min, max); in stream_out_partitions()
260 stream_out_partitions_1 (temp_filename, blen, min, max); in stream_out_partitions()
268 stream_out_partitions_1 (temp_filename, blen, min, max); in stream_out_partitions()
274 stream_out_partitions_1 (temp_filename, blen, min, max); in stream_out_partitions()
290 size_t blen; in lto_wpa_write_files() local
317 blen = strlen (ltrans_output_list); in lto_wpa_write_files()
[all …]
/netbsd-src/usr.bin/tail/
H A Dread.c137 int blen; in displaylines() member
143 int blen, cnt, recno, wrap; in displaylines() local
153 blen = cnt = recno = wrap = 0; in displaylines()
156 if (++cnt > blen) { in displaylines()
157 if ((n = realloc(sp, blen + 1024)) == NULL) in displaylines()
160 blen += 1024; in displaylines()
165 if (lines[recno].blen < cnt) { in displaylines()
170 lines[recno].blen = cnt + 256; in displaylines()
/netbsd-src/sys/dev/i2c/
H A Dbmx280thpi2c.c75 uint8_t *buf, size_t blen) in bmx280thpi2c_read_register_direct() argument
83 buf,blen,0); in bmx280thpi2c_read_register_direct()
91 uint8_t *buf, size_t blen) in bmx280thpi2c_read_register() argument
95 KASSERT(blen > 0); in bmx280thpi2c_read_register()
98 buf, blen); in bmx280thpi2c_read_register()
110 uint8_t *buf, size_t blen) in bmx280thpi2c_write_register() argument
114 KASSERT(blen > 0); in bmx280thpi2c_write_register()
119 buf,blen,0); in bmx280thpi2c_write_register()
/netbsd-src/lib/libwrap/
H A Dexpandm.c70 size_t blen = buf ? strlen(buf) : 0; in expandm() local
78 if (blen >= PTRDIFF_MAX || in expandm()
79 nlen >= PTRDIFF_MAX - blen || in expandm()
80 nlen >= SIZE_T_MAX - blen) in expandm()
83 tlen = nlen + blen; in expandm()
89 memcpy(nbuf + blen, ptr, nlen); in expandm()
/netbsd-src/tests/rump/rumpkern/h_client/
H A Dh_reconcli.c55 size_t blen; in worker() local
63 blen = sizeof(hostnamebuf); in worker()
66 hostnamebuf, &blen, NULL, 0) == -1) in worker()
85 size_t blen; in main() local
100 blen = sizeof(goodhostname); in main()
102 goodhostname, &blen, NULL, 0) == -1) in main()
H A Dh_sigcli.c24 size_t blen = sizeof(buf); in sighand() local
27 buf, &blen, NULL, 0) == -1) in sighand()
42 size_t blen; in main() local
63 blen = sizeof(buf); in main()
65 buf, &blen, NULL, 0) == -1) in main()
/netbsd-src/sys/external/bsd/ipf/netinet/
H A Dip_dns_pxy.c230 int blen; in ipf_p_dns_match_names() local
233 blen = idns->idns_namelen; in ipf_p_dns_match_names()
236 if (blen > qlen) in ipf_p_dns_match_names()
239 if (blen == qlen) in ipf_p_dns_match_names()
252 blen--; in ipf_p_dns_match_names()
256 return strncasecmp(base, query + qlen - blen, blen); in ipf_p_dns_match_names()
265 int slen, blen; in ipf_p_dns_get_name() local
270 blen = buflen - 1; /* Always make room for trailing \0 */ in ipf_p_dns_get_name()
282 if ((clen + 1) > blen) { in ipf_p_dns_get_name()
292 blen -= (clen + 1); in ipf_p_dns_get_name()
/netbsd-src/lib/libform/
H A Dtype_enum.c151 unsigned i, start, end, enum_start, blen, elen, enum_end; in match_enum() local
158 blen = (unsigned) (strlen(&this[start]) in match_enum()
161 blen = 0; in match_enum()
163 _formi_dbg_printf("%s: start %u, blen %u\n", __func__, start, blen); in match_enum()
183 if ((exact == TRUE) && (blen != elen)) in match_enum()
191 if ((exact != TRUE) && (blen > elen)) in match_enum()
197 (size_t)blen) == 0) ? in match_enum()
202 (size_t) blen) == 0) ? in match_enum()
/netbsd-src/external/bsd/ipf/dist/
H A Dip_dns_pxy.c245 int blen; local
248 blen = idns->idns_namelen;
251 if (blen > qlen)
254 if (blen == qlen)
267 blen--;
271 return strncasecmp(base, query + qlen - blen, blen);
284 int slen, blen; local
289 blen = buflen - 1; /* Always make room for trailing \0 */
301 if ((clen + 1) > blen) {
311 blen -= (clen + 1);
/netbsd-src/sys/fs/nfs/client/
H A Dnfs_clvfsops.c1899 char *opt, char **buf, size_t *blen) in nfscl_printopt() argument
1903 if (testval != 0 && *blen > strlen(opt)) { in nfscl_printopt()
1904 len = snprintf(*buf, *blen, "%s", opt); in nfscl_printopt()
1908 *blen -= len; in nfscl_printopt()
1916 char *opt, char **buf, size_t *blen) in nfscl_printoptval() argument
1920 if (*blen > strlen(opt) + 1) { in nfscl_printoptval()
1922 len = snprintf(*buf, *blen, "%s=%d", opt, optval); in nfscl_printoptval()
1923 if (len < *blen) { in nfscl_printoptval()
1925 *blen -= len; in nfscl_printoptval()
1936 size_t blen; in nfscl_retopts() local
[all …]
/netbsd-src/external/bsd/libbind/dist/nameser/
H A Dns_name.c986 int b, blen, plen, i; in decode_bitstring() local
988 if ((blen = (*cp & 0xff)) == 0) in decode_bitstring()
989 blen = 256; in decode_bitstring()
990 plen = (blen + 3) / 4; in decode_bitstring()
991 plen += sizeof("\\[x/]") + (blen > 99 ? 3 : (blen > 9) ? 2 : 1); in decode_bitstring()
1000 for (b = blen; b > 7; b -= 8, cp++) { in decode_bitstring()
1020 i = SPRINTF((dn, "/%d]", blen)); in decode_bitstring()
1039 int value = 0, count = 0, tbcount = 0, blen = 0; in encode_bitsring() local
1059 blen = (int)strtol(beg_blen, &end_blen, 10); in encode_bitsring()
1111 if (blen > 0) { in encode_bitsring()
[all …]
/netbsd-src/lib/libc/nameser/
H A Dns_name.c1003 int b, blen, plen, i; in decode_bitstring() local
1005 if ((blen = (*cp & 0xff)) == 0) in decode_bitstring()
1006 blen = 256; in decode_bitstring()
1007 plen = (blen + 3) / 4; in decode_bitstring()
1008 plen += (int)sizeof("\\[x/]") + (blen > 99 ? 3 : (blen > 9) ? 2 : 1); in decode_bitstring()
1017 for (b = blen; b > 7; b -= 8, cp++) { in decode_bitstring()
1037 i = SPRINTF((dn, "/%d]", blen)); in decode_bitstring()
1057 int value = 0, count = 0, tbcount = 0, blen = 0; in encode_bitsring() local
1077 blen = (int)strtol(beg_blen, &end_blen, 10); in encode_bitsring()
1129 if (blen > 0) { in encode_bitsring()
[all …]
/netbsd-src/lib/libc/gdtoa/
H A Dg__fmt.c40 g__fmt(b, s, se, decpt, sign, blen) char *b; char *s; char *se; int decpt; ULong sign; size_t blen; in g__fmt() argument
42 g__fmt(char *b, char *s, char *se, int decpt, ULong sign, size_t blen)
71 if (blen < len)
73 be = b + blen - 1;
/netbsd-src/crypto/dist/ipsec-tools/src/racoon/
H A Dpolicy.c454 int blen, i; local
456 blen = sizeof(buf) - 1;
466 i = snprintf(p, blen, "%s/%d[%s ", a, spidx->prefs, b);
467 if (i < 0 || i >= blen)
470 blen -= i;
479 i = snprintf(p, blen, "%s/%d[%s ", a, spidx->prefd, b);
480 if (i < 0 || i >= blen)
483 blen -= i;
485 i = snprintf(p, blen, "proto=%s dir=%s",
491 blen -= i;
[all …]
/netbsd-src/lib/librumpuser/
H A Drumpuser.c187 rumpuser_getparam(const char *name, void *buf, size_t blen) in rumpuser_getparam() argument
194 if (getenv_r("RUMP_NCPU", buf, blen) == -1) { in rumpuser_getparam()
198 snprintf(buf, blen, "%d", ncpu); in rumpuser_getparam()
205 snprintf(buf, blen, "rump-%05d", (int)getpid()); in rumpuser_getparam()
207 snprintf(buf, blen, "rump-%05d.%s", in rumpuser_getparam()
214 if (getenv_r(name, buf, blen) == -1) in rumpuser_getparam()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/asn1/
H A Da_int.c97 static size_t i2c_ibuf(const unsigned char *b, size_t blen, int neg, in i2c_ibuf() argument
104 if (b != NULL && blen) { in i2c_ibuf()
105 ret = blen; in i2c_ibuf()
119 for (pad = 0, i = 1; i < blen; i++) in i2c_ibuf()
128 blen = 0; /* reduce '(b == NULL || blen == 0)' to '(blen == 0)' */ in i2c_ibuf()
142 twos_complement(p, b, blen, pb); in i2c_ibuf()
213 static int asn1_get_uint64(uint64_t *pr, const unsigned char *b, size_t blen) in asn1_get_uint64() argument
218 if (blen > sizeof(*pr)) { in asn1_get_uint64()
224 for (r = 0, i = 0; i < blen; i++) { in asn1_get_uint64()
255 static int asn1_get_int64(int64_t *pr, const unsigned char *b, size_t blen, in asn1_get_int64() argument
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/asn1/
H A Da_int.c91 static size_t i2c_ibuf(const unsigned char *b, size_t blen, int neg, in i2c_ibuf() argument
98 if (b != NULL && blen) { in i2c_ibuf()
99 ret = blen; in i2c_ibuf()
113 for (pad = 0, i = 1; i < blen; i++) in i2c_ibuf()
122 blen = 0; /* reduce '(b == NULL || blen == 0)' to '(blen == 0)' */ in i2c_ibuf()
136 twos_complement(p, b, blen, pb); in i2c_ibuf()
207 static int asn1_get_uint64(uint64_t *pr, const unsigned char *b, size_t blen) in asn1_get_uint64() argument
212 if (blen > sizeof(*pr)) { in asn1_get_uint64()
218 for (r = 0, i = 0; i < blen; i++) { in asn1_get_uint64()
249 static int asn1_get_int64(int64_t *pr, const unsigned char *b, size_t blen, in asn1_get_int64() argument
[all …]

1234567