Lines Matching refs:path

62 compat_YL_YU(Ofl_desc *ofl, char *path, int index)  in compat_YL_YU()  argument
72 path, index)); in compat_YL_YU()
83 path, index)); in compat_YL_YU()
87 return (path); in compat_YL_YU()
91 process_lib_path(Ofl_desc *ofl, APlist **apl, char *path, Boolean subsflag) in process_lib_path() argument
99 cp = strpbrk(path, MSG_ORIG(MSG_STR_PATHTOK)); in process_lib_path()
101 if (*path == '\0') { in process_lib_path()
109 compat_YL_YU(ofl, path, i) : path), in process_lib_path()
118 if (cp == path) { in process_lib_path()
125 compat_YL_YU(ofl, path, i) : path), in process_lib_path()
129 path = cp + 1; in process_lib_path()
136 if (cp != path) { in process_lib_path()
138 compat_YL_YU(ofl, path, i) : path), in process_lib_path()
158 ld_add_libdir(Ofl_desc *ofl, const char *path) in ld_add_libdir() argument
160 if (aplist_insert(&ofl->ofl_ulibdirs, path, in ld_add_libdir()
183 char *_path, path[PATH_MAX + 2]; in find_lib_name() local
204 (void) snprintf(path, (PATH_MAX + 2), MSG_ORIG(MSG_STR_LIB_SO), in find_lib_name()
206 DBG_CALL(Dbg_libs_l(ofl->ofl_lml, file, path)); in find_lib_name()
207 if ((fd = open(path, O_RDONLY)) != -1) { in find_lib_name()
209 if ((_path = libld_malloc(strlen(path) + 1)) == NULL) in find_lib_name()
211 (void) strcpy(_path, path); in find_lib_name()
230 rej->rej_name = strdup(path); in find_lib_name()
238 (void) snprintf(path, (PATH_MAX + 2), MSG_ORIG(MSG_STR_LIB_A), in find_lib_name()
240 DBG_CALL(Dbg_libs_l(ofl->ofl_lml, file, path)); in find_lib_name()
241 if ((fd = open(path, O_RDONLY)) != -1) { in find_lib_name()
243 if ((_path = libld_malloc(strlen(path) + 1)) == NULL) in find_lib_name()
245 (void) strcpy(_path, path); in find_lib_name()
260 rej->rej_name = strdup(path); in find_lib_name()
287 char *path; in ld_find_library() local
295 for (APLIST_TRAVERSE(ofl->ofl_ulibdirs, idx, path)) { in ld_find_library()
298 if ((open_ret = find_lib_name(path, name, ofl, &_rej, in ld_find_library()
309 for (APLIST_TRAVERSE(ofl->ofl_assdeflib, idx, path)) { in ld_find_library()
310 if (strncmp(name, path + MSG_STR_LIB_SIZE, in ld_find_library()
311 MAX(strlen(path + MSG_STR_LIB_SIZE) - in ld_find_library()
322 for (APLIST_TRAVERSE(ofl->ofl_dlibdirs, idx, path)) { in ld_find_library()
325 if ((open_ret = find_lib_name(path, name, ofl, &_rej, in ld_find_library()
373 char *path, *cp = NULL; in ld_lib_setup() local
388 if ((path = libld_malloc(strlen(cp) + 1)) == NULL) in ld_lib_setup()
390 (void) strcpy(path, cp); in ld_lib_setup()
391 DBG_CALL(Dbg_libs_path(ofl->ofl_lml, path, LA_SER_DEFAULT, 0)); in ld_lib_setup()
397 path = process_lib_path(ofl, &ofl->ofl_ulibdirs, path, FALSE); in ld_lib_setup()
406 if (path) { in ld_lib_setup()
408 *path = '\0'; in ld_lib_setup()
409 ++path; in ld_lib_setup()
410 cp = process_lib_path(ofl, &ofl->ofl_ulibdirs, path, in ld_lib_setup()