xref: /netbsd-src/external/gpl3/binutils/dist/include/fopen-vms.h (revision cb63e24e8d6aae7ddac1859a9015f48b1d8bd90e)
12a6b7db3Sskrll /* Macros for the 'type' part of an fopen, freopen or fdopen.
22a6b7db3Sskrll 
32a6b7db3Sskrll 	<Read|Write>[Update]<Binary file|text file>
42a6b7db3Sskrll 
52a6b7db3Sskrll    This version is for VMS systems, where text and binary files are
62a6b7db3Sskrll    different.
79573673dSchristos 
8*cb63e24eSchristos    Copyright (C) 1996-2024 Free Software Foundation, Inc.
99573673dSchristos 
109573673dSchristos    This program is free software; you can redistribute it and/or modify
119573673dSchristos    it under the terms of the GNU General Public License as published by
129573673dSchristos    the Free Software Foundation; either version 2, or (at your option)
139573673dSchristos    any later version.
149573673dSchristos 
159573673dSchristos    This program is distributed in the hope that it will be useful,
169573673dSchristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
179573673dSchristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
189573673dSchristos    GNU General Public License for more details.
199573673dSchristos 
209573673dSchristos    You should have received a copy of the GNU General Public License
219573673dSchristos    along with this program; if not, write to the Free Software
229573673dSchristos    Foundation, Inc., 51 Franklin Street - Fifth Floor,
239573673dSchristos    Boston, MA 02110-1301, USA.  */
249573673dSchristos 
259573673dSchristos /* This file is designed for inclusion by host-dependent .h files.  No
262a6b7db3Sskrll    user application should include it directly, since that would make
272a6b7db3Sskrll    the application unable to be configured for both "same" and "binary"
282a6b7db3Sskrll    variant systems.  */
292a6b7db3Sskrll 
3045548106Schristos #define FOPEN_RB	"rb,rfm=udf,rat=none"
3145548106Schristos #define FOPEN_WB 	"wb,rfm=udf,rat=none"
3245548106Schristos #define FOPEN_AB 	"ab,rfm=udf,rat=none"
3345548106Schristos #define FOPEN_RUB 	"r+b,rfm=udf,rat=none"
3445548106Schristos #define FOPEN_WUB 	"w+b,rfm=udf,rat=none"
3545548106Schristos #define FOPEN_AUB 	"a+b,rfm=udf,rat=none"
362a6b7db3Sskrll 
372a6b7db3Sskrll #define FOPEN_RT	"r"
382a6b7db3Sskrll #define FOPEN_WT 	"w"
392a6b7db3Sskrll #define FOPEN_AT 	"a"
402a6b7db3Sskrll #define FOPEN_RUT 	"r+"
412a6b7db3Sskrll #define FOPEN_WUT 	"w+"
422a6b7db3Sskrll #define FOPEN_AUT 	"a+"
43