Lines Matching defs:path
72 static int FsChangeDrive(const char *path)
76 UINT16 pathLen = strlen((char const *)path);
80 /* make sure the path begin with "/", the path like /xxx/yyy/... */
86 retErr = strncpy_s(tmpPath + 1, (FS_DRIVE_NAME_MAX_LEN - 1), (char const *)path, pathLen);
371 int FatfsOpen(struct File *file, const char *path, int oflag)
378 if (path == NULL) {
392 ret = FsChangeDrive(path);
400 res = f_open(fp, path, fmode);
530 int FatfsUnlink(struct MountPoint *mp, const char *path)
535 if (path == NULL) {
545 ret = FsChangeDrive(path);
552 res = f_unlink(path);
562 int FatfsStat(struct MountPoint *mp, const char *path, struct stat *buf)
568 if ((path == NULL) || (buf == NULL)) {
573 ret = FsChangeDrive(path);
580 res = f_stat(path, &fileInfo);
624 int FatfsMkdir(struct MountPoint *mp, const char *path)
629 if (path == NULL) {
639 ret = FsChangeDrive(path);
646 res = f_mkdir(path);
750 int FatfsRmdir(struct MountPoint *mp, const char *path)
755 if ((path == NULL) || (mp == NULL)) {
765 ret = FsChangeDrive(path);
772 res = f_rmdir(path);
814 int FatfsStatfs(const char *path, struct statfs *buf)
821 if ((path == NULL) || (buf == NULL)) {
826 ret = FsChangeDrive(path);
833 res = f_getfree(path, &freeClust, &fs);