15796c8dcSSimon Schubert /* Macros for the 'type' part of an fopen, freopen or fdopen. 25796c8dcSSimon Schubert 35796c8dcSSimon Schubert <Read|Write>[Update]<Binary file|text file> 45796c8dcSSimon Schubert 55796c8dcSSimon Schubert This version is for "same" systems, where text and binary files are 65796c8dcSSimon Schubert the same. An example is Unix. Many Unix systems could also add a 75796c8dcSSimon Schubert "b" to the string, indicating binary files, but some reject this 85796c8dcSSimon Schubert (and thereby don't conform to ANSI C, but what else is new?). 95796c8dcSSimon Schubert 10*ef5ccd6cSJohn Marino Copyright 1996-2012 Free Software Foundation, Inc. 11*ef5ccd6cSJohn Marino 12*ef5ccd6cSJohn Marino This program is free software; you can redistribute it and/or modify 13*ef5ccd6cSJohn Marino it under the terms of the GNU General Public License as published by 14*ef5ccd6cSJohn Marino the Free Software Foundation; either version 2, or (at your option) 15*ef5ccd6cSJohn Marino any later version. 16*ef5ccd6cSJohn Marino 17*ef5ccd6cSJohn Marino This program is distributed in the hope that it will be useful, 18*ef5ccd6cSJohn Marino but WITHOUT ANY WARRANTY; without even the implied warranty of 19*ef5ccd6cSJohn Marino MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20*ef5ccd6cSJohn Marino GNU General Public License for more details. 21*ef5ccd6cSJohn Marino 22*ef5ccd6cSJohn Marino You should have received a copy of the GNU General Public License 23*ef5ccd6cSJohn Marino along with this program; if not, write to the Free Software 24*ef5ccd6cSJohn Marino Foundation, Inc., 51 Franklin Street - Fifth Floor, 25*ef5ccd6cSJohn Marino Boston, MA 02110-1301, USA. */ 26*ef5ccd6cSJohn Marino 27*ef5ccd6cSJohn Marino /* This file is designed for inclusion by host-dependent .h files. No 285796c8dcSSimon Schubert user application should include it directly, since that would make 295796c8dcSSimon Schubert the application unable to be configured for both "same" and "binary" 305796c8dcSSimon Schubert variant systems. */ 315796c8dcSSimon Schubert 325796c8dcSSimon Schubert #define FOPEN_RB "r" 335796c8dcSSimon Schubert #define FOPEN_WB "w" 345796c8dcSSimon Schubert #define FOPEN_AB "a" 355796c8dcSSimon Schubert #define FOPEN_RUB "r+" 365796c8dcSSimon Schubert #define FOPEN_WUB "w+" 375796c8dcSSimon Schubert #define FOPEN_AUB "a+" 385796c8dcSSimon Schubert 395796c8dcSSimon Schubert #define FOPEN_RT "r" 405796c8dcSSimon Schubert #define FOPEN_WT "w" 415796c8dcSSimon Schubert #define FOPEN_AT "a" 425796c8dcSSimon Schubert #define FOPEN_RUT "r+" 435796c8dcSSimon Schubert #define FOPEN_WUT "w+" 445796c8dcSSimon Schubert #define FOPEN_AUT "a+" 45