/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | usb_mouse.c | 369 data->blen = len > 0 ? len - 1 : 0; in umouse_request() 370 eshort = data->blen > 0; in umouse_request() 390 data->blen = len - sizeof(umouse_dev_desc); in umouse_request() 393 data->blen = 0; in umouse_request() 405 data->blen = len - sizeof(umouse_confd); in umouse_request() 408 data->blen = 0; in umouse_request() 425 data->blen = len - 2; in umouse_request() 432 data->blen -= 2; in umouse_request() 435 data->blen = 0; in umouse_request() 445 data->blen = len - slen; in umouse_request() [all …]
|
H A D | usb_emul.c | 58 usb_data_xfer_append(struct usb_data_xfer *xfer, void *buf, int blen, in usb_data_xfer_append() argument 68 xb->blen = blen; in usb_data_xfer_append()
|
/illumos-gate/usr/src/lib/libcryptoutil/common/ |
H A D | tohexstr.c | 41 tohexstr(uchar_t *bytes, size_t blen, char *hexstr, size_t hexlen) in tohexstr() argument 46 for (i = 0; i < blen; i++) { in tohexstr() 52 hexstr[2 * blen] = '\0'; in tohexstr() 67 hexstr_to_bytes(char *hexstr, size_t hexlen, uchar_t **bytes, size_t *blen) in hexstr_to_bytes() argument 74 *blen = 0; in hexstr_to_bytes() 84 *blen = (hexlen / 2); in hexstr_to_bytes() 86 b = malloc(*blen); in hexstr_to_bytes() 88 *blen = 0; in hexstr_to_bytes() 118 *blen = 0; in hexstr_to_bytes()
|
/illumos-gate/usr/src/common/net/dhcp/ |
H A D | octet.c | 53 octet_to_hexascii(const void *nump, uint_t nlen, char *bufp, uint_t *blen) in octet_to_hexascii() argument 60 if (nump == NULL || bufp == NULL || blen == NULL) in octet_to_hexascii() 63 if ((nlen * 2) >= *blen) { in octet_to_hexascii() 64 *blen = 0; in octet_to_hexascii() 72 *blen = i * 2; in octet_to_hexascii() 82 hexascii_to_octet(const char *asp, uint_t alen, void *bufp, uint_t *blen) in hexascii_to_octet() argument 88 if (asp == NULL || bufp == NULL || blen == NULL) in hexascii_to_octet() 91 if (alen > (*blen * 2)) in hexascii_to_octet() 108 *blen = k; in hexascii_to_octet()
|
/illumos-gate/usr/src/cmd/tail/ |
H A D | read.c | 131 int blen; in lines() member 137 int blen, cnt, recno, wrap; in lines() local 143 blen = cnt = recno = wrap = 0; in lines() 147 if (++cnt > blen) { in lines() 148 if ((sp = realloc(sp, blen += 1024)) == NULL) in lines() 154 if ((int)llines[recno].blen < cnt) { in lines() 155 llines[recno].blen = cnt + 256; in lines() 157 llines[recno].blen)) == NULL) in lines()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_rip.c | 314 int blen, num; in interpret_rip() local 321 blen = get_line_remain(); in interpret_rip() 322 (void) snprintf(cp, blen, "%-16s ", in interpret_rip() 325 blen -= 17; in interpret_rip() 329 (void) snprintf(cp, blen, "metric=%d", in interpret_rip() 331 blen -= strlen(cp); in interpret_rip() 340 (void) snprintf(cp, blen, in interpret_rip() 347 blen); in interpret_rip() 350 blen -= strlen(cp); in interpret_rip() 352 (void) snprintf(cp, blen, in interpret_rip() [all …]
|
H A D | snoop_ether.c | 137 int blen = MAX(origlen, ETHERMTU); in interpret_ether() local 141 if (data != NULL && datalen != 0 && datalen < blen) { in interpret_ether() 147 data = (char *)malloc(blen); in interpret_ether() 150 datalen = blen; in interpret_ether() 821 int blen = MAX(origlen, 17800); in interpret_tr() local 823 if (data != NULL && datalen != 0 && datalen < blen) { in interpret_tr() 829 data = (char *)malloc(blen); in interpret_tr() 832 datalen = blen; in interpret_tr() 1077 int blen = MAX(origlen, 4500); in interpret_fddi() local 1079 if (data != NULL && datalen != 0 && datalen < blen) { in interpret_fddi() [all …]
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | pro_macinfo.c | 72 size_t blen = BASE_MACINFO_MALLOC_LEN; in libdwarf_compose_begin() local 74 if (blen < maxlen) { in libdwarf_compose_begin() 75 blen = 2 * maxlen; in libdwarf_compose_begin() 77 len = sizeof(struct dw_macinfo_block_s) + blen; in libdwarf_compose_begin() 86 newb->mb_avail_len = blen; in libdwarf_compose_begin() 88 newb->mb_macinfo_data_space_len = blen; in libdwarf_compose_begin() 97 size_t blen = in libdwarf_compose_begin() local 99 if (blen < maxlen) { in libdwarf_compose_begin() 100 blen = 2 * maxlen; in libdwarf_compose_begin() 102 len = sizeof(struct dw_macinfo_block_s) + blen; in libdwarf_compose_begin() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getgrnam.c | 62 size_t blen; in get_grbuf() local 67 blen = _nss_get_bufsizes(0); /* default size */ in get_grbuf() 69 blen = sysconf(_SC_GETGR_R_SIZE_MAX); /* max size */ in get_grbuf() 71 if ((*buffer)->buflen >= blen) /* existing size fits */ in get_grbuf() 75 b = NSS_XbyY_ALLOC(buffer, sizeof (struct group), blen); in get_grbuf()
|
/illumos-gate/usr/src/lib/nsswitch/dns/common/ |
H A D | dns_common.c | 394 size_t bsize, blen; in _nss_dns_gethost_withttl() local 441 blen = 0; in _nss_dns_gethost_withttl() 624 while (ancount-- > 0 && cp < eom && blen < bsize) { in _nss_dns_gethost_withttl() 720 if (blen + len > bsize) { in _nss_dns_gethost_withttl() 724 (void) strlcpy(bptr, np, bsize - blen); in _nss_dns_gethost_withttl() 725 blen += iplen; in _nss_dns_gethost_withttl() 728 blen++; in _nss_dns_gethost_withttl() 729 (void) strlcpy(bptr, host, bsize - blen); in _nss_dns_gethost_withttl() 730 blen += hlen; in _nss_dns_gethost_withttl() 734 blen++; in _nss_dns_gethost_withttl() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_name.c | 978 int b, blen, plen, i; in decode_bitstring() local 980 if ((blen = (*cp & 0xff)) == 0) in decode_bitstring() 981 blen = 256; in decode_bitstring() 982 plen = (blen + 3) / 4; in decode_bitstring() 983 plen += sizeof("\\[x/]") + (blen > 99 ? 3 : (blen > 9) ? 2 : 1); in decode_bitstring() 992 for (b = blen; b > 7; b -= 8, cp++) { in decode_bitstring() 1012 i = SPRINTF((dn, "/%d]", blen)); in decode_bitstring() 1031 int value = 0, count = 0, tbcount = 0, blen = 0; in encode_bitsring() local 1051 blen = (int)strtol(beg_blen, &end_blen, 10); in encode_bitsring() 1103 if (blen > 0) { in encode_bitsring() [all …]
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | nb_name.c | 141 int len, blen; in nb_encname_len() local 148 blen = *cp; in nb_encname_len() 149 if (blen++ == 0) in nb_encname_len() 151 len += blen; in nb_encname_len() 152 cp += blen; in nb_encname_len()
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | filehdr.c | 88 unsigned blen; in audio_write_filehdr() local 92 blen = HEADER_BUFFER + (infop ? ilen : 0) + 4; in audio_write_filehdr() 93 blen = ROUND_DBL(blen); in audio_write_filehdr() 95 if (!(buf = (unsigned char *)calloc(1, blen))) { in audio_write_filehdr() 101 err = audio_encode_au(hdrp, infop, ilen, buf, &blen); in audio_write_filehdr() 104 err = audio_encode_wav(hdrp, buf, &blen); in audio_write_filehdr() 107 err = audio_encode_aiff(hdrp, buf, &blen); in audio_write_filehdr() 118 err = write(fd, (char *)buf, (int)blen); in audio_write_filehdr() 121 if (err != blen) in audio_write_filehdr() 893 audio_encode_aiff(Audio_hdr *hdrp, unsigned char *buf, unsigned int *blen) in audio_encode_aiff() argument [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | export_sec_context.c | 42 size_t bufsize, blen; local 76 blen = bufsize; 79 (krb5_pointer) ctx, &obp, &blen))) 83 interprocess_token->length = bufsize - blen;
|
/illumos-gate/usr/src/boot/forth/ |
H A D | loader.4th | 83 : set-boot-args { | addr len baddr blen aaddr alen -- } 85 to blen to baddr 98 blen alen 40 + + allocate abort" out of memory" 103 baddr blen [char] - strchr ( addr len ) 106 baddr addr blen move 107 blen to len 108 0 to blen 111 dup blen 114 to blen ( addr ) 176 \ now add remining boot args if blen != 0. [all …]
|
/illumos-gate/usr/src/common/bignum/i386/ |
H A D | bignum_i386.c | 83 (*big_mul_vec_impl)(uint32_t *r, uint32_t *a, int alen, uint32_t *b, int blen) 104 big_mul_vec_init(uint32_t *r, uint32_t *a, int alen, uint32_t *b, int blen) in big_mul_vec_init() argument 107 (*big_mul_vec_impl)(r, a, alen, b, blen); in big_mul_vec_init() 134 big_mul_vec_umul(uint32_t *r, uint32_t *a, int alen, uint32_t *b, int blen) in big_mul_vec_umul() argument 139 for (i = 1; i < blen; ++i) in big_mul_vec_umul()
|
/illumos-gate/usr/src/lib/libmp/common/ |
H A D | mult.c | 80 int blen; in m_mult() local 87 blen = b->len; in m_mult() 89 c->len = alen + blen; in m_mult() 111 for (j = blen - 1; j > 0; j--) { in m_mult()
|
/illumos-gate/usr/src/common/bignum/ |
H A D | bignum.h | 186 #define BIG_MUL_VEC(r, a, alen, b, blen) \ argument 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) argument 213 BIG_CHUNK_TYPE *b, int blen);
|
/illumos-gate/usr/src/uts/common/sys/usb/usba/ |
H A D | whcdi.h | 298 const uchar_t *bdata, size_t blen, 301 #define PRF_64(key, klen, nonce, adata, alen, bdata, blen, out) \ argument 302 PRF(key, klen, nonce, adata, alen, bdata, blen, out, 64) 304 #define PRF_128(key, klen, nonce, adata, alen, bdata, blen, out) \ argument 305 PRF(key, klen, nonce, adata, alen, bdata, blen, out, 128) 307 #define PRF_256(key, klen, nonce, adata, alen, bdata, blen, out) \ argument 308 PRF(key, klen, nonce, adata, alen, bdata, blen, out, 256)
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
H A D | import_sec_context.c | 91 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/cmd/sh/ |
H A D | blok.c | 324 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/common/bignum/amd64/ |
H A D | bignum_amd64.c | 48 BIG_CHUNK_TYPE *b, int blen) in big_mul_vec() argument 53 for (i = 1; i < blen; ++i) in big_mul_vec()
|
/illumos-gate/usr/src/cmd/sdiff/ |
H A D | sdiff.c | 820 static int blen = 0; in fgetline() local 828 blen = BUFSIZ; in fgetline() 832 if (fgets(bp, blen, fp) == NULL) in fgetline() 838 while ((sl = strlen(bp)) == blen-1 && *(bp+blen-2) != '\n') { in fgetline() 840 blen *= 2; in fgetline() 841 bp = (char *)realloc(bp, blen); in fgetline() 845 (void) fgets(bp+sl, blen-sl, fp); in fgetline()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/arp/ |
H A D | arp.c | 93 size_t blen; in arphdr_cmd() local 153 blen = 2 * (arp.arh.arh_hlen + arp.arh.arh_plen); in arphdr_cmd() 154 if (mdb_vread(&arp.addrs, blen, addr + sizeof (arp.arh)) == -1) { in arphdr_cmd()
|
/illumos-gate/usr/src/cmd/rpcgen/ |
H A D | rpc_scan.c | 291 size_t blen; in get_token() local 295 blen = strlen(buf); in get_token() 296 p = buf + blen; in get_token() 298 (void) snprintf(p, sizeof (buf) - blen, in get_token() 301 (void) snprintf(p, sizeof (buf) - blen, in get_token()
|