Searched refs:vlen (Results 1 - 25 of 25) sorted by relevance

/osnet-11/usr/src/lib/libldap4/include/
H A Dldif.h33 * of an item that is "vlen" bytes long will take up. Base64 encoding
36 #define LDIF_BASE64_LEN(vlen) (((vlen) * 4 / 3 ) + 3)
40 * tlen) and value (length vlen) will take up: room for type + ":: " +
44 #define LDIF_SIZE_NEEDED(tlen,vlen) \
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 );
[all...]
/osnet-11/usr/src/lib/libldap5/include/ldap/
H A Dldif.h55 * of an item that is "vlen" bytes long will take up. Base64 encoding
58 #define LDIF_BASE64_LEN(vlen) (((vlen) * 4 / 3 ) + 3)
62 * tlen) and value (length vlen) will take up: room for type + ":: " +
66 #define LDIF_SIZE_NEEDED(tlen,vlen) \
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 );
[all...]
/osnet-11/usr/src/cmd/ldap/common/
H A Dfileurl.h51 * Populate *bvp from "value" of length "vlen."
65 int ldaptool_berval_from_ldif_value( const char *value, int vlen,
H A Dfileurl.c215 * 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 Dldapmodify.c96 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...]
H A Dldaptool.h200 int *ctrl_criticality, char **ctrl_value, int *vlen);
H A Dcommon.c298 int ctrl_criticality=0, vlen; local
670 &ctrl_criticality, &ctrl_value, &vlen)) {
676 vlen, &(ldctrl->ldctl_value),
1811 char **ctrl_value, int *vlen)
1823 if (( *vlen = ldif_base64_decode( (char *)value,
1830 *vlen = (int)strlen(*ctrl_value);
1845 char **ctrl_value, int *vlen)
1853 *vlen = 0;
1873 return (calculate_ctrl_value( s, ctrl_value, vlen ));
1912 return (calculate_ctrl_value( s, ctrl_value, vlen ));
1810 calculate_ctrl_value( const char *value, char **ctrl_value, int *vlen) argument
1843 ldaptool_parse_ctrl_arg(char *ctrl_arg, char sep, char **ctrl_oid, int *ctrl_criticality, char **ctrl_value, int *vlen) argument
[all...]
/osnet-11/usr/src/lib/libldap4/util/
H A Dline64.c57 int *vlen
120 for ( p = s, *vlen = 0; p < stop; p += 4, *vlen += 3 ) {
140 *vlen += 1;
148 *vlen += 2;
156 s[ *vlen ] = '\0';
199 *vlen = ftell(fp);
200 if ( (*value = (char *)malloc(*vlen)) == NULL )
213 rlen = fread( *value, 1, *vlen, fp );
217 if ( rlen != *vlen )
[all...]
/osnet-11/usr/src/lib/libldap5/sources/ldap/util/
H A Dline64.c93 int *vlen
145 * *value, with *vlen set to zero.
149 *vlen = 0;
162 if (( *vlen = ldif_base64_decode( s, (unsigned char *)s ))
177 s[ *vlen ] = '\0';
179 *vlen = (int) (d - s);
321 int vlen, unsigned long options )
349 if ( val && vlen > 0 ) {
351 stop = (unsigned char *) (val + vlen);
358 !LDIF_CONSERVATIVE_FINALCHAR( val[vlen
320 ldif_put_type_and_value_with_options( char **out, char *t, char *val, int vlen, unsigned long options ) argument
509 ldif_type_and_value_with_options( char *type, char *val, int vlen, unsigned long options ) argument
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Tie/
H A DSubstrHash.pm46 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...]
/osnet-11/usr/src/lib/libcurses/screen/
H A Dprint.c237 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...]
/osnet-11/usr/src/lib/libldap5/sources/ldap/common/
H A Ddigest_md5.c469 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...]
H A Dgetfilter.c327 filter_add_strn( char *f, char *flimit, char *v, size_t vlen )
329 * otherwise return (f + vlen).
333 if ( vlen > flen ) { /* flimit is too small */
337 if ( vlen > 0 ) SAFEMEMCPY( f, v, vlen );
338 return f + vlen;
H A Dllib-lldap443 char *ldif_type_and_value(char *type, char *val, int vlen);
445 int str_parse_line(char *line, char **type, char **value, int *vlen);
/osnet-11/usr/src/lib/libdtrace/common/
H A Ddt_subr.c57 size_t off, len, vlen, wlen; local
73 vlen = 0;
79 * Set vlen to the length of the variable name and then
86 vlen = (size_t)(q + len - v);
94 if (vlen > 2 && v[1] == '$') {
95 vlen--;
105 wlen = vlen - (w - v);
111 vlen = strlen(v);
116 } else if (vlen > 1) {
117 char *vstr = alloca(vlen);
142 bcopy(v, (char *)pdp + off + len, vlen); local
143 bcopy(w, (char *)pdp + off + len + vlen, wlen); local
[all...]
/osnet-11/usr/src/lib/nsswitch/pynss/common/
H A Dnscd.py343 vlen = len(vals)
344 if vlen != 2 and vlen != 3: # only config or cache props
348 if vlen == 2: # Config
/osnet-11/usr/src/lib/libsip/common/
H A Dsip_ui.c266 int vlen; local
291 vlen = _sip_header_value->value_end - _sip_header_value->value_start;
295 vlen++;
299 vlen++;
327 vlen--;
328 assert(vlen > 0);
331 _sip_header->sip_hdr_sipmsg->sip_msg_len -= vlen;
H A Dsip_dialog.c169 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';
/osnet-11/usr/src/lib/libdladm/common/
H A Dsecobj.c426 uint_t vlen; local
483 vlen = DLADM_SECOBJ_VAL_MAX;
486 sinfo.si_lenp = &vlen;
/osnet-11/usr/src/lib/libsldap/common/
H A Dns_writes.c331 int k, rc, vlen; local
457 vlen = comma1 - attr[k]->attrvalue[0];
460 if (vlen > 0 && c) {
462 mapping[0], c, vlen);
493 vlen = strlen(attr[k]->attrvalue[0]) -
496 if (vlen > 0 && c) {
498 mapping[1], c, vlen);
518 vlen = comma1 - attr[k]->attrvalue[0];
521 if (vlen > 0 && c) {
523 mapping[0], c, vlen);
[all...]
H A Dns_reads.c568 b64_encode(char *value, size_t vlen) argument
575 vlen, LDIF_OPT_NOWRAP);
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/
H A Dutil.c1447 #define my_setenv_format(s, nam, nlen, val, vlen) \
1450 Copy(val, s+(nlen+1), vlen, char); \
1451 *(s+(nlen+1+vlen)) = '\0'
1467 int nlen, vlen; local
1500 vlen = strlen(val);
1502 environ[i] = (char*)safesysmalloc((nlen+vlen+2) * sizeof(char));
1504 my_setenv_format(environ[i], nam, nlen, val, vlen);
1511 int nlen = strlen(nam), vlen;
1515 vlen = strlen(val);
1516 new_env = (char*)safesysmalloc((nlen + vlen
1531 int nlen = strlen(nam), vlen; local
[all...]
/osnet-11/usr/src/lib/libipadm/common/
H A Dipadm_cong.c589 ssize_t vlen; local
613 if ((vlen = scf_value_get_astring(val, buf, *bufsize)) > 0) {
614 *bufsize = vlen;
/osnet-11/usr/src/lib/fm/libasr/common/
H A Dasr_nvl.c642 int vlen = strlen(value); local
645 if ((s = malloc(vlen)) == NULL) {
650 for (i = 0, j = 0; i < vlen; i++, j++) {
/osnet-11/usr/src/lib/libzfs/common/
H A Dlibzfs_pool.c1940 int vlen = strlen(val); local
1942 if (slen != vlen - 2)
1951 ASSERT(vlen >= 6);
1957 if ((strcmp(&val[vlen - 2], "s0") == 0 ||
1958 strcmp(&val[vlen - 2], "s1") == 0) &&
1965 if ((strcmp(&val[vlen - 6], "s0/old") == 0 ||
1966 strcmp(&val[vlen - 6], "s1/old") == 0) &&

Completed in 138 milliseconds