Lab 1 Program C
Fork of mbed by
Diff: FileSystemLike.h
- Revision:
- 5:62573be585e9
- Parent:
- 4:5d1359a283bc
- Child:
- 8:00a04e5cd407
--- 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. */