Lines Matching defs:toks

115     char			**toks;
120 if ( ldap_next_line_tokens( &buf, &buflen, &toks ) != 2 ||
121 strcasecmp( toks[ 0 ], "version" ) != 0 ) {
122 ldap_free_strarray( toks );
125 version = atoi( toks[ 1 ] );
126 ldap_free_strarray( toks );
249 char **toks;
259 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) != 1 ) {
260 ldap_free_strarray( toks );
266 ldap_free_strarray( toks );
269 so->so_objtypeprompt = toks[ 0 ];
270 NSLDAPI_FREE( (char *)toks );
276 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) < 1 ) {
277 ldap_free_strarray( toks );
281 for ( i = 0; toks[ i ] != NULL; ++i ) {
283 if ( strcasecmp( toks[ i ], sobjoptions[ j ] ) == 0 ) {
288 ldap_free_strarray( toks );
294 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) != 1 ) {
295 ldap_free_strarray( toks );
299 so->so_prompt = toks[ 0 ];
300 NSLDAPI_FREE( (char *)toks );
305 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) != 1 ) {
306 ldap_free_strarray( toks );
310 so->so_filterprefix = toks[ 0 ];
311 NSLDAPI_FREE( (char *)toks );
316 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) != 1 ) {
317 ldap_free_strarray( toks );
321 so->so_filtertag = toks[ 0 ];
322 NSLDAPI_FREE( (char *)toks );
327 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) != 1 ) {
328 ldap_free_strarray( toks );
332 so->so_defaultselectattr = toks[ 0 ];
333 NSLDAPI_FREE( (char *)toks );
338 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) != 1 ) {
339 ldap_free_strarray( toks );
343 so->so_defaultselecttext = toks[ 0 ];
344 NSLDAPI_FREE( (char *)toks );
349 if (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) != 1 ) {
350 ldap_free_strarray( toks );
354 if ( !strcasecmp(toks[ 0 ], "subtree" )) {
356 } else if ( !strcasecmp(toks[ 0 ], "onelevel" )) {
358 } else if ( !strcasecmp(toks[ 0 ], "base" )) {
364 ldap_free_strarray( toks );
371 while (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) > 0 ) {
373 ldap_free_strarray( toks );
379 ldap_free_strarray( toks );
383 ( *sa )->sa_attrlabel = toks[ 0 ];
384 ( *sa )->sa_attr = toks[ 1 ];
385 ( *sa )->sa_selectattr = toks[ 3 ];
386 ( *sa )->sa_selecttext = toks[ 4 ];
389 for ( i = strlen( toks[ 2 ] ) - 1, j = 0; i >= 0; i--, j++ ) {
390 if ( toks[ 2 ][ i ] == '1' ) {
394 NSLDAPI_FREE( toks[ 2 ] );
395 NSLDAPI_FREE( ( char * ) toks );
404 while (( tokcnt = ldap_next_line_tokens( bufp, blenp, &toks )) > 0 ) {
406 ldap_free_strarray( toks );
412 ldap_free_strarray( toks );
416 ( *sm )->sm_matchprompt = toks[ 0 ];
417 ( *sm )->sm_filter = toks[ 1 ];
418 NSLDAPI_FREE( ( char * ) toks );