Searched refs:blen (Results 51 - 75 of 138) sorted by relevance

123456

/freebsd-current/sys/geom/uzip/
H A Dg_uzip.c66 uint32_t blen; member in struct:g_uzip_blk
209 (sc)->toc[(bi)].blen)
213 #define BLK_IS_NIL(sc, bi) ((sc)->toc[(bi)].blen == 0)
280 (intmax_t)sc->toc[start_blk].blen,
388 len = sc->toc[blk].blen;
406 sc->toc[blk].blen = 0;
601 sc->toc[i].blen = sc->toc[j].blen;
615 sc->toc[i].blen = sc->toc[j].offset -
632 sc->toc[i].blen));
[all...]
/freebsd-current/tests/sys/posixshm/
H A Dposixshm_test.c185 size_t blen, page_size; local
195 blen = len < (off_t)page_size ? (size_t)len : page_size;
196 memset(buf, byte_to_fill, blen);
197 if (pwrite(fd, buf, blen, offset) != (ssize_t)blen) {
201 len -= blen;
202 offset += blen;
213 size_t blen, page_size; local
236 blen = resid < (off_t)page_size ? (size_t)resid : page_size;
237 if (pread(fd, buf, blen, offse
[all...]
/freebsd-current/crypto/openssh/
H A Dssh-pkcs11-client.c258 size_t blen, slen = 0; local
275 if ((r = sshkey_to_blob(key, &blob, &blen)) != 0) {
282 (r = sshbuf_put_string(msg, blob, blen)) != 0 ||
335 size_t blen, slen = 0; local
358 if ((r = sshkey_to_blob(key, &blob, &blen)) != 0) {
365 (r = sshbuf_put_string(msg, blob, blen)) != 0 ||
592 size_t blen; local
619 if ((r = sshbuf_get_string(msg, &blob, &blen)) != 0 ||
622 if ((r = sshkey_from_blob(blob, blen, &k)) != 0)
H A Dssh-pkcs11-helper.c125 size_t blen; local
140 if ((r = sshkey_to_blob(keys[i], &blob, &blen)) != 0) {
144 if ((r = sshbuf_put_string(msg, blob, blen)) != 0 ||
188 size_t blen, dlen, slen = 0; local
194 if ((r = sshbuf_get_string(iqueue, &blob, &blen)) != 0 ||
199 if ((r = sshkey_from_blob(blob, blen, &key)) != 0)
H A Dssh-keysign.c72 size_t blen, len; local
119 (r = sshbuf_get_string(b, &pkblob, &blen)) != 0)
125 else if ((r = sshkey_from_blob(pkblob, blen, &key)) != 0) {
H A Dauthfd.c241 size_t blen; local
243 if ((r = sshbuf_get_string_direct(ids, &blob, &blen)) != 0 ||
246 if ((r = sshkey_from_blob(blob, blen, keyp)) != 0)
653 size_t blen; local
659 if ((r = sshkey_to_blob(key, &blob, &blen)) != 0)
663 (r = sshbuf_put_string(msg, blob, blen)) != 0)
675 freezero(blob, blen);
/freebsd-current/contrib/bearssl/test/
H A Dtest_math.c246 size_t plen, alen, blen, vlen; local
261 mpz_export(eb, &blen, 1, 1, 0, 0, b);
276 if (impl->decode_mod(mb, eb, blen, mp) != 1) {
293 impl->decode_mod(mb, eb, blen, mp);
302 impl->decode_mod(mb, eb, blen, mp);
327 impl->decode_mod(mb, eb, blen, mp);
341 br_modint_decode(mb, mp, eb, blen);
353 br_modint_decode(mb, mp, eb, blen);
/freebsd-current/contrib/nvi/common/
H A Dexf.c1026 size_t blen; local
1098 GET_SPACE_GOTOC(sp, bp, blen, cmd.argv[0]->len * 2 + 50);
1136 (void)snprintf(pct, blen - (pct - bp), "%d", maxnum + 1);
1190 FREE_SPACE(sp, bp, blen);
1204 FREE_SPACE(sp, bp, blen);
1218 size_t blen = 0; local
1226 if (blen + len > sizeof(buf))
1227 len = sizeof(buf) - blen;
1228 memcpy(buf + blen, p, len);
1229 blen
[all...]
/freebsd-current/contrib/lua/src/
H A Dlobject.c400 int blen; /* length of partial string in 'space' */ member in struct:BuffFS
429 pushstr(buff, buff->space, buff->blen); /* push buffer contents */
430 buff->blen = 0; /* space now is empty */
439 lua_assert(buff->blen <= BUFVFS); lua_assert(sz <= BUFVFS);
440 if (sz > BUFVFS - buff->blen) /* not enough space? */
442 return buff->space + buff->blen;
446 #define addsize(b,sz) ((b)->blen += (sz))
483 buff.pushed = buff.blen = 0;
/freebsd-current/sys/dev/hyperv/vmbus/
H A Dvmbus_brvar.h129 void vmbus_rxbr_setup(struct vmbus_rxbr *rbr, void *buf, int blen);
145 void vmbus_txbr_setup(struct vmbus_txbr *tbr, void *buf, int blen);
/freebsd-current/crypto/openssl/crypto/bio/
H A Dbss_mem.c217 int blen; local
231 blen = bbm->readp->length;
233 if (BUF_MEM_grow_clean(bbm->buf, blen + inl) == 0)
235 memcpy(bbm->buf->data + blen, in, inl);
/freebsd-current/bin/mv/
H A Dmv.c265 static u_int blen = MAXPHYS; local
275 if (bp == NULL && (bp = malloc((size_t)blen)) == NULL) {
276 warnx("malloc(%u) failed", blen);
288 while ((nread = read(from_fd, bp, (size_t)blen)) > 0)
/freebsd-current/contrib/libedit/
H A Dhist.c105 size_t blen, hlen; local
135 blen = (size_t)(el->el_line.limit - el->el_line.buffer);
136 if (hlen > blen && !ch_enlargebufs(el, hlen))
/freebsd-current/contrib/sendmail/libsm/
H A Dfvwrite.c134 size_t blen = fp->f_p - fp->f_bf.smb_base; local
143 } while ((size_t) tsize < blen + len);
154 fp->f_p = tbase + blen;
/freebsd-current/contrib/nvi/cl/
H A Dcl_read.c143 cl_read(SCR *sp, u_int32_t flags, char *bp, size_t blen, int *nrp, argument
164 switch (nr = read(STDIN_FILENO, bp, blen)) {
263 switch (nr = read(STDIN_FILENO, bp, blen - ONE_FOR_EOF)) {
/freebsd-current/contrib/nvi/vi/
H A Dv_increment.c54 size_t beg, blen, end, len, nlen, wlen; local
173 GET_SPACE_RETW(sp, bp, blen, len + 50);
240 FREE_SPACEW(sp, bp, blen);
/freebsd-current/contrib/sendmail/src/
H A Dmime.c111 int blen; local
327 while ((blen = sm_io_fgets(e->e_dfp, SM_TIME_DEFAULT, buf,
333 if (!putxline(buf, blen, mci,
371 while ((blen = sm_io_fgets(e->e_dfp, SM_TIME_DEFAULT, buf,
377 if (!putxline(buf, blen, mci,
448 while ((blen = sm_io_fgets(e->e_dfp, SM_TIME_DEFAULT, buf,
453 for (i = 0; i < blen; i++)
527 while ((blen = sm_io_fgets(e->e_dfp, SM_TIME_DEFAULT, buf,
536 if (!putxline(buf, blen, mci,
1038 int pxflags, blen; local
[all...]
/freebsd-current/crypto/openssl/apps/
H A Dengine.c65 const int blen = strlen(p); local
67 if (blen > 0)
68 len += 2 + blen;
81 if (blen > 0) {
82 p += blen;
/freebsd-current/contrib/file/src/
H A Dder.c236 der_data(char *buf, size_t blen, uint32_t tag, const void *q, uint32_t len) argument
244 return snprintf(buf, blen, "%.*s", len, RCAST(const char *, q));
248 return snprintf(buf, blen,
257 if (z < blen - 2)
258 snprintf(buf + z, blen - z, "%.2x", d[i]);
/freebsd-current/contrib/nvi/ex/
H A Dex_script.c300 size_t blen, len, last_len, tlen; local
314 GET_SPACE_RETC(sp, bp, blen, last_len + 128);
354 ADD_SPACE_RETC(sp, bp, blen, last_len + len);
361 FREE_SPACE(sp, bp, blen);
427 size_t blen, len, tlen; local
441 GET_SPACE_RETC(sp, bp, blen, MINREAD);
508 ret: FREE_SPACE(sp, bp, blen);
/freebsd-current/lib/libutil/tests/
H A Dhumanize_number_test.c501 size_t blen, buflen, errcnt, i, skipped, tested; local
525 blen = (buflen > 0) ? buflen : test_args[i].buflen;
526 buf = realloc(buf, blen);
539 r = humanize_number(buf, blen, test_args[i].num, "",
550 i, blen, r, buf, test_args[i].retval,
565 blen, scale_str, flag_str);
576 blen, scale_str, flag_str);
/freebsd-current/contrib/wpa/src/drivers/
H A Ddriver_hostap.c405 size_t blen; local
414 blen = sizeof(*param) + key_len;
415 buf = os_zalloc(blen);
451 if (hostapd_ioctl(drv, param, blen)) {
467 size_t blen; local
470 blen = sizeof(*param) + 32;
471 buf = os_zalloc(blen);
483 if (hostapd_ioctl(drv, param, blen)) {
715 size_t blen, elem_len; local
718 blen
[all...]
/freebsd-current/crypto/openssl/crypto/asn1/
H A Dasn_mime.c56 static int mime_bound_check(char *line, int linelen, const char *bound, int blen);
611 int len, blen; local
617 blen = strlen(bound);
626 state = mime_bound_check(linebuf, len, bound, blen);
982 static int mime_bound_check(char *line, int linelen, const char *bound, int blen) argument
986 if (blen == -1)
987 blen = strlen(bound);
989 if (blen + 2 > linelen)
993 && strncmp(line + 2, bound, blen) == 0) {
994 if (strncmp(line + blen
[all...]
/freebsd-current/sys/netgraph/
H A Dng_parse.c1207 int align, len, blen, error = 0; local
1323 for (blen = index = 0; index < num; index++) {
1329 pad = ng_parse_get_elem_pad(type, index, ctype, blen);
1331 if (blen >= *buflen) {
1335 buf[blen++] = 0;
1339 vlen = *buflen - blen;
1342 start, buf + blen, &vlen, ctype);
1346 s, off, start, buf + blen, &vlen);
1350 blen += vlen;
1355 while (blen
[all...]
/freebsd-current/usr.bin/sed/
H A Dprocess.c702 if (sp->len + (reqlen) + 1 >= sp->blen) { \
703 sp->blen += (reqlen) + 1024; \
704 if ((sp->space = sp->back = realloc(sp->back, sp->blen)) \
748 if (tlen > sp->blen) {
749 sp->blen = tlen + 1024;
750 if ((sp->space = sp->back = realloc(sp->back, sp->blen)) ==

Completed in 389 milliseconds

123456