COSA
An Object-Oriented Platform for Arduino Programming
FS.hh
Go to the documentation of this file.
1 
21 #ifndef COSA_FS_HH
22 #define COSA_FS_HH
23 
27 enum {
28  O_READ = 0X01,
30  O_WRITE = 0X02,
33  O_APPEND = 0X04,
34  O_SYNC = 0X08,
36  O_CREAT = 0X10,
37  O_EXCL = 0X20,
38  O_TRUNC = 0X40
41 } __attribute__((packed));
42 
46 enum {
47  SEEK_SET = 0,
48  SEEK_CUR = 1,
49  SEEK_END = 2
50 } __attribute__((packed));
51 
52 #endif
Absolute position.
Definition: FS.hh:47
Open for reading.
Definition: FS.hh:28
Relative to end of file.
Definition: FS.hh:49
Truncate the file to zero length.
Definition: FS.hh:40
Open for reading and writing.
Definition: FS.hh:32
Same as O_READ.
Definition: FS.hh:29
Relative to current position.
Definition: FS.hh:48
Create the file if nonexistent.
Definition: FS.hh:36
Same as O_WRITE.
Definition: FS.hh:31
Definition: FS.hh:33
Open for write.
Definition: FS.hh:30
Definition: FS.hh:37
Synchronous writes.
Definition: FS.hh:35