Lines Matching defs:directory
181 static char *vfs_not_absolute_path(const char *directory, const char *filename, char **pathname, int namelen)
192 fullpath = (char *)malloc(strlen(directory) + namelen + 2);
201 ret = snprintf_s(fullpath, strlen(directory) + namelen + 2, strlen(directory) + namelen + 1,
202 "%s/%s", directory, filename);
213 static char *vfs_normalize_fullpath(const char *directory, const char *filename, char **pathname, int namelen)
220 fullpath = vfs_not_absolute_path(directory, filename, pathname, namelen);
244 int vfs_normalize_path(const char *directory, const char *filename, char **pathname)
251 BOOL dir_flags = (directory == NULL) ? TRUE : FALSE;
260 if (directory == NULL) {
262 directory = curr->files->workdir;
265 if ((directory == NULL) && (filename[0] != '/')) {
274 if ((filename[0] != '/') && (strlen(directory) + namelen + 2 > TEMP_PATH_MAX)) {
283 fullpath = vfs_normalize_fullpath(directory, filename, pathname, namelen);