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