/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 …]
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/util/ |
H A D | line64.c | 94 int *vlen in str_parse_line() argument 150 *vlen = 0; in str_parse_line() 163 if (( *vlen = ldif_base64_decode( s, (unsigned char *)s )) in str_parse_line() 178 s[ *vlen ] = '\0'; in str_parse_line() 180 *vlen = (int) (d - s); in str_parse_line() 322 int vlen, unsigned long options ) in ldif_put_type_and_value_with_options() argument 350 if ( val && vlen > 0 ) { in ldif_put_type_and_value_with_options() 352 stop = (unsigned char *) (val + vlen); in ldif_put_type_and_value_with_options() 359 !LDIF_CONSERVATIVE_FINALCHAR( val[vlen-1] )) { in ldif_put_type_and_value_with_options() 392 len = ldif_base64_encode_internal( (unsigned char *)val, *out, vlen, in ldif_put_type_and_value_with_options() [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() 278 if ((printed > 0) && (printed + nlen + vlen + 1 > width)) { in pr_boolean() 391 int vlen; in pr_number() local 439 vlen = digitlen(value); in pr_number() 440 if ((printed > 0) && (printed + nlen + vlen + 2 > width)) { 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() [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/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() 452 if ((vlen = grub_strlen(val)) >= q + len - d) in expand_string() [all …]
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | digest_md5.c | 467 int alen, vlen; in digest_parse() local 497 vlen = scan - val; in digest_parse() 505 vlen = scan - val; in digest_parse() 507 if (!vlen) in digest_parse() 516 attr_out->clen = vlen; in digest_parse() 520 attr_out->charsetlen = vlen; in digest_parse() 527 attr_out->dlen = vlen; in digest_parse() 531 attr_out->urilen = vlen; in digest_parse() 538 attr_out->mlen = vlen; in digest_parse() 545 attr_out->nlen = vlen; in digest_parse() [all …]
|
H A D | getfilter.c | 324 filter_add_strn( char *f, char *flimit, char *v, size_t vlen ) in filter_add_strn() argument 330 if ( vlen > flen ) { /* flimit is too small */ in filter_add_strn() 334 if ( vlen > 0 ) SAFEMEMCPY( f, v, vlen ); in filter_add_strn() 335 return f + vlen; in filter_add_strn()
|
/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/common/ctf/ |
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() 183 funcoff += sizeof (ushort_t) * (vlen + 2); in init_symtab() 230 ulong_t vlen = LCTF_INFO_VLEN(fp, tp->ctt_info); in init_types() local 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() 263 vbytes = sizeof (ctf_lmember_t) * vlen; in init_types() 264 for (n = vlen; n != 0; n--, lmp++) in init_types() [all …]
|
H A D | ctf_create.c | 355 uint_t vlen = CTF_INFO_VLEN(dtd->dtd_data.ctt_info); in ctf_update() local 371 size += sizeof (ushort_t) * (vlen + (vlen & 1)); in ctf_update() 376 size += sizeof (ctf_member_t) * vlen; in ctf_update() 378 size += sizeof (ctf_lmember_t) * vlen; in ctf_update() 381 size += sizeof (ctf_enum_t) * vlen; in ctf_update() 509 uint_t vlen = CTF_INFO_VLEN(dtd->dtd_data.ctt_info); in ctf_update() local 564 for (argc = 0; argc < vlen; argc++) in ctf_update() 567 if (vlen & 1) in ctf_update() 1140 uint_t vlen; in ctf_add_funcptr() local 1149 vlen = ctc->ctc_argc; in ctf_add_funcptr() [all …]
|
/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/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()
|
/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/ldap/common/ |
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 | 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 | fileurl.h | 65 int ldaptool_berval_from_ldif_value( const char *value, int vlen,
|
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 ));
|
/illumos-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)) 246 #define CTF_TYPE_INFO_V1(kind, isroot, vlen) \ argument 247 (((kind) << 12) | (((isroot) ? 1 : 0) << 11) | ((vlen) & 0x07ff))
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_hba_fru.c | 237 size_t vlen; in ql_populate_hba_fru_details() local 476 vlen = (strlen(utsname.nodename) > FCHBA_SYMB_NAME_LEN ? in ql_populate_hba_fru_details() 478 (void) snprintf((int8_t *)attrs->sym_node_name, vlen, "%s", in ql_populate_hba_fru_details() 481 vlen = (strlen(QL_NAME) + 9 > FCHBA_SYMB_NAME_LEN ? in ql_populate_hba_fru_details() 483 (void) snprintf((int8_t *)attrs->sym_port_name, vlen, in ql_populate_hba_fru_details()
|
/illumos-gate/usr/src/cmd/ptools/pfiles/ |
H A D | pfiles.c | 587 size_t vlen; in show_sockopts() local 645 nexthop_val = proc_fdinfo_misc(info, PR_SOCKOPT_IP_NEXTHOP, &vlen); in show_sockopts() 646 if (nexthop_val != NULL && vlen > 0) { in show_sockopts() 740 size_t vlen; in dosocknames() local 742 sa = proc_fdinfo_misc(info, PR_SOCKETNAME, &vlen); in dosocknames() 744 show_sockaddr("sockname", sa, vlen); in dosocknames() 746 sa = proc_fdinfo_misc(info, PR_PEERSOCKNAME, &vlen); in dosocknames() 748 show_sockaddr("peername", sa, vlen); in dosocknames()
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | cplfile.c | 356 int vlen; /* The length of the value string */ in _cf_complete_file() local 378 vlen = strlen(value); in _cf_complete_file() 385 if(!cf_read_name(cf, "User", value+1, vlen-1, cf->usrnam, USR_LEN) || in _cf_complete_file() 416 } else if(vlen > FS_DIR_SEP_LEN && in _cf_complete_file() 417 strcmp(value + vlen - FS_DIR_SEP_LEN, FS_DIR_SEP)==0) { in _cf_complete_file() 418 cf->path->name[vlen-FS_DIR_SEP_LEN] = '\0'; in _cf_complete_file()
|
/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/uts/common/fs/proc/ |
H A D | prsubr.c | 2603 prfdinfomisc(list_t *data, uint_t type, const void *val, size_t vlen) in prfdinfomisc() argument 2608 len = PRFDINFO_ROUNDUP(sizeof (*misc) + vlen); in prfdinfomisc() 2615 bcopy((char *)val, (char *)misc, vlen); in prfdinfomisc() 2710 socklen_t vlen; in prfdinfosockopt() local 2733 vlen = sizeof (buf); in prfdinfosockopt() 2734 if (SOP_GETSOCKNAME(so, name, &vlen, cred) == 0 && vlen > 0) in prfdinfosockopt() 2735 sz += prfdinfomisc(data, PR_SOCKETNAME, name, vlen); in prfdinfosockopt() 2739 vlen = sizeof (buf); in prfdinfosockopt() 2740 if (SOP_GETPEERNAME(so, name, &vlen, B_FALSE, cred) == 0 && vlen > 0) in prfdinfosockopt() 2741 sz += prfdinfomisc(data, PR_PEERSOCKNAME, name, vlen); in prfdinfosockopt() [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/lib/libsip/common/ |
H A D | sip_ui.c | 267 int vlen; in sip_delete_value() local 292 vlen = _sip_header_value->value_end - _sip_header_value->value_start; in sip_delete_value() 296 vlen++; in sip_delete_value() 300 vlen++; in sip_delete_value() 328 vlen--; in sip_delete_value() 329 assert(vlen > 0); in sip_delete_value() 332 _sip_header->sip_hdr_sipmsg->sip_msg_len -= vlen; in sip_delete_value()
|