/illumos-gate/usr/src/cmd/abi/spectrans/spec2map/ |
H A D | util.c | 187 size_t vlen; local 190 vlen = strlen(value); 193 if ((string = malloc(vlen + 1)) == NULL) { 198 } else if (strlen(string) < vlen) { 200 if ((string = realloc(string, vlen + 1)) == NULL) {
|
/illumos-gate/usr/src/common/devid/ |
H A D | devid_smp.c | 107 int vlen, plen, slen; local 155 vlen = scsi_ascii_inquiry_len( 162 if ((vlen <= 0) || (plen <= 0) || ((slen + 1) != sizeof (sbuf))) 167 raw_id_len = vlen + 1 + plen + 1 + slen; 177 &i_devid->did_id[0], vlen); 178 i_devid->did_id[vlen] = '.'; 182 &i_devid->did_id[vlen + 1], plen); 183 i_devid->did_id[vlen + 1 + plen] = '.'; 186 bcopy(sbuf, &i_devid->did_id[vlen + 1 + plen + 1], slen);
|
/illumos-gate/usr/src/cmd/abi/spectrans/spec2trace/ |
H A D | util.c | 107 size_t vlen; local 110 vlen = strlen(value); 113 if ((string = malloc(vlen+1)) == NULL) { 116 } else if (strlen(string) < vlen) { 119 if ((string = realloc(string, vlen+1)) == NULL) {
|
/illumos-gate/usr/src/cmd/ldap/common/ |
H A D | fileurl.c | 215 * Populate *bvp from "value" of length "vlen." 230 ldaptool_berval_from_ldif_value( const char *value, int vlen, argument 310 bvp->bv_len = vlen; 311 if (( bvp->bv_val = (char *)malloc( vlen + 1 )) == NULL ) { 315 SAFEMEMCPY( bvp->bv_val, value, vlen ); 316 bvp->bv_val[ vlen ] = '\0';
|
H A D | ldapmodify.c | 96 char *value, int vlen ); 447 int rc, linenum, vlen, modop, replicaport; local 486 if ( str_parse_line( line, &type, &value, &vlen ) < 0 ) { 488 if ( ldif_parse_line( line, &type, &value, &vlen ) < 0 ) { 561 &ctrl_criticality, &ctrl_value, &vlen)) { 566 rc = ldaptool_berval_from_ldif_value( ctrl_value, vlen, 721 addmodifyop( &pmods, modop, type, value, vlen ); 906 addmodifyop( LDAPMod ***pmodsp, int modop, char *attr, char *value, int vlen ) 968 printf(gettext("%s: value: %s vlen: %d\n"), "ldapmodify", value, vlen); [all...] |
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_hba_fru.c | 239 size_t vlen; local 481 vlen = (strlen(utsname.nodename) > FCHBA_SYMB_NAME_LEN ? 483 (void) snprintf((int8_t *)attrs->sym_node_name, vlen, "%s", 486 vlen = (strlen(QL_NAME) + 9 > FCHBA_SYMB_NAME_LEN ? 488 (void) snprintf((int8_t *)attrs->sym_port_name, vlen,
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | print.c | 237 int vlen; local 279 vlen = (value < 0) ? 1 : 0; 280 if ((printed > 0) && (printed + nlen + vlen + 1 > width)) { 393 int vlen; local 441 vlen = digitlen(value); 442 if ((printed > 0) && (printed + nlen + vlen + 2 > width)) { 501 printed += nlen + vlen + 2; 505 printed += nlen + vlen + 1; 506 caplen += nlen + vlen + 1; 511 printed += nlen + vlen 544 size_t nlen, vlen; local [all...] |
/illumos-gate/usr/src/lib/libldap5/sources/ldap/util/ |
H A D | line64.c | 97 int *vlen 149 * *value, with *vlen set to zero. 153 *vlen = 0; 166 if (( *vlen = ldif_base64_decode( s, (unsigned char *)s )) 181 s[ *vlen ] = '\0'; 183 *vlen = (int) (d - s); 325 int vlen, unsigned long options ) 353 if ( val && vlen > 0 ) { 355 stop = (unsigned char *) (val + vlen); 362 !LDIF_CONSERVATIVE_FINALCHAR( val[vlen 324 ldif_put_type_and_value_with_options( char **out, char *t, char *val, int vlen, unsigned long options ) argument 513 ldif_type_and_value_with_options( char *type, char *val, int vlen, unsigned long options ) argument [all...] |
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | expand.c | 351 int vlen; local 379 vlen = (current_bootfs_obj > 0) ? 10 : 0; 380 vlen += 11; 381 vlen += strlen(current_rootpool); 385 vlen += 12 + strlen(current_bootpath); 389 vlen += 13 + strlen(current_devid); 391 if (q + vlen >= d + len) 434 if ((vlen = grub_strlen(val)) >= q + len - d) 437 (void) grub_memcpy(q, val, vlen); 438 q += vlen; [all...] |
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | cplfile.c | 358 int vlen; /* The length of the value string */ local 380 vlen = strlen(value); 387 if(!cf_read_name(cf, "User", value+1, vlen-1, cf->usrnam, USR_LEN) || 418 } else if(vlen > FS_DIR_SEP_LEN && 419 strcmp(value + vlen - FS_DIR_SEP_LEN, FS_DIR_SEP)==0) { 420 cf->path->name[vlen-FS_DIR_SEP_LEN] = '\0';
|
/illumos-gate/usr/src/common/ctf/ |
H A D | ctf_open.c | 121 ushort_t info, vlen; local 171 vlen = LCTF_INFO_VLEN(fp, info); 176 * (+2) and the argument list (vlen). 179 vlen == 0) 182 funcoff += sizeof (ushort_t) * (vlen + 2); 229 ulong_t vlen = LCTF_INFO_VLEN(fp, tp->ctt_info); local 246 vbytes = sizeof (ushort_t) * (vlen + (vlen & 1)); 255 vbytes = sizeof (ctf_member_t) * vlen; 256 for (n = vlen; 349 ulong_t vlen = LCTF_INFO_VLEN(fp, tp->ctt_info); local [all...] |
H A D | ctf_create.c | 275 uint_t vlen = CTF_INFO_VLEN(dtd->dtd_data.ctt_info); local 291 size += sizeof (ushort_t) * (vlen + (vlen & 1)); 296 size += sizeof (ctf_member_t) * vlen; 298 size += sizeof (ctf_lmember_t) * vlen; 301 size += sizeof (ctf_enum_t) * vlen; 333 uint_t vlen = CTF_INFO_VLEN(dtd->dtd_data.ctt_info); local 387 for (argc = 0; argc < vlen; argc++) 390 if (vlen & 1) 789 uint_t vlen; local 991 uint_t kind, vlen, root; local 1048 uint_t kind, vlen, root; local 1258 uint_t kind, flag, vlen; local [all...] |
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | memlist.c | 550 size_t plen, vlen, move = 0; local 556 vlen = prom_virt_avail_len(); 557 if (vlen == 0) 559 if (plen + vlen > max_bootlist_sz) 574 } else if (vlen > vl->maxsize) { 576 move = vlen - vl->maxsize; 577 vl->maxsize = vlen; 583 vl->nelems = vlen / sizeof (struct prom_memlist);
|
/illumos-gate/usr/src/lib/libsip/common/ |
H A D | sip_ui.c | 269 int vlen; local 294 vlen = _sip_header_value->value_end - _sip_header_value->value_start; 298 vlen++; 302 vlen++; 330 vlen--; 331 assert(vlen > 0); 334 _sip_header->sip_hdr_sipmsg->sip_msg_len -= vlen;
|
H A D | sip_dialog.c | 169 int vlen = 0; local 179 vlen = value->sip_value_end - value->sip_value_start; 186 vlen -= strlen(SIP_CRLF); 189 rset->sip_dlg_route = calloc(1, vlen + 1); 198 (void) strncpy(rset->sip_dlg_route, value->sip_value_start, vlen); 202 rset->sip_dlg_route[vlen] = '\0';
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | secobj.c | 426 uint_t vlen; local 483 vlen = DLADM_SECOBJ_VAL_MAX; 486 sinfo.si_lenp = &vlen;
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_subr.c | 58 size_t off, len, vlen, wlen; local 74 vlen = 0; 80 * Set vlen to the length of the variable name and then 87 vlen = (size_t)(q + len - v); 95 if (vlen > 2 && v[1] == '$') { 96 vlen--; 106 wlen = vlen - (w - v); 112 vlen = strlen(v); 117 } else if (vlen > 1) { 118 char *vstr = alloca(vlen); 143 bcopy(v, (char *)pdp + off + len, vlen); local 144 bcopy(w, (char *)pdp + off + len + vlen, wlen); local [all...] |
/illumos-gate/usr/src/common/net/patricia/ |
H A D | radix.c | 323 int off = t->rn_offset, vlen = LEN(cp), matched_off; local 348 vlen = LEN(t->rn_mask); 349 cp += off; cp2 = t->rn_key + off; cplim = v + vlen; 491 int head_off = top->rn_offset, vlen = (int)LEN(v); local 498 caddr_t cplim = v + vlen; 892 int b, head_off, vlen; local 899 vlen = LEN(v); 903 bcmp(v + head_off, tt->rn_key + head_off, vlen - head_off))
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | radix.c | 225 uint_t off = t->rn_off, vlen, matched_off; local 228 vlen = sizeof (struct sockaddr); 243 cplim = v + vlen; 363 uint_t head_off = top->rn_off, vlen; local 368 vlen = sizeof (struct sockaddr); 376 uint8_t *cplim = v + vlen; 716 uint_t head_off, vlen; local 723 vlen = sizeof (struct sockaddr); 727 memcmp(v + head_off, tt->rn_key + head_off, vlen - head_off) != 0) {
|
/illumos-gate/usr/src/cmd/ptools/pfiles/ |
H A D | pfiles.c | 611 int val, vlen; local 643 vlen = sizeof (val); 645 &val, &vlen) == 0 && val != 0) 649 vlen = sizeof (l); 650 if (pr_getsockopt(Pr, fd, SOL_SOCKET, SO_LINGER, &l, &vlen) == 0 && 657 vlen = sizeof (val); 658 if (pr_getsockopt(Pr, fd, SOL_SOCKET, SO_SNDBUF, &val, &vlen) == 0) { 662 vlen = sizeof (val); 663 if (pr_getsockopt(Pr, fd, SOL_SOCKET, SO_RCVBUF, &val, &vlen) == 0) { 667 vlen [all...] |
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | digest_md5.c | 469 int alen, vlen; local 499 vlen = scan - val; 507 vlen = scan - val; 509 if (!vlen) 518 attr_out->clen = vlen; 522 attr_out->charsetlen = vlen; 529 attr_out->dlen = vlen; 533 attr_out->urilen = vlen; 540 attr_out->mlen = vlen; 547 attr_out->nlen = vlen; [all...] |
/illumos-gate/usr/src/tools/ctf/cvt/ |
H A D | ctf.c | 682 size_t vlen = CTF_INFO_VLEN(ctt->ctt_info); local 699 dptr += sizeof (ushort_t) * (vlen + (vlen & 1)); 707 dptr += sizeof (ctf_member_t) * vlen; 709 dptr += sizeof (ctf_lmember_t) * vlen; 712 dptr += sizeof (ctf_enum_t) * vlen; 915 int kind, vlen; local 958 vlen = CTF_INFO_VLEN(ctt->ctt_info); 1029 for (i = 0, mpp = &tdp->t_members; i < vlen; 1044 for (i = 0, mpp = &tdp->t_members; i < vlen; [all...] |
/illumos-gate/usr/src/tools/ctf/dump/ |
H A D | dump.c | 359 (void) printf(" [%lu] vlen %u extends past section " 417 size_t size, increment, vlen = 0; local 456 vlen = sizeof (uint_t); 470 vlen = sizeof (uint_t); 488 vlen = sizeof (ctf_array_t); 506 vlen = sizeof (ushort_t) * (n + (n & 1)); 552 vlen = n * (size >= CTF_LSTRUCT_THRESH ? 571 vlen = sizeof (ctf_enum_t) * n; 627 tp = (ctf_type_t *)((uintptr_t)tp + increment + vlen);
|
/illumos-gate/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc_bitmap.c | 108 int vlen; local 153 vlen = vecp->sv_len; 164 copy_len = (size_t)min(vlen, (int)tocopy); 176 vlen -= copy_len; /* adjust length left in sv_vec_t */ 178 if (vlen <= 0) { 181 vlen = vecp->sv_len;
|
H A D | rdc_diskq.c | 1688 int vlen; local 1704 vlen = vecp->sv_len; 1723 if ((vaddr == NULL) || (vlen == 0)) 1726 if (vlen <= 0) { 1729 vlen = vecp->sv_len; 1818 vlen = vecp->sv_len - FBA_SIZE(fpos);
|