Lines Matching refs:fullpath
82 static void str_remove_path_end_slash(char *dest, const char *fullpath)
88 if ((dest != fullpath) && (*dest == '/')) {
93 static char *str_normalize_path(char *fullpath)
95 char *dest = fullpath;
96 char *src = fullpath;
123 if ((dest - 1) != fullpath) {
127 while ((dest > fullpath) && (*(dest - 1) != '/')) {
142 str_remove_path_end_slash(dest, fullpath);
184 char *fullpath = NULL;
192 fullpath = (char *)malloc(strlen(directory) + namelen + 2);
193 if (fullpath == NULL) {
201 ret = snprintf_s(fullpath, strlen(directory) + namelen + 2, strlen(directory) + namelen + 1,
205 free(fullpath);
210 return fullpath;
215 char *fullpath = NULL;
220 fullpath = vfs_not_absolute_path(directory, filename, pathname, namelen);
221 if (fullpath == NULL) {
227 fullpath = strdup(filename); /* copy string */
228 if (fullpath == NULL) {
235 free(fullpath);
241 return fullpath;
246 char *fullpath = NULL;
283 fullpath = vfs_normalize_fullpath(directory, filename, pathname, namelen);
289 if (fullpath == NULL) {
293 (void)str_path(fullpath);
294 (void)str_normalize_path(fullpath);
295 if (strlen(fullpath) >= PATH_MAX) {
297 free(fullpath);
301 *pathname = fullpath;
309 char *fullpath = NULL;
317 ret = vfs_normalize_path((const char *)relativeoldpath, filename, &fullpath);
326 *pathname = fullpath;