Lines Matching refs:path

62 compat_YL_YU(Ofl_desc *ofl, char *path, int index)
72 path, index));
83 path, index));
87 return (path);
91 process_lib_path(Ofl_desc *ofl, APlist **apl, char *path, Boolean subsflag)
99 cp = strpbrk(path, MSG_ORIG(MSG_STR_PATHTOK));
101 if (*path == '\0') {
109 compat_YL_YU(ofl, path, i) : path),
118 if (cp == path) {
125 compat_YL_YU(ofl, path, i) : path),
129 path = cp + 1;
136 if (cp != path) {
138 compat_YL_YU(ofl, path, i) : path),
155 * adds the indicated path to those to be searched for libraries.
158 ld_add_libdir(Ofl_desc *ofl, const char *path)
160 if (aplist_insert(&ofl->ofl_ulibdirs, path,
166 * search paths each time a new path is added.
183 char *_path, path[PATH_MAX + 2];
204 (void) snprintf(path, (PATH_MAX + 2), MSG_ORIG(MSG_STR_LIB_SO),
206 DBG_CALL(Dbg_libs_l(ofl->ofl_lml, file, path));
207 if ((fd = open(path, O_RDONLY)) != -1) {
209 if ((_path = libld_malloc(strlen(path) + 1)) == NULL)
211 (void) strcpy(_path, path);
230 rej->rej_name = strdup(path);
238 (void) snprintf(path, (PATH_MAX + 2), MSG_ORIG(MSG_STR_LIB_A),
240 DBG_CALL(Dbg_libs_l(ofl->ofl_lml, file, path));
241 if ((fd = open(path, O_RDONLY)) != -1) {
243 if ((_path = libld_malloc(strlen(path) + 1)) == NULL)
245 (void) strcpy(_path, path);
260 rej->rej_name = strdup(path);
268 * library. The search path rules are:
275 * shared object with full name: path/libfoo.so; then [or else] look for an
276 * archive with name: path/libfoo.a. If no file is found, it's a fatal error,
287 char *path;
295 for (APLIST_TRAVERSE(ofl->ofl_ulibdirs, idx, path)) {
298 if ((open_ret = find_lib_name(path, name, ofl, &_rej,
309 for (APLIST_TRAVERSE(ofl->ofl_assdeflib, idx, path)) {
310 if (strncmp(name, path + MSG_STR_LIB_SIZE,
311 MAX(strlen(path + MSG_STR_LIB_SIZE) -
322 for (APLIST_TRAVERSE(ofl->ofl_dlibdirs, idx, path)) {
325 if ((open_ret = find_lib_name(path, name, ofl, &_rej,
373 char *path, *cp = NULL;
388 if ((path = libld_malloc(strlen(cp) + 1)) == NULL)
390 (void) strcpy(path, cp);
391 DBG_CALL(Dbg_libs_path(ofl->ofl_lml, path, LA_SER_DEFAULT, 0));
394 * Process the first path string (anything up to a null or
397 path = process_lib_path(ofl, &ofl->ofl_ulibdirs, path, FALSE);
402 * path list, because Lidx == 0. If a ';' is seen within an
406 if (path) {
408 *path = '\0';
409 ++path;
410 cp = process_lib_path(ofl, &ofl->ofl_ulibdirs, path,
421 * Add the default LIBPATH or any -YP supplied path.