Lines Matching refs:dirname
113 const char *dirname = *dirnamep; in gl_rwlock_define() local
115 if (dirname == NULL) in gl_rwlock_define()
117 *dirnamep = binding->dirname; in gl_rwlock_define()
123 char *result = binding->dirname; in gl_rwlock_define()
124 if (strcmp (dirname, result) != 0) in gl_rwlock_define()
126 if (strcmp (dirname, _nl_default_dirname) == 0) in gl_rwlock_define()
131 result = strdup (dirname); in gl_rwlock_define()
133 size_t len = strlen (dirname) + 1; in gl_rwlock_define()
136 memcpy (result, dirname, len); in gl_rwlock_define()
142 if (binding->dirname != _nl_default_dirname) in gl_rwlock_define()
143 free (binding->dirname); in gl_rwlock_define()
145 binding->dirname = result; in gl_rwlock_define()
212 const char *dirname = *dirnamep; in gl_rwlock_define() local
214 if (dirname == NULL) in gl_rwlock_define()
216 dirname = _nl_default_dirname; in gl_rwlock_define()
219 if (strcmp (dirname, _nl_default_dirname) == 0) in gl_rwlock_define()
220 dirname = _nl_default_dirname; in gl_rwlock_define()
225 result = strdup (dirname); in gl_rwlock_define()
229 size_t len = strlen (dirname) + 1; in gl_rwlock_define()
233 memcpy (result, dirname, len); in gl_rwlock_define()
235 dirname = result; in gl_rwlock_define()
238 *dirnamep = dirname; in gl_rwlock_define()
239 new_binding->dirname = (char *) dirname; in gl_rwlock_define()
243 new_binding->dirname = (char *) _nl_default_dirname; in gl_rwlock_define()
296 if (new_binding->dirname != _nl_default_dirname) in gl_rwlock_define()
297 free (new_binding->dirname); in gl_rwlock_define()
318 BINDTEXTDOMAIN (const char *domainname, const char *dirname) in BINDTEXTDOMAIN() argument
320 set_binding_values (domainname, &dirname, NULL); in BINDTEXTDOMAIN()
321 return (char *) dirname; in BINDTEXTDOMAIN()