Home
last modified time | relevance | path

Searched refs:blen (Results 1 – 25 of 72) sorted by path

123

/illumos-gate/usr/src/boot/common/
H A Dmodule.c1041 int *intp, bestver, blen, clen, ival, modnamelen, reclen; in mod_search_hints() local
1053 clen = blen = 0; in mod_search_hints()
1080 blen = clen; in mod_search_hints()
1094 result = file_lookup(mdp->d_path, (char *)best, blen, NULL); in mod_search_hints()
/illumos-gate/usr/src/boot/forth/
H A Dloader.4th85 to blen to baddr
107 blen to len
108 0 to blen
111 dup blen
179 blen 0<> if
183 blen 1- to blen
189 blen 1- to blen
194 0 to blen
298 to blen
301 baddr blen
[all …]
/illumos-gate/usr/src/cmd/audio/utilities/
H A Dfilehdr.c88 unsigned blen; in audio_write_filehdr() local
93 blen = ROUND_DBL(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()
953 *blen = buf_size; in audio_encode_aiff()
970 unsigned char *buf, unsigned int *blen) in audio_encode_au() argument
1082 if (*blen < offset) { in audio_encode_au()
1088 *blen = (unsigned)offset; in audio_encode_au()
[all …]
/illumos-gate/usr/src/cmd/bhyve/
H A Dpci_xhci.c1576 i, xfer->data[i].processed, xfer->data[i].blen, in pci_xhci_xfer_complete()
1605 XHCI_TRB_2_REM_SET(xfer->data[i].blen); in pci_xhci_xfer_complete()
H A Dusb_emul.c59 usb_data_xfer_append(struct usb_data_xfer *xfer, void *buf, int blen, in usb_data_xfer_append() argument
69 xb->blen = blen; in usb_data_xfer_append()
H A Dusb_emul.h101 int blen; /* in:len(buf), out:len(remaining) */ member
160 void *buf, int blen, void *hci_data, int ccs);
H A Dusb_mouse.c394 data->blen = 0; in umouse_request()
409 data->blen = 0; in umouse_request()
433 data->blen -= 2; in umouse_request()
436 data->blen = 0; in umouse_request()
449 data->blen = 0; in umouse_request()
464 data->blen = 0; in umouse_request()
489 data->blen = 0; in umouse_request()
611 data->blen = 0; in umouse_request()
667 data->blen = 0; in umouse_request()
717 len = data->blen; in umouse_data_handler()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ether.c147 data = (char *)malloc(blen); in interpret_ether()
150 datalen = blen; in interpret_ether()
829 data = (char *)malloc(blen); in interpret_tr()
832 datalen = blen; in interpret_tr()
1077 int blen = MAX(origlen, 4500); in interpret_fddi() local
1085 data = (char *)malloc(blen); in interpret_fddi()
1088 datalen = blen; in interpret_fddi()
1597 data = malloc(blen); in interpret_ib()
1600 datalen = blen; in interpret_ib()
1688 data = (char *)malloc(blen); in interpret_ipnet()
[all …]
H A Dsnoop_nfs4.c1599 blen -= len; in sumarg_open()
1603 blen -= len; in sumarg_open()
1607 blen -= len; in sumarg_open()
1611 blen -= len; in sumarg_open()
2455 blen -= len; in sumres_access()
2459 blen -= len; in sumres_access()
2463 blen -= len; in sumres_access()
2467 blen -= len; in sumres_access()
2715 blen -= len; in sumres_open()
2720 blen -= len; in sumres_open()
[all …]
H A Dsnoop_rip.c314 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()
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()
358 blen -= strlen(cp); in interpret_rip()
[all …]
/illumos-gate/usr/src/cmd/dis/
H A Ddis_target.c161 size_t blen; in sym_compare() local
234 blen = strlen(symb->se_name); in sym_compare()
236 if (alen < blen) in sym_compare()
238 else if (alen > blen) in sym_compare()
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipmon.c722 static void print_natlog(log, buf, blen) in print_natlog() argument
725 int blen;
808 int blen;
925 int logtype, blen;
931 while (blen > 0) {
936 bp = (char *)malloc(blen);
941 bcopy((char *)ipl, bp, blen);
951 if (psize > blen)
972 blen -= psize;
981 static void print_ipflog(log, buf, blen) in print_ipflog() argument
[all …]
/illumos-gate/usr/src/cmd/keyserv/
H A Dchkey_common.c89 int blen, pos; in get_ldap_bindDN() local
106 blen = strlen(bindDN); in get_ldap_bindDN()
109 if ((blen > 0) && (bindDN[blen - 1] == '\n')) { in get_ldap_bindDN()
110 bindDN[blen - 1] = '\0'; in get_ldap_bindDN()
111 blen -= 1; in get_ldap_bindDN()
115 if (blen > 0) { in get_ldap_bindDN()
116 for (pos = blen - 1; pos >= 0; pos--) { in get_ldap_bindDN()
/illumos-gate/usr/src/cmd/krb5/krb5kdc/
H A Dkdc_util.c988 int blen; /* bytes of length */ in asn1length() local
992 blen = **astream & 0x7f; in asn1length()
993 if (blen > 3) { in asn1length()
996 for (++*astream, length = 0; blen; ++*astream, blen--) { in asn1length()
/illumos-gate/usr/src/cmd/mdb/common/modules/arp/
H A Darp.c93 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/mdb/common/modules/genunix/
H A Dstreams.c1233 uint64_t blen = ~0UL; in mblk_prt() local
1265 'b', MDB_OPT_UINT64, &blen, in mblk_prt()
1276 (llen != ~0UL) || (blen != ~0UL) || (dbaddr != 0)) in mblk_prt()
1355 if ((blen != ~0UL) && (blen != (dblk.db_lim - dblk.db_base))) in mblk_prt()
/illumos-gate/usr/src/cmd/oamuser/lib/
H A Dvprojname.c41 valid_projname(char *project, struct project *pptr, void *buf, size_t blen, in valid_projname() argument
67 if ((t_pptr = getprojbyname(project, pptr, buf, blen)) != NULL) in valid_projname()
/illumos-gate/usr/src/cmd/oawk/
H A Drun.c1095 size_t blen, newlen, sslen, orslen, ofslen, oslen; in print() local
1101 blen = 0; in print()
1118 newlen = blen + sslen + oslen; in print()
1131 (void) wmemcpy(bp, oldbp, blen); in print()
1133 (void) wmemcpy(bp + blen, ss, sslen); in print()
1134 (void) wmemcpy(bp + blen + sslen, os, oslen); in print()
1136 blen = newlen; in print()
1137 bp[blen] = '\0'; in print()
/illumos-gate/usr/src/cmd/rpcgen/
H A Drpc_scan.c291 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()
/illumos-gate/usr/src/cmd/sdiff/
H A Dsdiff.c820 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/sed/
H A Ddefs.h147 size_t blen; /* Backing memory length. */ member
H A Dprocess.c697 if (sp->len + (reqlen) + 1 >= sp->blen) { \ in regsub()
698 sp->blen += (reqlen) + 1024; \ in regsub()
699 if ((sp->back = realloc(sp->back, sp->blen)) == NULL) \ in regsub()
743 if (tlen > sp->blen) { in cspace()
744 sp->blen = tlen + 1024; in cspace()
745 if ((sp->space = sp->back = realloc(sp->back, sp->blen)) == in cspace()
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dfvwrite.c134 size_t blen = fp->f_p - fp->f_bf.smb_base; variable
143 } while ((size_t) tsize < blen + len);
154 fp->f_p = tbase + blen;
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dmap.c6798 parse_fields(s, ibuf, blen, nr_substrings) in parse_fields() argument
6801 int blen; /* number of elements in ibuf */
6808 blen--; /* for terminating END_OF_FIELDS */
6825 if (i < blen)
6839 syserr("too many fields, %d max", blen);
H A Dqueue.c6022 multiqueue_cache(basedir, blen, qg, qn, phash) in multiqueue_cache() argument
6024 int blen;
6087 if (strncmp(basedir, qpath, blen) != 0 &&
6088 (strncmp(basedir, qpath, blen - 1) != 0 || len != blen - 1))
6097 if (blen < len && SM_FIRST_DIR_DELIM(qg->qg_qdir + blen) != NULL)
6115 SM_ASSERT(len >= blen - 1);
6165 qg->qg_qdir[blen - 1] = '\0'; /* cut off trailing / */
6309 if (qg->qg_qdir[blen - 1] != '\0' &&
6310 qg->qg_qdir[blen] != '\0')
6317 qg->qg_qpaths[0].qp_name = newstr(qg->qg_qdir + blen);
[all …]

123