1*0bfacb9bSmrg/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
2760c2415Smrg
3760c2415SmrgThis file is part of GCC.
4760c2415Smrg
5760c2415SmrgGCC is free software; you can redistribute it and/or modify it under
6760c2415Smrgthe terms of the GNU General Public License as published by the Free
7760c2415SmrgSoftware Foundation; either version 3, or (at your option) any later
8760c2415Smrgversion.
9760c2415Smrg
10760c2415SmrgGCC is distributed in the hope that it will be useful, but WITHOUT ANY
11760c2415SmrgWARRANTY; without even the implied warranty of MERCHANTABILITY or
12760c2415SmrgFITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13760c2415Smrgfor more details.
14760c2415Smrg
15760c2415SmrgYou should have received a copy of the GNU General Public License
16760c2415Smrgalong with GCC; see the file COPYING3.  If not see
17760c2415Smrg<http://www.gnu.org/licenses/>.  */
18760c2415Smrg
19760c2415Smrg/* Make sure to keep in sync with libgfortran/io/io.h (st_parameter_*).  */
20760c2415Smrg#ifndef IOPARM_common_libreturn_mask
21760c2415Smrg#define IOPARM_common_libreturn_mask	3
22760c2415Smrg#define IOPARM_common_libreturn_ok	0
23760c2415Smrg#define IOPARM_common_libreturn_error	1
24760c2415Smrg#define IOPARM_common_libreturn_end	2
25760c2415Smrg#define IOPARM_common_libreturn_eor	3
26760c2415Smrg#define IOPARM_common_err		(1 << 2)
27760c2415Smrg#define IOPARM_common_end		(1 << 3)
28760c2415Smrg#define IOPARM_common_eor		(1 << 4)
29760c2415Smrg#endif
30760c2415SmrgIOPARM (common,  flags,		0,	 int4)
31760c2415SmrgIOPARM (common,  unit,		0,	 int4)
32760c2415SmrgIOPARM (common,  filename,	0,	 pchar)
33760c2415SmrgIOPARM (common,  line,		0,	 int4)
34760c2415SmrgIOPARM (common,  iomsg,		1 << 6,  char2)
35760c2415SmrgIOPARM (common,  iostat,	1 << 5,  pint4)
36760c2415SmrgIOPARM (open,    common,	0,	 common)
37760c2415SmrgIOPARM (open,    recl_in,	1 << 7,  intio)
38760c2415SmrgIOPARM (open,    file,		1 << 8,  char2)
39760c2415SmrgIOPARM (open,    status,	1 << 9,  char1)
40760c2415SmrgIOPARM (open,    access,	1 << 10, char2)
41760c2415SmrgIOPARM (open,    form,		1 << 11, char1)
42760c2415SmrgIOPARM (open,    blank,		1 << 12, char2)
43760c2415SmrgIOPARM (open,    position,	1 << 13, char1)
44760c2415SmrgIOPARM (open,    action,	1 << 14, char2)
45760c2415SmrgIOPARM (open,    delim,		1 << 15, char1)
46760c2415SmrgIOPARM (open,    pad,		1 << 16, char2)
47760c2415SmrgIOPARM (open,    convert,	1 << 17, char1)
48760c2415SmrgIOPARM (open,    decimal,	1 << 18, char2)
49760c2415SmrgIOPARM (open,    encoding,	1 << 19, char1)
50760c2415SmrgIOPARM (open,    round,		1 << 20, char2)
51760c2415SmrgIOPARM (open,    sign,		1 << 21, char1)
52760c2415SmrgIOPARM (open,    asynchronous,	1 << 22, char2)
53760c2415SmrgIOPARM (open,    newunit,	1 << 23, pint4)
54760c2415SmrgIOPARM (open,    readonly,	1 << 24, int4)
55760c2415SmrgIOPARM (open,    cc,		1 << 25, char2)
56760c2415SmrgIOPARM (open,    share,		1 << 26, char1)
57760c2415SmrgIOPARM (close,   common,	0,	 common)
58760c2415SmrgIOPARM (close,   status,	1 << 7,  char1)
59760c2415SmrgIOPARM (filepos, common,	0,	 common)
60760c2415SmrgIOPARM (inquire, common,	0,	 common)
61760c2415SmrgIOPARM (inquire, exist,		1 << 7,  pint4)
62760c2415SmrgIOPARM (inquire, opened,	1 << 8,  pint4)
63760c2415SmrgIOPARM (inquire, number,	1 << 9,  pint4)
64760c2415SmrgIOPARM (inquire, named,		1 << 10, pint4)
65760c2415SmrgIOPARM (inquire, nextrec,	1 << 11, pintio)
66760c2415SmrgIOPARM (inquire, recl_out,	1 << 12, pintio)
67760c2415SmrgIOPARM (inquire, strm_pos_out,	1 << 13, pintio)
68760c2415SmrgIOPARM (inquire, file,		1 << 14, char1)
69760c2415SmrgIOPARM (inquire, access,	1 << 15, char2)
70760c2415SmrgIOPARM (inquire, form,		1 << 16, char1)
71760c2415SmrgIOPARM (inquire, blank,		1 << 17, char2)
72760c2415SmrgIOPARM (inquire, position,	1 << 18, char1)
73760c2415SmrgIOPARM (inquire, action,	1 << 19, char2)
74760c2415SmrgIOPARM (inquire, delim,		1 << 20, char1)
75760c2415SmrgIOPARM (inquire, pad,		1 << 21, char2)
76760c2415SmrgIOPARM (inquire, name,		1 << 22, char1)
77760c2415SmrgIOPARM (inquire, sequential,	1 << 23, char2)
78760c2415SmrgIOPARM (inquire, direct,	1 << 24, char1)
79760c2415SmrgIOPARM (inquire, formatted,	1 << 25, char2)
80760c2415SmrgIOPARM (inquire, unformatted,	1 << 26, char1)
81760c2415SmrgIOPARM (inquire, read,		1 << 27, char2)
82760c2415SmrgIOPARM (inquire, write,		1 << 28, char1)
83760c2415SmrgIOPARM (inquire, readwrite,	1 << 29, char2)
84760c2415SmrgIOPARM (inquire, convert,	1 << 30, char1)
85760c2415SmrgIOPARM (inquire, flags2,	1U << 31, int4)
86760c2415SmrgIOPARM (inquire, asynchronous,	1 << 0,  char1)
87760c2415SmrgIOPARM (inquire, decimal,	1 << 1,  char2)
88760c2415SmrgIOPARM (inquire, encoding,	1 << 2,  char1)
89760c2415SmrgIOPARM (inquire, round,		1 << 3,  char2)
90760c2415SmrgIOPARM (inquire, sign,		1 << 4,  char1)
91760c2415SmrgIOPARM (inquire, pending,	1 << 5,  pint4)
92760c2415SmrgIOPARM (inquire, size,		1 << 6,  pintio)
93760c2415SmrgIOPARM (inquire, id,		1 << 7,  pint4)
94760c2415SmrgIOPARM (inquire, iqstream,	1 << 8,  char1)
95760c2415SmrgIOPARM (inquire, share,		1 << 9,  char2)
96760c2415SmrgIOPARM (inquire, cc,		1 << 10, char1)
97760c2415SmrgIOPARM (wait,    common,	0,	 common)
98760c2415SmrgIOPARM (wait,    id,		1 << 7,  pint4)
99760c2415SmrgIOPARM (dt,      common,	0,	 common)
100760c2415Smrg#define IOPARM_dt_list_format		(1 << 7)
101760c2415Smrg#define IOPARM_dt_namelist_read_mode	(1 << 8)
102760c2415SmrgIOPARM (dt,      rec,		1 << 9,  intio)
103760c2415SmrgIOPARM (dt,      size,		1 << 10, pintio)
104760c2415SmrgIOPARM (dt,      iolength,	1 << 11, pintio)
105760c2415SmrgIOPARM (dt,      internal_unit_desc, 0,  parray)
106760c2415SmrgIOPARM (dt,      format,	1 << 12, char1)
107760c2415SmrgIOPARM (dt,      advance,	1 << 13, char2)
108760c2415SmrgIOPARM (dt,      internal_unit,	1 << 14, char1)
109760c2415SmrgIOPARM (dt,      namelist_name,	1 << 15, char2)
110760c2415SmrgIOPARM (dt,      id,		1 << 16, pint4)
111760c2415SmrgIOPARM (dt,      pos,		1 << 17, intio)
112760c2415SmrgIOPARM (dt,      asynchronous, 	1 << 18, char1)
113760c2415SmrgIOPARM (dt,      blank,		1 << 19, char2)
114760c2415SmrgIOPARM (dt,      decimal,	1 << 20, char1)
115760c2415SmrgIOPARM (dt,      delim,		1 << 21, char2)
116760c2415SmrgIOPARM (dt,      pad,		1 << 22, char1)
117760c2415SmrgIOPARM (dt,      round,		1 << 23, char2)
118760c2415SmrgIOPARM (dt,      sign,		1 << 24, char1)
119760c2415Smrg#define IOPARM_dt_f2003		      (1 << 25)
120760c2415Smrg#define IOPARM_dt_dtio		      (1 << 26)
121760c2415Smrg#define IOPARM_dt_dec_ext	      (1 << 27)
122760c2415SmrgIOPARM (dt,      u,		0,	 pad)
123