00001 #ifndef FCNTL__H 00002 #define FCNTL__H 00003 00004 #define FCNTL_RDONLY 0x01 /* Read mode */ 00005 #define FCNTL_WRONLY 0x02 /* Write mode */ 00006 #define FCNTL_APPEND 0x04 /* Start writing at the end of file */ 00007 #define FCNTL_CREATE 0x08 /* Create file */ 00008 #define FCNTL_TRUNC 0x10 /* Truncate file mode */ 00009 #define FCNTL_EXCL 0x20 /* Open only if it does not exist */ 00010 #define FCNTL_TEXT 0x40 /* translate EOL mode */ 00011 #define FCNTL_BINARY 0x80 /* Raw mode */ 00012 00013 #endif 00014