Lines Matching refs:next

369 	nss_cfglist_t	*next;  in nss_cfgcomp_get()  local
383 next = nss_cfg; in nss_cfgcomp_get()
385 if (next->name && nss_cfgcn_cmp(name, next->name) == 0) { in nss_cfgcomp_get()
387 return (next); in nss_cfgcomp_get()
389 next++; in nss_cfgcomp_get()
400 next = (nss_cfglist_t *)libc_realloc(nss_cfg, nsize); in nss_cfgcomp_get()
401 if (next == NULL) { in nss_cfgcomp_get()
406 (void) memset((void *)(next + nss_cfgcount), '\0', in nss_cfgcomp_get()
409 nss_cfg = next; in nss_cfgcomp_get()
411 next = nss_cfg + nss_cfgcount; in nss_cfgcomp_get()
413 if ((next->name = libc_malloc(len)) == NULL) { in nss_cfgcomp_get()
419 (void) strlcpy(next->name, name, len); in nss_cfgcomp_get()
421 return (next); in nss_cfgcomp_get()
429 nss_cfgparam_t *next; in nss_cfgparam_get() local
437 next = comp->list; in nss_cfgparam_get()
439 if (next->name && strcmp(name, next->name) == 0) { in nss_cfgparam_get()
441 return (next); in nss_cfgparam_get()
443 next++; in nss_cfgparam_get()
454 next = (nss_cfgparam_t *)libc_realloc(comp->list, nsize); in nss_cfgparam_get()
455 if (next == NULL) { in nss_cfgparam_get()
461 comp->list = next; in nss_cfgparam_get()
463 next = comp->list + comp->count; in nss_cfgparam_get()
464 if ((next->name = libc_strdup(name)) == NULL) { in nss_cfgparam_get()
471 return (next); in nss_cfgparam_get()
480 nss_cfgparam_t *next, *cur; in nss_cfg_del() local
491 next = comp->list; in nss_cfg_del()
493 if (next->name && strcmp(name, next->name) == 0) { in nss_cfg_del()
496 next++; in nss_cfg_del()
506 cur = next; in nss_cfg_del()
507 next++; in nss_cfg_del()
509 *cur = *next; in nss_cfg_del()
511 next++; in nss_cfg_del()
526 nss_cfg_get(nss_config_t *next) in nss_cfg_get() argument
531 if ((param = nss_cfgparam_get(next->name, 0)) == NULL) in nss_cfg_get()
533 next->lock = param->lock; in nss_cfg_get()
534 next->buffer = param->buffer; in nss_cfg_get()
535 next->length = param->length; in nss_cfg_get()
540 nss_cfg_put(nss_config_t *next, int add) in nss_cfg_put() argument
545 if ((param = nss_cfgparam_get(next->name, add)) == NULL) in nss_cfg_put()
547 param->lock = next->lock; in nss_cfg_put()
548 param->buffer = next->buffer; in nss_cfg_put()
549 param->length = next->length; in nss_cfg_put()
564 nss_config_t *next; in nss_config() local
574 next = plist[i]; in nss_config()
575 if (next == NULL) in nss_config()
577 if (next->name == NULL) { in nss_config()
581 switch (next->cop) { in nss_config()
584 if (nss_cfg_get(next) < 0) { in nss_config()
590 if (nss_cfg_put(next, 0) < 0) { in nss_config()
596 if (nss_cfg_put(next, 1) < 0) { in nss_config()
602 nss_cfg_del(next); in nss_config()
626 nss_config_t *next = &nss_policy_params[0]; in nss_cfg_policy_init() local
628 for (; next && next->name != NULL; next++) { in nss_cfg_policy_init()
629 if (nss_cfg_put(next, 1) < 0) in nss_cfg_policy_init()
782 for (bf = s->p.finders; bf != 0; bf = bf->next) { in nss_get_backend_u()
928 n_src < s->max_src; n_src++, lkp = lkp->next) { in _nss_db_state_constr()