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