Lines Matching +defs:pathname +defs:name
18 * 4. The name of the author may not be used to endorse or promote products
69 _rtld_search_library_path(const char *name, size_t namelen,
72 char pathname[MAXPATHLEN];
78 if (pathnamelen >= sizeof(pathname))
84 !memcmp(name, sp->sp_path + dirlen + 1, namelen) &&
90 memcpy(pathname, dir, dirlen);
91 pathname[dirlen] = '/';
92 memcpy(pathname + dirlen + 1, name, namelen);
93 pathname[pathnamelen] = '\0';
95 dbg((" Trying \"%s\"", pathname));
96 obj = _rtld_load_object(pathname, flags);
102 path->sp_path = xstrdup(pathname);
110 * Find the library with the given name, and return its full pathname.
118 _rtld_load_library(const char *name, const Obj_Entry *refobj, int flags)
123 const char *pathname;
127 if (strchr(name, '/') != NULL) { /* Hard coded pathname */
128 if (name[0] != '/' && !_rtld_trust) {
130 "absolute pathname required for shared object \"%s\"",
131 name);
134 pathname = name;
137 dbg((" Searching for \"%s\" (%p)", name, refobj));
145 namelen = strlen(name);
148 if ((obj = _rtld_search_library_path(name, namelen,
154 if ((obj = _rtld_search_library_path(name,
159 if ((obj = _rtld_search_library_path(name, namelen,
164 refobj ? refobj->path : __progname, name);
188 obj = _rtld_load_object(pathname, flags);