1*3d8817e4Smiod /* Macros for the 'type' part of an fopen, freopen or fdopen. 2*3d8817e4Smiod 3*3d8817e4Smiod <Read|Write>[Update]<Binary file|text file> 4*3d8817e4Smiod 5*3d8817e4Smiod This version is for "same" systems, where text and binary files are 6*3d8817e4Smiod the same. An example is Unix. Many Unix systems could also add a 7*3d8817e4Smiod "b" to the string, indicating binary files, but some reject this 8*3d8817e4Smiod (and thereby don't conform to ANSI C, but what else is new?). 9*3d8817e4Smiod 10*3d8817e4Smiod This file is designed for inclusion by host-dependent .h files. No 11*3d8817e4Smiod user application should include it directly, since that would make 12*3d8817e4Smiod the application unable to be configured for both "same" and "binary" 13*3d8817e4Smiod variant systems. */ 14*3d8817e4Smiod 15*3d8817e4Smiod #define FOPEN_RB "r" 16*3d8817e4Smiod #define FOPEN_WB "w" 17*3d8817e4Smiod #define FOPEN_AB "a" 18*3d8817e4Smiod #define FOPEN_RUB "r+" 19*3d8817e4Smiod #define FOPEN_WUB "w+" 20*3d8817e4Smiod #define FOPEN_AUB "a+" 21*3d8817e4Smiod 22*3d8817e4Smiod #define FOPEN_RT "r" 23*3d8817e4Smiod #define FOPEN_WT "w" 24*3d8817e4Smiod #define FOPEN_AT "a" 25*3d8817e4Smiod #define FOPEN_RUT "r+" 26*3d8817e4Smiod #define FOPEN_WUT "w+" 27*3d8817e4Smiod #define FOPEN_AUT "a+" 28