Lines Matching defs:vals

56 static int do_vals2text( LDAP *ld, char *buf, char **vals, char *label,
188 char *dn, **vals;
226 ( vals = ldap_explode_dn( dn, 0 )) != NULL ) {
233 for ( i = 1; vals[ i ] != NULL; ++i ) {
237 strcat_escaped( buf, vals[ i ] );
239 if ( vals[ 1 ] != NULL ) {
240 untagged = strchr( vals[ 1 ], '=' );
246 ( vals[ 1 ] == NULL ) ? "??one" : "",
247 ( untagged != NULL ) ? untagged + 1 : vals[ 1 ], eol, eol );
253 untagged = strchr( vals[ 0 ], '=' );
257 ( untagged != NULL ) ? untagged + 1 : vals[ 0 ], eol, eol );
260 ldap_value_free( vals );
287 if (( vals = ldap_get_values( ld, entry, attr )) == NULL ) {
296 vals = defvals[ i ];
307 err = do_vals2text( ld, buf, vals, attr, labelwidth,
311 ldap_value_free( vals );
320 vals = NULL;
321 if ( colp->ti_attrname == NULL || ( vals = ldap_get_values( ld,
334 vals = defvals[ i ];
340 LDAP_DITEM_OPT_SORTVALUES ) && vals[ 0 ] != NULL
341 && vals[ 1 ] != NULL ) {
342 ldap_sort_values( ld, vals, ldap_sort_strcasecmp );
350 show = ( vals != NULL && vals[ 0 ] != NULL );
354 toupper( vals[ 0 ][ 0 ] ) != 'T' ) {
361 toupper( vals[ 0 ][ 0 ] ) == 'T' )) {
371 err = do_vals2text( ld, buf, vals, colp->ti_label,
377 ldap_value_free( vals );
487 char *buf, **fetchattrs, **vals;
555 vals = ldap_get_values( ld, entry, OCATTRNAME );
556 tmpl = ldap_oc2template( vals, tmpllist );
557 if ( vals != NULL ) {
558 ldap_value_free( vals );
615 char **vals,
633 rv = do_vals2text( ld, buf, vals, label, labelwidth, syntaxid,
638 return( do_vals2text( ld, buf, vals, label, labelwidth, syntaxid,
648 char **vals,
671 rv = do_vals2text( ld, buf, vals, label, labelwidth, syntaxid,
676 return( do_vals2text( ld, buf, vals, label, labelwidth, syntaxid,
686 char **vals,
701 if ( vals == NULL ) {
731 for ( i = 0; vals[ i ] != NULL; ++i ) {
732 for ( p = vals[ i ]; *p != '\0'; ++p ) {
739 : vals[ i ];
1078 char **vals, **members;
1098 vals = NULL;
1105 } else if (( vals = ldap_get_values( ld, entry, attr )) != NULL ) {
1106 value = vals[ 0 ];
1172 if ( vals != NULL ) {
1173 ldap_value_free( vals );