Lines Matching defs:directory
170 STATIC CHAR *VfsNotAbsolutePath(const CHAR *directory, const CHAR *filename, CHAR **pathname, INT32 namelen)
181 fullpath = (CHAR *)malloc(strlen(directory) + namelen + 2); /* 2, size of "./" */
189 ret = snprintf_s(fullpath, strlen(directory) + namelen + 2, strlen(directory) + namelen + 1,
190 "%s/%s", directory, filename);
201 STATIC CHAR *VfsNormalizeFullpath(const CHAR *directory, const CHAR *filename, CHAR **pathname, INT32 namelen)
208 fullpath = VfsNotAbsolutePath(directory, filename, pathname, namelen);
232 INT32 VfsNormalizePath(const CHAR *directory, const CHAR *filename, CHAR **pathname)
242 if ((directory == NULL) && (filename[0] != '/')) {
249 if ((filename[0] != '/') && (strlen(directory) + namelen + 2 > TEMP_PATH_MAX)) {
253 fullpath = VfsNormalizeFullpath(directory, filename, pathname, namelen);