/illumos-gate/usr/src/cmd/abi/spectrans/spec2map/ |
H A D | util.c | 186 size_t vlen; in strset() local 189 vlen = strlen(value); in strset() 192 if ((string = malloc(vlen + 1)) == NULL) { in strset() 197 } else if (strlen(string) < vlen) { in strset() 199 if ((string = realloc(string, vlen + 1)) == NULL) { in strset()
|
/illumos-gate/usr/src/cmd/abi/spectrans/spec2trace/ |
H A D | util.c | 105 size_t vlen; in strset() local 108 vlen = strlen(value); in strset() 111 if ((string = malloc(vlen+1)) == NULL) { in strset() 114 } else if (strlen(string) < vlen) { in strset() 117 if ((string = realloc(string, vlen+1)) == NULL) { in strset()
|
/illumos-gate/usr/src/cmd/bhyve/ |
H A D | pci_e82545.c | 1088 unsigned hdrlen, vlen, pktlen, len, left, mss, now, nnow, nleft, pvoff; in e82545_transmit() local 1222 hdrlen = vlen = 0; in e82545_transmit() 1227 vlen = ETHER_VLAN_ENCAP_LEN; in e82545_transmit() 1262 if (vlen != 0 && hdrlen < ETHER_ADDR_LEN*2) { in e82545_transmit() 1314 if (pktlen < hdrlen + vlen) { in e82545_transmit() 1320 if (hdrlen + vlen != 0) { in e82545_transmit() 1321 hdr = __builtin_alloca(hdrlen + vlen); in e82545_transmit() 1322 hdr += vlen; in e82545_transmit() 1360 if (vlen != 0) { in e82545_transmit()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | lcp.c | 1119 #define ACKCIENDP(opt, neg, class, val, vlen) \ argument 1122 if ((len -= CILEN_CHAR + vlen) < 0) \ 1126 if (cilen != CILEN_CHAR + vlen || \ 1132 for (i = 0; i < vlen; ++i) { \ 1714 #define REJCIENDP(opt, neg, class, val, vlen) \ argument 1716 len >= CILEN_CHAR + vlen && \ 1718 p[1] == CILEN_CHAR + vlen) { \ 1720 len -= CILEN_CHAR + vlen; \ 1725 for (i = 0; i < vlen; ++i) { \
|
H A D | main.c | 2403 int vlen, i; in update_db_entry() local 2412 vlen = 1; in update_db_entry() 2414 vlen += strlen(p) + 1; in update_db_entry() 2415 vbuf = malloc(vlen); in update_db_entry() 2420 q += slprintf(q, vbuf + vlen - q, "%s;", p); in update_db_entry() 2425 dbuf.dsize = vlen; in update_db_entry()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.rlogind.c | 888 krb5_int32 vlen; in krb5_compat_recvauth() local 894 if ((retval = krb5_net_read(context, fd, (char *)&vlen, 4)) != 4) in krb5_compat_recvauth() 901 len = (int)ntohl(vlen); in krb5_compat_recvauth()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | radix.c | 223 uint_t off = t->rn_off, vlen, matched_off; in rn_match() local 226 vlen = sizeof (struct sockaddr); in rn_match() 241 cplim = v + vlen; in rn_match() 361 uint_t head_off = top->rn_off, vlen; in rn_insert() local 366 vlen = sizeof (struct sockaddr); in rn_insert() 374 uint8_t *cplim = v + vlen; in rn_insert() 714 uint_t head_off, vlen; in rn_delete() local 721 vlen = sizeof (struct sockaddr); in rn_delete() 725 memcmp(v + head_off, tt->rn_key + head_off, vlen - head_off) != 0) { in rn_delete()
|
/illumos-gate/usr/src/cmd/ldap/common/ |
H A D | common.c | 299 int ctrl_criticality=0, vlen; local 671 &ctrl_criticality, &ctrl_value, &vlen)) { 677 vlen, &(ldctrl->ldctl_value), 1812 char **ctrl_value, int *vlen) argument 1824 if (( *vlen = ldif_base64_decode( (char *)value, 1831 *vlen = (int)strlen(*ctrl_value); 1846 char **ctrl_value, int *vlen) argument 1854 *vlen = 0; 1874 return (calculate_ctrl_value( s, ctrl_value, vlen )); 1913 return (calculate_ctrl_value( s, ctrl_value, vlen ));
|
H A D | fileurl.c | 231 ldaptool_berval_from_ldif_value( const char *value, int vlen, in ldaptool_berval_from_ldif_value() argument 311 bvp->bv_len = vlen; in ldaptool_berval_from_ldif_value() 312 if (( bvp->bv_val = (char *)malloc( vlen + 1 )) == NULL ) { in ldaptool_berval_from_ldif_value() 316 SAFEMEMCPY( bvp->bv_val, value, vlen ); in ldaptool_berval_from_ldif_value() 317 bvp->bv_val[ vlen ] = '\0'; in ldaptool_berval_from_ldif_value()
|
H A D | fileurl.h | 65 int ldaptool_berval_from_ldif_value( const char *value, int vlen,
|
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 ) argument 968 printf(gettext("%s: value: %s vlen: %d\n"), "ldapmodify", value, vlen); 971 rc = ldaptool_berval_from_ldif_value( value, vlen, bvp,
|
H A D | ldaptool.h | 200 int *ctrl_criticality, char **ctrl_value, int *vlen);
|
/illumos-gate/usr/src/cmd/ptools/pfiles/ |
H A D | pfiles.c | 566 size_t vlen; in show_sockopts() local 624 nexthop_val = proc_fdinfo_misc(info, PR_SOCKOPT_IP_NEXTHOP, &vlen); in show_sockopts() 625 if (nexthop_val != NULL && vlen > 0) { in show_sockopts() 719 size_t vlen; in dosocknames() local 721 sa = proc_fdinfo_misc(info, PR_SOCKETNAME, &vlen); in dosocknames() 723 show_sockaddr("sockname", sa, vlen); in dosocknames() 725 sa = proc_fdinfo_misc(info, PR_PEERSOCKNAME, &vlen); in dosocknames() 727 show_sockaddr("peername", sa, vlen); in dosocknames()
|
/illumos-gate/usr/src/cmd/svc/svccfg/ |
H A D | svccfg_libscf.c | 12791 ssize_t vlen, szret; in list_prop_info() local 12793 vlen = scf_value_get_as_string(val, NULL, 0); in list_prop_info() 12794 if (vlen < 0) in list_prop_info() 12797 buf = safe_malloc(vlen + 1); in list_prop_info() 12799 szret = scf_value_get_as_string(val, buf, vlen + 1); in list_prop_info() 12802 assert(szret <= vlen); in list_prop_info() 14535 ssize_t vlen, szret; in get_prop_values() local 14537 vlen = scf_value_get_as_string(val, NULL, 0); in get_prop_values() 14538 if (vlen < 0) in get_prop_values() 14541 buf = safe_malloc(vlen + 1); in get_prop_values() [all …]
|
/illumos-gate/usr/src/common/ctf/ |
H A D | ctf_create.c | 370 size += sizeof (ushort_t) * (vlen + (vlen & 1)); in ctf_update() 566 if (vlen & 1) in ctf_update() 1136 uint_t vlen; in ctf_add_funcptr() local 1145 vlen = ctc->ctc_argc; in ctf_add_funcptr() 1149 if (vlen > CTF_MAX_VLEN) in ctf_add_funcptr() 1164 if (vlen != 0 && (vdat = ctf_alloc(sizeof (ctf_id_t) * vlen)) == NULL) in ctf_add_funcptr() 1390 uint_t kind, vlen, root; in ctf_add_enumerator() local 1409 if (vlen == CTF_MAX_VLEN) in ctf_add_enumerator() 1451 uint_t kind, vlen, root; in ctf_add_member() local 1703 uint_t kind, flag, vlen; in ctf_add_type() local [all …]
|
H A D | ctf_open.c | 122 ushort_t info, vlen; in init_symtab() local 172 vlen = LCTF_INFO_VLEN(fp, info); in init_symtab() 180 vlen == 0) in init_symtab() 247 vbytes = sizeof (ushort_t) * (vlen + (vlen & 1)); in init_types() 256 vbytes = sizeof (ctf_member_t) * vlen; in init_types() 257 for (n = vlen; n != 0; n--, mp++) in init_types() 264 for (n = vlen; n != 0; n--, lmp++) in init_types() 270 vbytes = sizeof (ctf_enum_t) * vlen; in init_types() 395 vbytes = sizeof (ushort_t) * (vlen + (vlen & 1)); in init_types() 407 vbytes = sizeof (ctf_member_t) * vlen; in init_types() [all …]
|
/illumos-gate/usr/src/common/devid/ |
H A D | devid_smp.c | 107 int vlen, plen, slen; in ddi_devid_smp_encode() local 155 vlen = scsi_ascii_inquiry_len( in ddi_devid_smp_encode() 162 if ((vlen <= 0) || (plen <= 0) || ((slen + 1) != sizeof (sbuf))) in ddi_devid_smp_encode() 167 raw_id_len = vlen + 1 + plen + 1 + slen; in ddi_devid_smp_encode() 177 &i_devid->did_id[0], vlen); in ddi_devid_smp_encode() 178 i_devid->did_id[vlen] = '.'; in ddi_devid_smp_encode() 182 &i_devid->did_id[vlen + 1], plen); in ddi_devid_smp_encode() 183 i_devid->did_id[vlen + 1 + plen] = '.'; in ddi_devid_smp_encode() 186 bcopy(sbuf, &i_devid->did_id[vlen + 1 + plen + 1], slen); in ddi_devid_smp_encode()
|
/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/contrib/mDNSResponder/mDNSCore/ |
H A D | mDNS.c | 14363 const mDNSu8 *const trans = p + 14 + (pkt->v4.vlen & 0xF) * 4; in mDNSCoreReceiveRawPacket()
|
H A D | mDNSEmbeddedAPI.h | 594 mDNSu8 vlen;
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | expand.c | 352 int vlen; in expand_string() local 380 vlen = (current_bootfs_obj > 0) ? 10 : 0; in expand_string() 381 vlen += 11; in expand_string() 382 vlen += strlen(current_rootpool); in expand_string() 386 vlen += 12 + strlen(current_bootpath); in expand_string() 390 vlen += 13 + strlen(current_devid); in expand_string() 393 vlen += grub_sprintf(NULL, in expand_string() 397 vlen += grub_sprintf(NULL, in expand_string() 401 if (q + vlen >= d + len) in expand_string() 455 (void) grub_memcpy(q, val, vlen); in expand_string() [all …]
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | print.c | 235 int vlen; in pr_boolean() local 277 vlen = (value < 0) ? 1 : 0; in pr_boolean() 391 int vlen; in pr_number() local 439 vlen = digitlen(value); in pr_number() 499 printed += nlen + vlen + 2; in pr_number() 503 printed += nlen + vlen + 1; in pr_number() 504 caplen += nlen + vlen + 1; in pr_number() 509 printed += nlen + vlen + 4; in pr_number() 542 size_t nlen, vlen; in pr_string() local 599 vlen = 1; in pr_string() [all …]
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | secobj.c | 422 uint_t vlen; in process_secobj_line() local 479 vlen = DLADM_SECOBJ_VAL_MAX; in process_secobj_line() 482 sinfo.si_lenp = &vlen; in process_secobj_line()
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_subr.c | 59 size_t off, len, vlen, wlen; in dtrace_xstr2desc() local 75 vlen = 0; in dtrace_xstr2desc() 88 vlen = (size_t)(q + len - v); in dtrace_xstr2desc() 96 if (vlen > 2 && v[1] == '$') { in dtrace_xstr2desc() 97 vlen--; in dtrace_xstr2desc() 107 wlen = vlen - (w - v); in dtrace_xstr2desc() 113 vlen = strlen(v); in dtrace_xstr2desc() 118 } else if (vlen > 1) { in dtrace_xstr2desc() 119 char *vstr = alloca(vlen); in dtrace_xstr2desc() 122 (void) strncpy(vstr, v + 1, vlen - 1); in dtrace_xstr2desc() [all …]
|
/illumos-gate/usr/src/lib/libldap5/include/ldap/ |
H A D | ldif.h | 56 #define LDIF_BASE64_LEN(vlen) (((vlen) * 4 / 3 ) + 3) argument 64 #define LDIF_SIZE_NEEDED(tlen,vlen) \ argument 65 ((tlen) + 4 + LDIF_BASE64_LEN(vlen) \ 66 + ((LDIF_BASE64_LEN(vlen) + tlen + 3) / LDIF_MAX_LINE_WIDTH * 2 )) 76 int str_parse_line( char *line, char **type, char **value, int *vlen); 78 void ldif_put_type_and_value( char **out, char *t, char *val, int vlen ); 79 void ldif_put_type_and_value_nowrap( char **out, char *t, char *val, int vlen ); 81 int vlen, unsigned long options ); 82 char *ldif_type_and_value( char *type, char *val, int vlen ); 83 char *ldif_type_and_value_nowrap( char *type, char *val, int vlen ); [all …]
|