File tree Expand file tree Collapse file tree 2 files changed +23
-9
lines changed Expand file tree Collapse file tree 2 files changed +23
-9
lines changed Original file line number Diff line number Diff line change 1
-
2
1
/* mbed Microcontroller Library
3
2
* Copyright (c) 2006-2013 ARM Limited
4
3
*
@@ -25,6 +24,26 @@ FileSystem::FileSystem(const char *name)
25
24
{
26
25
}
27
26
27
+ int FileSystem::remove (const char *path)
28
+ {
29
+ return -ENOSYS;
30
+ }
31
+
32
+ int FileSystem::rename (const char *path, const char *newpath)
33
+ {
34
+ return -ENOSYS;
35
+ }
36
+
37
+ int FileSystem::stat (const char *path, struct stat *st)
38
+ {
39
+ return -ENOSYS;
40
+ }
41
+
42
+ int FileSystem::mkdir (const char *path, mode_t mode)
43
+ {
44
+ return -ENOSYS;
45
+ }
46
+
28
47
int FileSystem::file_sync (fs_file_t file)
29
48
{
30
49
return 0 ;
@@ -53,11 +72,6 @@ off_t FileSystem::file_size(fs_file_t file)
53
72
return size;
54
73
}
55
74
56
- int FileSystem::mkdir (const char *path, mode_t mode)
57
- {
58
- return -ENOSYS;
59
- }
60
-
61
75
int FileSystem::dir_open (fs_dir_t *dir, const char *path)
62
76
{
63
77
return -ENOSYS;
Original file line number Diff line number Diff line change @@ -71,23 +71,23 @@ class FileSystem : public FileSystemLike {
71
71
* @param path The name of the file to remove.
72
72
* @return 0 on success, negative error code on failure
73
73
*/
74
- virtual int remove (const char *path) = 0 ;
74
+ virtual int remove (const char *path);
75
75
76
76
/* * Rename a file in the filesystem.
77
77
*
78
78
* @param path The name of the file to rename.
79
79
* @param newpath The name to rename it to
80
80
* @return 0 on success, negative error code on failure
81
81
*/
82
- virtual int rename (const char *path, const char *newpath) = 0 ;
82
+ virtual int rename (const char *path, const char *newpath);
83
83
84
84
/* * Store information about the file in a stat structure
85
85
*
86
86
* @param path The name of the file to find information about
87
87
* @param st The stat buffer to write to
88
88
* @return 0 on success, negative error code on failure
89
89
*/
90
- virtual int stat (const char *path, struct stat *st) = 0 ;
90
+ virtual int stat (const char *path, struct stat *st);
91
91
92
92
/* * Create a directory in the filesystem.
93
93
*
You can’t perform that action at this time.
0 commit comments