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