Lines Matching defs:path
110 static char* find_in_path( char *path, char *subdir, size_t maxlen)
115 strlcat(path, subdir, maxlen);
116 pos = strrchr(path, '/');
118 while ( stat(path, &st) != 0) {
119 path[pos-path]=0;
120 if ((pos = strrchr(path, '/'))) {
121 path[pos-path]=0;
122 strlcat(path, subdir, maxlen);
129 path[pos-path] = '/';
130 path[pos-path+1] = 0;
132 return path;
135 static char * make_path_absolute(char *path, size_t bufsize)
142 strlcpy(abspath, path, sizeof(abspath));
153 /* try without the last path element */
164 /* no path, use "." instead */
167 /* try without the last path element */
180 strlcpy(path, abspath, bufsize);
181 return path;
184 static char * find_volumeroot(char *path, size_t maxlen)
186 char *volume = make_path_absolute(path, maxlen);
343 int loadvolinfo (char *path, struct volinfo *vol)
352 if ( !path || !vol)
356 strlcpy(volinfofile, path, sizeof(volinfofile));
425 struct volinfo *allocvolinfo(char *path)
431 if (loadvolinfo(path, p) == -1)