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: FileSystemLike.h
- Revision:
- 5:62573be585e9
- Parent:
- 4:5d1359a283bc
- Child:
- 8:00a04e5cd407
diff -r 5d1359a283bc -r 62573be585e9 FileSystemLike.h
--- a/FileSystemLike.h Thu Nov 27 16:23:24 2008 +0000
+++ b/FileSystemLike.h Thu Jan 22 18:32:40 2009 +0000
@@ -10,6 +10,7 @@
# define O_WRONLY 1
# define O_RDWR 2
# define O_CREAT 0x0200
+# define O_TRUNC 0x0400
# define O_APPEND 0x0008
#else
# include <sys/fcntl.h>
@@ -39,8 +40,8 @@
*
* Variables
* filename - The name of the file to open.
- * flags - One of O_RDONLY, O_WRONLY, or O_RDWR, possibly OR'd
- * with O_CREAT or O_APPEND.
+ * flags - One of O_RDONLY, O_WRONLY, or O_RDWR, OR'd with
+ * zero or more of O_CREAT, O_TRUNC, or O_APPEND.
* returns - A pointer to a FileHandle object representing the
* file on success, or NULL on failure.
*/
