xref: /openbsd-src/gnu/usr.bin/binutils-2.17/include/fopen-vms.h (revision 3d8817e467ea46cf4772788d6804dd293abfb01a)
1*3d8817e4Smiod /* Macros for the 'type' part of an fopen, freopen or fdopen.
2*3d8817e4Smiod 
3*3d8817e4Smiod 	<Read|Write>[Update]<Binary file|text file>
4*3d8817e4Smiod 
5*3d8817e4Smiod    This version is for VMS systems, where text and binary files are
6*3d8817e4Smiod    different.
7*3d8817e4Smiod    This file is designed for inclusion by host-dependent .h files.  No
8*3d8817e4Smiod    user application should include it directly, since that would make
9*3d8817e4Smiod    the application unable to be configured for both "same" and "binary"
10*3d8817e4Smiod    variant systems.  */
11*3d8817e4Smiod 
12*3d8817e4Smiod #define FOPEN_RB	"rb","rfm=var"
13*3d8817e4Smiod #define FOPEN_WB 	"wb","rfm=var"
14*3d8817e4Smiod #define FOPEN_AB 	"ab","rfm=var"
15*3d8817e4Smiod #define FOPEN_RUB 	"r+b","rfm=var"
16*3d8817e4Smiod #define FOPEN_WUB 	"w+b","rfm=var"
17*3d8817e4Smiod #define FOPEN_AUB 	"a+b","rfm=var"
18*3d8817e4Smiod 
19*3d8817e4Smiod #define FOPEN_RT	"r"
20*3d8817e4Smiod #define FOPEN_WT 	"w"
21*3d8817e4Smiod #define FOPEN_AT 	"a"
22*3d8817e4Smiod #define FOPEN_RUT 	"r+"
23*3d8817e4Smiod #define FOPEN_WUT 	"w+"
24*3d8817e4Smiod #define FOPEN_AUT 	"a+"
25