Sync usage with man page.
[netbsd-mini2440.git] / gnu / lib / libg++ / g++-include / Fmodes.h
blob524c2bdc4b579ce201840418f93e1a2558ae759b
2 #ifndef _Fmodes_h
3 #ifdef __GNUG__
4 #pragma once
5 #pragma interface
6 #endif
7 #define _Fmodes_h 1
9 enum io_mode // known unix file IO modes
11 io_readonly = 0,
12 io_writeonly = 1,
13 io_readwrite = 2,
14 io_appendonly = 3,
15 io_append = 4, // append, plus allow reads
18 enum access_mode // ways to open a file
20 a_createonly = 0, // create, fail if file exists
21 a_create = 1, // create if doesn't exist, else truncate
22 a_useonly = 2, // use (no truncate) fail if doesn't exist
23 a_use = 3, // use (no truncate), create if doesn't exist
26 enum state_value // File states
28 _good = 0, // all is well
29 _eof = 1, // at eof
30 _fail = 2, // logical or physical IO error
31 _bad = 4 // unopened/corrupted
34 #endif