#ifndef FCNTL_H #define FCNTL_H #include #define O_RDONLY 00 #define O_WRONLY 01 #define O_RDWR 02 #define O_CREAT 0100 /* not fcntl */ //#define O_EXCL 0200 /* not fcntl */ //#define O_NOCTTY 0400 /* not fcntl */ #define O_TRUNC 01000 /* not fcntl */ #define O_APPEND 02000 //not implemented for CE #define O_EXCL 0x0400 /* open only if file doesn't already exist */ /* O_TEXT files have sequences translated to on read()'s, ** and sequences translated to on write()'s */ #define O_TEXT 0x4000 /* file mode is text (translated) */ #define O_BINARY 0x8000 /* file mode is binary (untranslated) */ /* WinCE unsupported */ extern error_t errno; char* getenv(char* anything); void perror(char * message); #endif