-#define O_RDONLY 0
-#define O_WRONLY 1
-#define O_RDWR 2
-#define O_NDELAY FNDELAY /* Non-blocking I/O */
-#define O_APPEND FAPPEND /* append (writes guaranteed at the end) */
+#define O_RDONLY 000 /* open for reading */
+#define O_WRONLY 001 /* open for writing */
+#define O_RDWR 002 /* open for read & write */
+#define O_NDELAY FNDELAY /* non-blocking open */
+ /* really non-blocking I/O for fcntl */
+#define O_APPEND FAPPEND /* append on each write */
+#define O_CREAT FCREAT /* open with file create */
+#define O_TRUNC FTRUNC /* open with truncation */
+#define O_EXCL FEXCL /* error on create if file exists */