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

12

/opensolaris-onvv-gate/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...]
/opensolaris-onvv-gate/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...]
/opensolaris-onvv-gate/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...]
/opensolaris-onvv-gate/usr/src/common/devid/
H A Ddevid_smp.c107 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);
/opensolaris-onvv-gate/usr/src/lib/libldap4/util/
H A Dline64.c59 int *vlen
122 for ( p = s, *vlen = 0; p < stop; p += 4, *vlen += 3 ) {
142 *vlen += 1;
150 *vlen += 2;
158 s[ *vlen ] = '\0';
201 *vlen = ftell(fp);
202 if ( (*value = (char *)malloc(*vlen)) == NULL )
215 rlen = fread( *value, 1, *vlen, fp );
219 if ( rlen != *vlen )
[all...]
/opensolaris-onvv-gate/usr/src/lib/libldap5/sources/ldap/util/
H A Dline64.c97 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...]
/opensolaris-onvv-gate/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...]
/opensolaris-onvv-gate/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...]
/opensolaris-onvv-gate/usr/src/cmd/abi/spectrans/spec2map/
H A Dutil.c187 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) {
/opensolaris-onvv-gate/usr/src/common/ctf/
H A Dctf_create.c224 uint_t vlen = CTF_INFO_VLEN(dtd->dtd_data.ctt_info); local
240 size += sizeof (ushort_t) * (vlen + (vlen & 1));
245 size += sizeof (ctf_member_t) * vlen;
247 size += sizeof (ctf_lmember_t) * vlen;
250 size += sizeof (ctf_enum_t) * vlen;
282 uint_t vlen = CTF_INFO_VLEN(dtd->dtd_data.ctt_info); local
336 for (argc = 0; argc < vlen; argc++)
339 if (vlen & 1)
685 uint_t vlen; local
865 uint_t kind, vlen, root; local
922 uint_t kind, vlen, root; local
1093 uint_t kind, flag, vlen; local
[all...]
H A Dctf_open.c120 ushort_t info, vlen; local
170 vlen = LCTF_INFO_VLEN(fp, info);
175 * (+2) and the argument list (vlen).
178 vlen == 0)
181 funcoff += sizeof (ushort_t) * (vlen + 2);
228 ulong_t vlen = LCTF_INFO_VLEN(fp, tp->ctt_info); local
245 vbytes = sizeof (ushort_t) * (vlen + (vlen & 1));
254 vbytes = sizeof (ctf_member_t) * vlen;
255 for (n = vlen;
348 ulong_t vlen = LCTF_INFO_VLEN(fp, tp->ctt_info); local
[all...]
/opensolaris-onvv-gate/usr/src/cmd/abi/spectrans/spec2trace/
H A Dutil.c107 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) {
/opensolaris-onvv-gate/usr/src/cmd/ptools/pfiles/
H A Dpfiles.c575 int val, vlen; local
607 vlen = sizeof (val);
609 &val, &vlen) == 0 && val != 0)
613 vlen = sizeof (l);
614 if (pr_getsockopt(Pr, fd, SOL_SOCKET, SO_LINGER, &l, &vlen) == 0 &&
621 vlen = sizeof (val);
622 if (pr_getsockopt(Pr, fd, SOL_SOCKET, SO_SNDBUF, &val, &vlen) == 0) {
626 vlen = sizeof (val);
627 if (pr_getsockopt(Pr, fd, SOL_SOCKET, SO_RCVBUF, &val, &vlen) == 0) {
631 vlen
[all...]
/opensolaris-onvv-gate/usr/src/uts/sun4/os/
H A Dmemlist.c550 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);
/opensolaris-onvv-gate/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;
/opensolaris-onvv-gate/usr/src/uts/common/sys/
H A Dctf.h196 * ctt_info: | kind | isroot | vlen |
201 * vlen = CTF_INFO_VLEN(c.ctt_info); <-- length of variable data list
206 * c.ctt_info = CTF_TYPE_INFO(kind, vlen);
217 #define CTF_TYPE_INFO(kind, isroot, vlen) \
218 (((kind) << 11) | (((isroot) ? 1 : 0) << 10) | ((vlen) & CTF_MAX_VLEN))
244 #define CTF_TYPE_INFO_V1(kind, isroot, vlen) \
245 (((kind) << 12) | (((isroot) ? 1 : 0) << 11) | ((vlen) & 0x07ff))
/opensolaris-onvv-gate/usr/src/common/openssl/crypto/asn1/
H A Dasn1_gen.c119 static int parse_tagging(const char *vstart, int vlen, int *ptag, int *pclass);
274 int vlen = 0; local
285 vlen = len - (vstart - elem);
324 if (!parse_tagging(vstart, vlen, &arg->imp_tag, &arg->imp_class))
330 if (!parse_tagging(vstart, vlen, &tmp_tag, &tmp_class))
378 static int parse_tagging(const char *vstart, int vlen, int *ptag, int *pclass) argument
387 if (eptr && *eptr && (eptr > vstart + vlen))
397 vlen -= eptr - vstart;
399 vlen = 0;
400 if (vlen)
[all...]
/opensolaris-onvv-gate/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...]
/opensolaris-onvv-gate/usr/src/lib/libtecla/common/
H A Dcplfile.c358 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';
/opensolaris-onvv-gate/usr/src/tools/ctf/cvt/
H A Dctf.c682 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...]
/opensolaris-onvv-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_hba_fru.c239 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,
/opensolaris-onvv-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dradix.c225 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) {

Completed in 309 milliseconds

12