/titanic_44/usr/src/cmd/nscd/ |
H A D | nscd_nswparse.c | 85 set_dns_default_lkp(struct __nsw_lookup_v1 *lkp) in set_dns_default_lkp() argument 87 if (strcasecmp(lkp->service_name, "dns") == 0) { in set_dns_default_lkp() 88 lkp->actions[__NSW_TRYAGAIN] = in set_dns_default_lkp() 90 lkp->max_retries = dns_tryagain_retry; in set_dns_default_lkp() 186 struct __nsw_lookup_v1 *lkp, **lkq; in _nsw_getoneconfig_v1() local 209 if ((lkp = calloc(1, sizeof (struct __nsw_lookup_v1))) in _nsw_getoneconfig_v1() 216 *lkq = lkp; in _nsw_getoneconfig_v1() 217 lkq = &lkp->next; in _nsw_getoneconfig_v1() 221 lkp->actions[i] = __NSW_RETURN; in _nsw_getoneconfig_v1() 223 lkp->actions[i] = __NSW_TRYAGAIN_FOREVER; in _nsw_getoneconfig_v1() [all …]
|
H A D | nscd_switch.c | 51 retry_test(nss_status_t res, int n, struct __nsw_lookup_v1 *lkp) in retry_test() argument 55 __NSW_UNPAUSE_ACTION(lkp->actions[__NSW_TRYAGAIN]); in retry_test() 57 lkp->actions[__NSW_NISSERVDNS_TRYAGAIN]); in retry_test() 63 lkp->actions[__NSW_TRYAGAIN] == __NSW_TRYAGAIN_FOREVER) || in retry_test() 65 lkp->actions[__NSW_NISSERVDNS_TRYAGAIN] == __NSW_TRYAGAIN_FOREVER)) in retry_test() 69 lkp->actions[__NSW_TRYAGAIN] == __NSW_TRYAGAIN_NTIMES) in retry_test() 70 if (n <= lkp->max_retries) in retry_test() 73 lkp->actions[__NSW_TRYAGAIN] = __NSW_TRYAGAIN_PAUSED; in retry_test() 78 lkp->actions[__NSW_NISSERVDNS_TRYAGAIN] == __NSW_TRYAGAIN_NTIMES) in retry_test() 79 if (n <= lkp->max_retries) in retry_test() [all …]
|
H A D | nscd_nswstate.c | 255 struct __nsw_lookup_v1 *lkp; in _nscd_create_nsw_state() local 260 lkp = s->config->lookups; in _nscd_create_nsw_state() 262 lkp = lkp->next; in _nscd_create_nsw_state() 263 if (lkp == NULL) { in _nscd_create_nsw_state() 271 srcn = lkp->service_name; in _nscd_create_nsw_state() 351 struct __nsw_lookup_v1 *lkp; in check_be_array() local 359 lkp = s->config->lookups; in check_be_array() 361 lkp = lkp->next; in check_be_array() 362 if (lkp == NULL) in check_be_array() 365 srcn = lkp->service_name; in check_be_array()
|
H A D | nscd_nswconfig.c | 296 struct __nsw_lookup_v1 *lkp; in _nscd_create_sw_struct() local 358 lkp = swcfg->lookups; in _nscd_create_sw_struct() 363 strcmp(lkp->service_name, NSCD_NSW_SRC_NAME(k)) != 0; in _nscd_create_sw_struct() 370 (me, "unknown nsw source name %s\n", lkp->service_name); in _nscd_create_sw_struct() 371 usrc = strdup(lkp->service_name); in _nscd_create_sw_struct() 399 j, k, lkp->service_name); in _nscd_create_sw_struct() 403 lkp = lkp->next; in _nscd_create_sw_struct() 404 if (lkp == NULL) break; in _nscd_create_sw_struct() 409 (me, "next nsw source is %s\n", lkp->service_name); in _nscd_create_sw_struct()
|
/titanic_44/usr/src/lib/libc/port/gen/ |
H A D | nsparse.c | 122 set_dns_default_lkp(struct __nsw_lookup_v1 *lkp) in set_dns_default_lkp() argument 124 if (strcasecmp(lkp->service_name, "dns") == 0) { in set_dns_default_lkp() 125 lkp->actions[__NSW_TRYAGAIN] = __NSW_TRYAGAIN_NTIMES; in set_dns_default_lkp() 126 lkp->max_retries = dns_tryagain_retry; in set_dns_default_lkp() 139 struct __nsw_lookup_v1 *lkp, **lkq; in _nsw_getoneconfig_v1() local 162 if ((lkp = libc_malloc(sizeof (struct __nsw_lookup_v1))) in _nsw_getoneconfig_v1() 169 *lkq = lkp; in _nsw_getoneconfig_v1() 170 lkq = &lkp->next; in _nsw_getoneconfig_v1() 174 lkp->actions[i] = __NSW_RETURN; in _nsw_getoneconfig_v1() 176 lkp->actions[i] = __NSW_TRYAGAIN_FOREVER; in _nsw_getoneconfig_v1() [all …]
|
H A D | nss_common.c | 138 struct __nsw_lookup_v1 *lkp; member 786 src->lkp->service_name, &src->finder_priv); in nss_get_backend_u() 802 src->lkp->service_name, 0 /* === unimplemented */); in nss_get_backend_u() 877 struct __nsw_lookup_v1 *lkp; in _nss_db_state_constr() local 927 for (n_src = 0, lkp = config->lookups; in _nss_db_state_constr() 928 n_src < s->max_src; n_src++, lkp = lkp->next) { in _nss_db_state_constr() 929 s->src[n_src].lkp = lkp; in _nss_db_state_constr() 1026 struct __nsw_lookup_v1 *lkp) in output_loop_diag_a() argument 1031 n, dbase, lkp->service_name); in output_loop_diag_a() 1039 struct __nsw_lookup_v1 *lkp) in output_loop_diag_b() argument [all …]
|
/titanic_44/usr/src/cmd/fs.d/autofs/ |
H A D | ns_generic.c | 89 struct __nsw_lookup *lkp; local 102 lkp = conf->lookups; 104 lkp = *curr_ns; 106 if (__NSW_ACTION(lkp, curr_nserr) == __NSW_RETURN) 108 lkp = lkp->next; 111 for (; lkp; lkp = lkp->next) { 113 if (strcmp(lkp->service_name, nsp->ns_name) == 0) { 114 *curr_ns = lkp;
|
H A D | ns_ldap.c | 174 struct __nsw_lookup *lkp = NULL; in init_ldap() local 188 for (lkp = conf->lookups; lkp != NULL; lkp = lkp->next) { in init_ldap() 189 if (strcmp(lkp->service_name, "ldap") == 0) { in init_ldap()
|
/titanic_44/usr/src/stand/lib/fs/nfs/ |
H A D | lookup.c | 175 struct nfs_file *lkp; in stlookuppn() local 184 lkp = nfslookup(cfile, component, &error); in stlookuppn() 187 lkp = nfs3lookup(cfile, component, &error); in stlookuppn() 190 lkp = nfs4lookup(cfile, component, &error); in stlookuppn() 195 lkp = NULL; in stlookuppn() 210 if (lkp == NULL) { in stlookuppn() 236 *cdp = *lkp; in stlookuppn() 247 cdp = lkp; in stlookuppn()
|
/titanic_44/usr/src/lib/libc/inc/ |
H A D | nsswitch_priv.h | 111 #define __NSW_ACTION_V1(lkp, err) \ argument 112 ((lkp)->next == NULL ? \ 116 (lkp)->actions[err] \ 118 __nsw_extended_action_v1(lkp, err)))
|
/titanic_44/usr/src/head/ |
H A D | nsswitch.h | 119 #define __NSW_ACTION(lkp, err) \ argument 120 ((lkp)->next == NULL ? \ 124 (lkp)->actions[err] \ 126 __nsw_extended_action(lkp, err)))
|
/titanic_44/usr/src/lib/passwdutil/ |
H A D | switch_utils.c | 125 struct __nsw_lookup *lkp; in get_ns() local 150 lkp = conf->lookups; in get_ns() 164 if (strcmp(lkp->service_name, "files") == 0) { in get_ns() 165 result = name_to_int(lkp->service_name); in get_ns() 166 } else if (strcmp(lkp->service_name, "compat") == 0) { in get_ns() 170 result = name_to_int(lkp->service_name); in get_ns() 175 lkp2 = lkp->next; in get_ns() 176 if (strcmp(lkp->service_name, "files") == 0) { in get_ns() 194 lkp2 = lkp->next; in get_ns() 202 if (strcmp(lkp->service_name, "files") == 0 && in get_ns()
|
/titanic_44/usr/src/lib/libldap5/sources/ldap/prldap/ |
H A D | ldappr-dns.c | 205 struct __nsw_lookup *lkp; in prldap_x_install_dns_skipdb() local 227 for (lkp = conf->lookups; lkp != NULL; lkp = lkp->next) { in prldap_x_install_dns_skipdb() 228 name = lkp->service_name; in prldap_x_install_dns_skipdb()
|
/titanic_44/usr/src/lib/libldap5/sources/ldap/ssldap/ |
H A D | ldapsinit.c | 1245 struct __nsw_lookup *lkp; in ldapssl_install_gethostbyaddr() local 1267 for (lkp = conf->lookups; lkp != NULL; lkp = lkp->next) { in ldapssl_install_gethostbyaddr() 1268 name = lkp->service_name; in ldapssl_install_gethostbyaddr()
|
/titanic_44/usr/src/lib/libsldap/common/ |
H A D | ns_connect.c | 1322 struct __nsw_lookup *lkp; in ldap_in_nss_switch() local 1332 for (lkp = conf->lookups; lkp != NULL; lkp = lkp->next) { in ldap_in_nss_switch() 1333 name = lkp->service_name; in ldap_in_nss_switch()
|