Searched refs:blen (Results 1 - 25 of 70) sorted by relevance

123

/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dtohexstr.c35 * blen
36 * hexlen should be 2 * blen + 1
41 tohexstr(uchar_t *bytes, size_t blen, char *hexstr, size_t hexlen) argument
46 for (i = 0; i < blen; i++) {
52 hexstr[2 * blen] = '\0';
67 hexstr_to_bytes(char *hexstr, size_t hexlen, uchar_t **bytes, size_t *blen) argument
74 *blen = 0;
84 *blen = (hexlen / 2);
86 b = malloc(*blen);
88 *blen
[all...]
/illumos-gate/usr/src/common/bignum/amd64/
H A Dbignum_amd64.c48 BIG_CHUNK_TYPE *b, int blen)
53 for (i = 1; i < blen; ++i)
47 big_mul_vec(BIG_CHUNK_TYPE *r, BIG_CHUNK_TYPE *a, int alen, BIG_CHUNK_TYPE *b, int blen) argument
/illumos-gate/usr/src/common/net/dhcp/
H A Doctet.c46 * NULL-terminated, and the length recorded in blen does *not* include the
53 octet_to_hexascii(const void *nump, uint_t nlen, char *bufp, uint_t *blen) argument
60 if (nump == NULL || bufp == NULL || blen == NULL)
63 if ((nlen * 2) >= *blen) {
64 *blen = 0;
72 *blen = i * 2;
82 hexascii_to_octet(const char *asp, uint_t alen, void *bufp, uint_t *blen) argument
88 if (asp == NULL || bufp == NULL || blen == NULL)
91 if (alen > (*blen * 2))
108 *blen
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dexport_sec_context.c42 size_t bufsize, blen; local
76 blen = bufsize;
79 (krb5_pointer) ctx, &obp, &blen)))
83 interprocess_token->length = bufsize - blen;
/illumos-gate/usr/src/cmd/bhyve/
H A Dusb_mouse.c373 data->blen = len > 0 ? len - 1 : 0;
374 eshort = data->blen > 0;
394 data->blen = len - sizeof(umouse_dev_desc);
397 data->blen = 0;
409 data->blen = len - sizeof(umouse_confd);
412 data->blen = 0;
429 data->blen = len - 2;
436 data->blen -= 2;
439 data->blen = 0;
449 data->blen
[all...]
H A Dusb_emul.c60 usb_data_xfer_append(struct usb_data_xfer *xfer, void *buf, int blen, argument
70 xb->blen = blen;
H A Dusb_emul.h96 * On input into the device handler, blen is set to the lenght of buf.
97 * The device handler is to update blen to reflect on the residual size
102 int blen; /* in:len(buf), out:len(remaining) */ member in struct:usb_data_xfer_block
161 void *buf, int blen, void *hci_data, int ccs);
/illumos-gate/usr/src/cmd/tail/
H A Dread.c131 int blen; member in struct:__anon1918
137 int blen, cnt, recno, wrap; local
143 blen = cnt = recno = wrap = 0;
147 if (++cnt > blen) {
148 if ((sp = realloc(sp, blen += 1024)) == NULL)
154 if ((int)llines[recno].blen < cnt) {
155 llines[recno].blen = cnt + 256;
157 llines[recno].blen)) == NULL)
/illumos-gate/usr/src/cmd/oamuser/lib/
H A Dvprojname.c41 valid_projname(char *project, struct project *pptr, void *buf, size_t blen, argument
67 if ((t_pptr = getprojbyname(project, pptr, buf, blen)) != NULL)
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetgrnam.c64 size_t blen; local
69 blen = _nss_get_bufsizes(0); /* default size */
71 blen = sysconf(_SC_GETGR_R_SIZE_MAX); /* max size */
73 if ((*buffer)->buflen >= blen) /* existing size fits */
77 b = NSS_XbyY_ALLOC(buffer, sizeof (struct group), blen);
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dimport_sec_context.c91 size_t blen; local
119 blen = (size_t) interprocess_token->length;
120 kret = kg_ctx_internalize(context, (krb5_pointer *) &ctx, &ibp, &blen);
/illumos-gate/usr/src/lib/libmp/common/
H A Dmult.c80 int blen; local
87 blen = b->len;
89 c->len = alen + blen;
111 for (j = blen - 1; j > 0; j--) {
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dnb_name.c141 int len, blen; local
148 blen = *cp;
149 if (blen++ == 0)
151 len += blen;
152 cp += blen;
/illumos-gate/usr/src/common/bignum/i386/
H A Dbignum_i386.c85 (*big_mul_vec_impl)(uint32_t *r, uint32_t *a, int alen, uint32_t *b, int blen)
106 big_mul_vec_init(uint32_t *r, uint32_t *a, int alen, uint32_t *b, int blen) argument
109 (*big_mul_vec_impl)(r, a, alen, b, blen);
136 big_mul_vec_umul(uint32_t *r, uint32_t *a, int alen, uint32_t *b, int blen) argument
141 for (i = 1; i < blen; ++i)
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_rip.c316 int blen, num; local
323 blen = get_line_remain();
324 (void) snprintf(cp, blen, "%-16s ",
327 blen -= 17;
331 (void) snprintf(cp, blen, "metric=%d",
333 blen -= strlen(cp);
342 (void) snprintf(cp, blen,
349 blen);
352 blen -= strlen(cp);
354 (void) snprintf(cp, blen,
[all...]
H A Dsnoop_ether.c135 int blen = MAX(origlen, ETHERMTU); local
139 if (data != NULL && datalen != 0 && datalen < blen) {
145 data = (char *)malloc(blen);
148 datalen = blen;
819 int blen = MAX(origlen, 17800); local
821 if (data != NULL && datalen != 0 && datalen < blen) {
827 data = (char *)malloc(blen);
830 datalen = blen;
1075 int blen = MAX(origlen, 4500); local
1077 if (data != NULL && datalen != 0 && datalen < blen) {
1587 int blen = MAX(origlen, 4096); local
1675 int blen = MAX(origlen, 8252); local
[all...]
/illumos-gate/usr/src/lib/libdwarf/common/
H A Dpro_macinfo.c77 size_t blen = BASE_MACINFO_MALLOC_LEN; local
79 if (blen < maxlen) {
80 blen = 2 * maxlen;
82 len = sizeof(struct dw_macinfo_block_s) + blen;
91 newb->mb_avail_len = blen;
93 newb->mb_macinfo_data_space_len = blen;
102 size_t blen = local
104 if (blen < maxlen) {
105 blen = 2 * maxlen;
107 len = sizeof(struct dw_macinfo_block_s) + blen;
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_name.c978 int b, blen, plen, i; local
980 if ((blen = (*cp & 0xff)) == 0)
981 blen = 256;
982 plen = (blen + 3) / 4;
983 plen += sizeof("\\[x/]") + (blen > 99 ? 3 : (blen > 9) ? 2 : 1);
992 for (b = blen; b > 7; b -= 8, cp++) {
1012 i = SPRINTF((dn, "/%d]", blen));
1031 int value = 0, count = 0, tbcount = 0, blen = 0; local
1051 blen
[all...]
/illumos-gate/usr/src/lib/nsswitch/dns/common/
H A Ddns_common.c401 size_t bsize, blen; local
448 blen = 0;
631 while (ancount-- > 0 && cp < eom && blen < bsize) {
727 if (blen + len > bsize) {
731 (void) strlcpy(bptr, np, bsize - blen);
732 blen += iplen;
735 blen++;
736 (void) strlcpy(bptr, host, bsize - blen);
737 blen += hlen;
741 blen
[all...]
/illumos-gate/usr/src/cmd/sh/
H A Dblok.c324 size_t blen; local
331 blen = blklen(pp);
333 if (blen < nbytes) { /* need to grow */
335 memcpy(q, pp, blen);
338 } else if (blen == nbytes) { /* do nothing */
/illumos-gate/usr/src/cmd/mdb/common/modules/arp/
H A Darp.c93 size_t blen; local
153 blen = 2 * (arp.arh.arh_hlen + arp.arh.arh_plen);
154 if (mdb_vread(&arp.addrs, blen, addr + sizeof (arp.arh)) == -1) {
/illumos-gate/usr/src/common/bignum/
H A Dbignum.h186 #define BIG_MUL_VEC(r, a, alen, b, blen) \
187 (*big_mul_vec_impl)(r, a, alen, b, blen)
197 int blen);
205 #define BIG_MUL_VEC(r, a, alen, b, blen) big_mul_vec(r, a, alen, b, blen)
213 BIG_CHUNK_TYPE *b, int blen);
/illumos-gate/usr/src/cmd/audio/utilities/
H A Dfilehdr.c90 unsigned blen; local
94 blen = HEADER_BUFFER + (infop ? ilen : 0) + 4;
95 blen = ROUND_DBL(blen);
97 if (!(buf = (unsigned char *)calloc(1, blen))) {
103 err = audio_encode_au(hdrp, infop, ilen, buf, &blen);
106 err = audio_encode_wav(hdrp, buf, &blen);
109 err = audio_encode_aiff(hdrp, buf, &blen);
120 err = write(fd, (char *)buf, (int)blen);
123 if (err != blen)
895 audio_encode_aiff(Audio_hdr *hdrp, unsigned char *buf, unsigned int *blen) argument
971 audio_encode_au(Audio_hdr *hdrp, char *infop, unsigned int ilen, unsigned char *buf, unsigned int *blen) argument
1130 audio_encode_wav(Audio_hdr *hdrp, unsigned char *buf, unsigned int *blen) argument
[all...]
/illumos-gate/usr/src/cmd/sed/
H A Ddefs.h147 size_t blen; /* Backing memory length. */ member in struct:__anon1392
/illumos-gate/usr/src/uts/common/sys/usb/usba/
H A Dwhcdi.h298 const uchar_t *bdata, size_t blen,
301 #define PRF_64(key, klen, nonce, adata, alen, bdata, blen, out) \
302 PRF(key, klen, nonce, adata, alen, bdata, blen, out, 64)
304 #define PRF_128(key, klen, nonce, adata, alen, bdata, blen, out) \
305 PRF(key, klen, nonce, adata, alen, bdata, blen, out, 128)
307 #define PRF_256(key, klen, nonce, adata, alen, bdata, blen, out) \
308 PRF(key, klen, nonce, adata, alen, bdata, blen, out, 256)

Completed in 69 milliseconds

123