1 1.1 christos /* Macros for the 'type' part of an fopen, freopen or fdopen. 2 1.1 christos 3 1.1 christos <Read|Write>[Update]<Binary file|text file> 4 1.1 christos 5 1.1 christos This version is for "binary" systems, where text and binary files are 6 1.1 christos different. An example is Mess-Dose. Many Unix systems could also 7 1.1 christos cope with a "b" in the string, indicating binary files, but some reject this 8 1.1 christos (and thereby don't conform to ANSI C, but what else is new?). 9 1.1 christos 10 1.10 christos Copyright (C) 1996-2025 Free Software Foundation, Inc. 11 1.3 christos 12 1.3 christos This program is free software; you can redistribute it and/or modify 13 1.3 christos it under the terms of the GNU General Public License as published by 14 1.3 christos the Free Software Foundation; either version 2, or (at your option) 15 1.3 christos any later version. 16 1.3 christos 17 1.3 christos This program is distributed in the hope that it will be useful, 18 1.3 christos but WITHOUT ANY WARRANTY; without even the implied warranty of 19 1.3 christos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 1.3 christos GNU General Public License for more details. 21 1.3 christos 22 1.3 christos You should have received a copy of the GNU General Public License 23 1.3 christos along with this program; if not, write to the Free Software 24 1.3 christos Foundation, Inc., 51 Franklin Street - Fifth Floor, 25 1.3 christos Boston, MA 02110-1301, USA. */ 26 1.3 christos 27 1.3 christos /* This file is designed for inclusion by host-dependent .h files. No 28 1.1 christos user application should include it directly, since that would make 29 1.1 christos the application unable to be configured for both "same" and "binary" 30 1.1 christos variant systems. */ 31 1.1 christos 32 1.1 christos #define FOPEN_RB "rb" 33 1.1 christos #define FOPEN_WB "wb" 34 1.1 christos #define FOPEN_AB "ab" 35 1.1 christos #define FOPEN_RUB "r+b" 36 1.1 christos #define FOPEN_WUB "w+b" 37 1.1 christos #define FOPEN_AUB "a+b" 38 1.1 christos 39 1.1 christos #define FOPEN_RT "r" 40 1.1 christos #define FOPEN_WT "w" 41 1.1 christos #define FOPEN_AT "a" 42 1.1 christos #define FOPEN_RUT "r+" 43 1.1 christos #define FOPEN_WUT "w+" 44 1.1 christos #define FOPEN_AUT "a+" 45