| /onnv-gate/usr/src/lib/libldap5/include/ldap/ |
| H A D | ldif.h | 58 #define LDIF_BASE64_LEN(vlen) (((vlen) * 4 / 3 ) + 3) argument 66 #define LDIF_SIZE_NEEDED(tlen,vlen) \ argument 67 ((tlen) + 4 + LDIF_BASE64_LEN(vlen) \ 68 + ((LDIF_BASE64_LEN(vlen) + tlen + 3) / LDIF_MAX_LINE_WIDTH * 2 )) 78 int str_parse_line( char *line, char **type, char **value, int *vlen); 80 void ldif_put_type_and_value( char **out, char *t, char *val, int vlen ); 81 void ldif_put_type_and_value_nowrap( char **out, char *t, char *val, int vlen ); 83 int vlen, unsigned long options ); 84 char *ldif_type_and_value( char *type, char *val, int vlen ); 85 char *ldif_type_and_value_nowrap( char *type, char *val, int vlen ); [all …]
|
| /onnv-gate/usr/src/lib/libldap4/include/ |
| H A D | ldif.h | 36 #define LDIF_BASE64_LEN(vlen) (((vlen) * 4 / 3 ) + 3) argument 44 #define LDIF_SIZE_NEEDED(tlen,vlen) \ argument 45 ((tlen) + 4 + LDIF_BASE64_LEN(vlen) \ 46 + ((LDIF_BASE64_LEN(vlen) + tlen + 3) / LINE_WIDTH * 2 )) 50 int str_parse_line( char *line, char **type, char **value, int *vlen); 52 void put_type_and_value( char **out, char *t, char *val, int vlen ); 53 char *ldif_type_and_value( char *type, char *val, int vlen );
|
| /onnv-gate/usr/src/lib/libldap5/sources/ldap/util/ |
| H A D | line64.c | 97 int *vlen in str_parse_line() argument 153 *vlen = 0; in str_parse_line() 166 if (( *vlen = ldif_base64_decode( s, (unsigned char *)s )) in str_parse_line() 181 s[ *vlen ] = '\0'; in str_parse_line() 183 *vlen = (int) (d - s); in str_parse_line() 325 int vlen, unsigned long options ) in ldif_put_type_and_value_with_options() argument 353 if ( val && vlen > 0 ) { in ldif_put_type_and_value_with_options() 355 stop = (unsigned char *) (val + vlen); in ldif_put_type_and_value_with_options() 362 !LDIF_CONSERVATIVE_FINALCHAR( val[vlen-1] )) { in ldif_put_type_and_value_with_options() 395 len = ldif_base64_encode_internal( (unsigned char *)val, *out, vlen, in ldif_put_type_and_value_with_options() [all …]
|
| /onnv-gate/usr/src/lib/libldap4/util/ |
| H A D | line64.c | 59 int *vlen in str_parse_line() argument 122 for ( p = s, *vlen = 0; p < stop; p += 4, *vlen += 3 ) { in str_parse_line() 142 *vlen += 1; in str_parse_line() 150 *vlen += 2; in str_parse_line() 158 s[ *vlen ] = '\0'; in str_parse_line() 201 *vlen = ftell(fp); in str_parse_line() 202 if ( (*value = (char *)malloc(*vlen)) == NULL ) in str_parse_line() 215 rlen = fread( *value, 1, *vlen, fp ); in str_parse_line() 219 if ( rlen != *vlen ) in str_parse_line() 227 *vlen = (int) (d - s); in str_parse_line() [all …]
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Tie/ |
| H A D | SubstrHash.pm | 46 my ($klen, $vlen, $tsize) = @_; 47 my $rlen = 1 + $klen + $vlen; 50 local $self = bless ["\0", $klen, $vlen, $tsize, $rlen, 0, -1]; 64 local($klen, $vlen, $tsize, $rlen) = @$self[1..4]; 75 return substr($record, 1+$klen, $vlen); 83 local($klen, $vlen, $tsize, $rlen) = @$self[1..4]; 85 croak(qq/Value "$val" is not $vlen characters long/) 86 if length($val) != $vlen; 116 local($klen, $vlen, $tsize, $rlen) = @$self[1..4]; 128 return substr($record, 1+$klen, $vlen); [all …]
|
| /onnv-gate/usr/src/lib/libcurses/screen/ |
| H A D | print.c | 237 int vlen; in pr_boolean() local 279 vlen = (value < 0) ? 1 : 0; in pr_boolean() 280 if ((printed > 0) && (printed + nlen + vlen + 1 > width)) { in pr_boolean() 393 int vlen; in pr_number() local 441 vlen = digitlen(value); in pr_number() 442 if ((printed > 0) && (printed + nlen + vlen + 2 > width)) { in pr_number() 501 printed += nlen + vlen + 2; in pr_number() 505 printed += nlen + vlen + 1; in pr_number() 506 caplen += nlen + vlen + 1; in pr_number() 511 printed += nlen + vlen + 4; in pr_number() [all …]
|
| /onnv-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()
|
| /onnv-gate/usr/src/cmd/abi/spectrans/spec2map/ |
| H A D | util.c | 187 size_t vlen; in strset() local 190 vlen = strlen(value); in strset() 193 if ((string = malloc(vlen + 1)) == NULL) { in strset() 198 } else if (strlen(string) < vlen) { in strset() 200 if ((string = realloc(string, vlen + 1)) == NULL) { in strset()
|
| /onnv-gate/usr/src/lib/libldap5/sources/ldap/common/ |
| H A D | digest_md5.c | 469 int alen, vlen; in digest_parse() local 499 vlen = scan - val; in digest_parse() 507 vlen = scan - val; in digest_parse() 509 if (!vlen) in digest_parse() 518 attr_out->clen = vlen; in digest_parse() 522 attr_out->charsetlen = vlen; in digest_parse() 529 attr_out->dlen = vlen; in digest_parse() 533 attr_out->urilen = vlen; in digest_parse() 540 attr_out->mlen = vlen; in digest_parse() 547 attr_out->nlen = vlen; in digest_parse() [all …]
|
| H A D | getfilter.c | 327 filter_add_strn( char *f, char *flimit, char *v, size_t vlen ) in filter_add_strn() argument 333 if ( vlen > flen ) { /* flimit is too small */ in filter_add_strn() 337 if ( vlen > 0 ) SAFEMEMCPY( f, v, vlen ); in filter_add_strn() 338 return f + vlen; in filter_add_strn()
|
| /onnv-gate/usr/src/common/ctf/ |
| H A D | ctf_open.c | 120 ushort_t info, vlen; in init_symtab() local 170 vlen = LCTF_INFO_VLEN(fp, info); in init_symtab() 178 vlen == 0) in init_symtab() 181 funcoff += sizeof (ushort_t) * (vlen + 2); in init_symtab() 228 ulong_t vlen = LCTF_INFO_VLEN(fp, tp->ctt_info); in init_types() local 245 vbytes = sizeof (ushort_t) * (vlen + (vlen & 1)); in init_types() 254 vbytes = sizeof (ctf_member_t) * vlen; in init_types() 255 for (n = vlen; n != 0; n--, mp++) in init_types() 261 vbytes = sizeof (ctf_lmember_t) * vlen; in init_types() 262 for (n = vlen; n != 0; n--, lmp++) in init_types() [all …]
|
| H A D | ctf_create.c | 224 uint_t vlen = CTF_INFO_VLEN(dtd->dtd_data.ctt_info); in ctf_update() local 240 size += sizeof (ushort_t) * (vlen + (vlen & 1)); in ctf_update() 245 size += sizeof (ctf_member_t) * vlen; in ctf_update() 247 size += sizeof (ctf_lmember_t) * vlen; in ctf_update() 250 size += sizeof (ctf_enum_t) * vlen; in ctf_update() 282 uint_t vlen = CTF_INFO_VLEN(dtd->dtd_data.ctt_info); in ctf_update() local 336 for (argc = 0; argc < vlen; argc++) in ctf_update() 339 if (vlen & 1) in ctf_update() 685 uint_t vlen; in ctf_add_function() local 692 vlen = ctc->ctc_argc; in ctf_add_function() [all …]
|
| /onnv-gate/usr/src/lib/libdtrace/common/ |
| H A D | dt_subr.c | 57 size_t off, len, vlen, wlen; in dtrace_xstr2desc() local 73 vlen = 0; in dtrace_xstr2desc() 86 vlen = (size_t)(q + len - v); in dtrace_xstr2desc() 94 if (vlen > 2 && v[1] == '$') { in dtrace_xstr2desc() 95 vlen--; in dtrace_xstr2desc() 105 wlen = vlen - (w - v); in dtrace_xstr2desc() 111 vlen = strlen(v); in dtrace_xstr2desc() 116 } else if (vlen > 1) { in dtrace_xstr2desc() 117 char *vstr = alloca(vlen); in dtrace_xstr2desc() 120 (void) strncpy(vstr, v + 1, vlen - 1); in dtrace_xstr2desc() [all …]
|
| /onnv-gate/usr/src/cmd/ptools/pfiles/ |
| H A D | pfiles.c | 575 int val, vlen; in show_sockopts() local 607 vlen = sizeof (val); in show_sockopts() 609 &val, &vlen) == 0 && val != 0) in show_sockopts() 613 vlen = sizeof (l); in show_sockopts() 614 if (pr_getsockopt(Pr, fd, SOL_SOCKET, SO_LINGER, &l, &vlen) == 0 && in show_sockopts() 621 vlen = sizeof (val); in show_sockopts() 622 if (pr_getsockopt(Pr, fd, SOL_SOCKET, SO_SNDBUF, &val, &vlen) == 0) { in show_sockopts() 626 vlen = sizeof (val); in show_sockopts() 627 if (pr_getsockopt(Pr, fd, SOL_SOCKET, SO_RCVBUF, &val, &vlen) == 0) { in show_sockopts() 631 vlen = sizeof (nexthop_val); in show_sockopts() [all …]
|
| /onnv-gate/usr/src/uts/sun4/os/ |
| H A D | memlist.c | 550 size_t plen, vlen, move = 0; in copy_boot_memlists() local 556 vlen = prom_virt_avail_len(); in copy_boot_memlists() 557 if (vlen == 0) in copy_boot_memlists() 559 if (plen + vlen > max_bootlist_sz) in copy_boot_memlists() 574 } else if (vlen > vl->maxsize) { in copy_boot_memlists() 576 move = vlen - vl->maxsize; in copy_boot_memlists() 577 vl->maxsize = vlen; in copy_boot_memlists() 583 vl->nelems = vlen / sizeof (struct prom_memlist); in copy_boot_memlists()
|
| /onnv-gate/usr/src/common/openssl/crypto/asn1/ |
| H A D | asn1_gen.c | 119 static int parse_tagging(const char *vstart, int vlen, int *ptag, int *pclass); 274 int vlen = 0; in asn1_cb() local 285 vlen = len - (vstart - elem); in asn1_cb() 324 if (!parse_tagging(vstart, vlen, &arg->imp_tag, &arg->imp_class)) in asn1_cb() 330 if (!parse_tagging(vstart, vlen, &tmp_tag, &tmp_class)) in asn1_cb() 378 static int parse_tagging(const char *vstart, int vlen, int *ptag, int *pclass) in parse_tagging() argument 387 if (eptr && *eptr && (eptr > vstart + vlen)) in parse_tagging() 397 vlen -= eptr - vstart; in parse_tagging() 399 vlen = 0; in parse_tagging() 400 if (vlen) in parse_tagging()
|
| /onnv-gate/usr/src/uts/common/sys/ |
| H A D | ctf.h | 217 #define CTF_TYPE_INFO(kind, isroot, vlen) \ argument 218 (((kind) << 11) | (((isroot) ? 1 : 0) << 10) | ((vlen) & CTF_MAX_VLEN)) 244 #define CTF_TYPE_INFO_V1(kind, isroot, vlen) \ argument 245 (((kind) << 12) | (((isroot) ? 1 : 0) << 11) | ((vlen) & 0x07ff))
|
| /onnv-gate/usr/src/cmd/ldap/common/ |
| H A D | fileurl.c | 230 ldaptool_berval_from_ldif_value( const char *value, int vlen, in ldaptool_berval_from_ldif_value() argument 310 bvp->bv_len = vlen; in ldaptool_berval_from_ldif_value() 311 if (( bvp->bv_val = (char *)malloc( vlen + 1 )) == NULL ) { in ldaptool_berval_from_ldif_value() 315 SAFEMEMCPY( bvp->bv_val, value, vlen ); in ldaptool_berval_from_ldif_value() 316 bvp->bv_val[ vlen ] = '\0'; in ldaptool_berval_from_ldif_value()
|
| 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,
|
| /onnv-gate/usr/src/cmd/abi/spectrans/spec2trace/ |
| H A D | util.c | 107 size_t vlen; in strset() local 110 vlen = strlen(value); in strset() 113 if ((string = malloc(vlen+1)) == NULL) { in strset() 116 } else if (strlen(string) < vlen) { in strset() 119 if ((string = realloc(string, vlen+1)) == NULL) { in strset()
|
| /onnv-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
| H A D | ql_hba_fru.c | 239 size_t vlen; in ql_populate_hba_fru_details() local 481 vlen = (strlen(utsname.nodename) > FCHBA_SYMB_NAME_LEN ? in ql_populate_hba_fru_details() 483 (void) snprintf((int8_t *)attrs->sym_node_name, vlen, "%s", in ql_populate_hba_fru_details() 486 vlen = (strlen(QL_NAME) + 9 > FCHBA_SYMB_NAME_LEN ? in ql_populate_hba_fru_details() 488 (void) snprintf((int8_t *)attrs->sym_port_name, vlen, in ql_populate_hba_fru_details()
|
| /onnv-gate/usr/src/tools/ctf/cvt/ |
| H A D | ctf.c | 682 size_t vlen = CTF_INFO_VLEN(ctt->ctt_info); in count_types() local 699 dptr += sizeof (ushort_t) * (vlen + (vlen & 1)); in count_types() 707 dptr += sizeof (ctf_member_t) * vlen; in count_types() 709 dptr += sizeof (ctf_lmember_t) * vlen; in count_types() 712 dptr += sizeof (ctf_enum_t) * vlen; in count_types() 915 int kind, vlen; in resurrect_types() local 958 vlen = CTF_INFO_VLEN(ctt->ctt_info); in resurrect_types() 1029 for (i = 0, mpp = &tdp->t_members; i < vlen; in resurrect_types() 1044 for (i = 0, mpp = &tdp->t_members; i < vlen; in resurrect_types() 1069 for (i = 0, epp = &tdp->t_emem; i < vlen; in resurrect_types() [all …]
|
| /onnv-gate/usr/src/lib/libtecla/common/ |
| H A D | cplfile.c | 358 int vlen; /* The length of the value string */ in _cf_complete_file() local 380 vlen = strlen(value); in _cf_complete_file() 387 if(!cf_read_name(cf, "User", value+1, vlen-1, cf->usrnam, USR_LEN) || in _cf_complete_file() 418 } else if(vlen > FS_DIR_SEP_LEN && in _cf_complete_file() 419 strcmp(value + vlen - FS_DIR_SEP_LEN, FS_DIR_SEP)==0) { in _cf_complete_file() 420 cf->path->name[vlen-FS_DIR_SEP_LEN] = '\0'; in _cf_complete_file()
|
| /onnv-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; in rn_match() local 228 vlen = sizeof (struct sockaddr); in rn_match() 243 cplim = v + vlen; in rn_match() 363 uint_t head_off = top->rn_off, vlen; in rn_insert() local 368 vlen = sizeof (struct sockaddr); in rn_insert() 376 uint8_t *cplim = v + vlen; in rn_insert() 716 uint_t head_off, vlen; in rn_delete() local 723 vlen = sizeof (struct sockaddr); in rn_delete() 727 memcmp(v + head_off, tt->rn_key + head_off, vlen - head_off) != 0) { in rn_delete()
|
| /onnv-gate/usr/src/tools/ctf/dump/ |
| H A D | dump.c | 417 size_t size, increment, vlen = 0; in read_types() local 456 vlen = sizeof (uint_t); in read_types() 470 vlen = sizeof (uint_t); in read_types() 488 vlen = sizeof (ctf_array_t); in read_types() 506 vlen = sizeof (ushort_t) * (n + (n & 1)); in read_types() 552 vlen = n * (size >= CTF_LSTRUCT_THRESH ? in read_types() 571 vlen = sizeof (ctf_enum_t) * n; in read_types() 627 tp = (ctf_type_t *)((uintptr_t)tp + increment + vlen); in read_types()
|