Lines Matching refs:binding
68 extern struct binding *_nl_domain_bindings;
99 struct binding *binding;
116 for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next)
118 int compare = strcmp (domainname, binding->domainname);
125 binding = NULL;
130 if (binding != NULL)
137 /* The current binding has be to returned. */
138 *dirnamep = binding->dirname;
143 old binding. */
144 char *result = binding->dirname;
163 if (binding->dirname != INTUSE(_nl_default_dirname))
164 free (binding->dirname);
166 binding->dirname = result;
179 /* The current binding has be to returned. */
180 *codesetp = binding->codeset;
185 old binding. */
186 char *result = binding->codeset;
200 free (binding->codeset);
202 binding->codeset = result;
203 binding->codeset_cntr++;
222 /* We have to create a new binding. */
224 struct binding *new_binding =
225 (struct binding *) malloc (offsetof (struct binding, domainname) + len);
306 binding = _nl_domain_bindings;
307 while (binding->next != NULL
308 && strcmp (domainname, binding->next->domainname) > 0)
309 binding = binding->next;
311 new_binding->next = binding->next;
312 binding->next = new_binding;
333 /* If we modified any binding, we flush the caches. */