Lines Matching refs:fullpath
72 STATIC VOID StrRemovePathEndSlash(CHAR *dest, const CHAR *fullpath)
78 if ((dest != fullpath) && (*dest == '/')) {
83 STATIC CHAR *StrNormalizePath(CHAR *fullpath)
85 CHAR *dest = fullpath;
86 CHAR *src = fullpath;
112 if ((dest - 1) != fullpath) {
116 while ((dest > fullpath) && (*(dest - 1) != '/')) {
131 StrRemovePathEndSlash(dest, fullpath);
173 CHAR *fullpath = NULL;
181 fullpath = (CHAR *)malloc(strlen(directory) + namelen + 2); /* 2, size of "./" */
182 if (fullpath == NULL) {
189 ret = snprintf_s(fullpath, strlen(directory) + namelen + 2, strlen(directory) + namelen + 1,
193 free(fullpath);
198 return fullpath;
203 CHAR *fullpath = NULL;
208 fullpath = VfsNotAbsolutePath(directory, filename, pathname, namelen);
209 if (fullpath == NULL) {
215 fullpath = strdup(filename); /* copy string */
216 if (fullpath == NULL) {
223 free(fullpath);
229 return fullpath;
234 CHAR *fullpath = NULL;
253 fullpath = VfsNormalizeFullpath(directory, filename, pathname, namelen);
254 if (fullpath == NULL) {
258 (VOID)StrPath(fullpath);
259 (VOID)StrNormalizePath(fullpath);
260 if (strlen(fullpath) >= PATH_MAX) {
262 free(fullpath);
266 *pathname = fullpath;