Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed by
Diff: LocalFileSystem.h
- Revision:
- 55:d722ed6a4237
- Parent:
- 54:71b101360fb9
- Child:
- 59:0883845fe643
--- a/LocalFileSystem.h Tue Jan 08 12:46:36 2013 +0000
+++ b/LocalFileSystem.h Wed Jan 16 12:56:34 2013 +0000
@@ -36,19 +36,19 @@
public:
LocalFileHandle(FILEHANDLE fh);
-
+
virtual int close();
-
+
virtual ssize_t write(const void *buffer, size_t length);
-
+
virtual ssize_t read(void *buffer, size_t length);
-
+
virtual int isatty();
-
+
virtual off_t lseek(off_t position, int whence);
-
+
virtual int fsync();
-
+
virtual off_t flen();
protected:
@@ -56,10 +56,10 @@
int pos;
};
-/** A filesystem for accessing the local mbed Microcontroller USB disk drive
+/** A filesystem for accessing the local mbed Microcontroller USB disk drive
*
- * This allows programs to read and write files on the same disk drive that is used to program the
- * mbed Microcontroller. Once created, the standard C file access functions are used to open,
+ * This allows programs to read and write files on the same disk drive that is used to program the
+ * mbed Microcontroller. Once created, the standard C file access functions are used to open,
* read and write files.
*
* Example:
@@ -70,8 +70,8 @@
*
* int main() {
* FILE *fp = fopen("/local/out.txt", "w"); // Open "out.txt" on the local file system for writing
- * fprintf(fp, "Hello World!");
- * fclose(fp);
+ * fprintf(fp, "Hello World!");
+ * fclose(fp);
* remove("/local/out.txt"); // Removes the file "out.txt" from the local file system
*
* DIR *d = opendir("/local"); // Opens the root directory of the local file system
@@ -94,7 +94,7 @@
public:
LocalFileSystem(const char* n) : FileSystemLike(n) {
-
+
}
virtual FileHandle *open(const char* name, int flags);
