blob: ce8297076d3a21bbdf79392c09923aa8818f5235 [file] [log] [blame]
peter klauslerfc94aa62019-10-11 13:46:58 -07001#if 0 /* this header can be included into both Fortran and C */
2Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15
16This file defines various code values that need to be exported
17to predefined Fortran standard modules as well as to C/C++
18code in the compiler and runtime library.
19These include:
20 - the error/end code values that can be returned
21 to an IOSTAT= or STAT= specifier on a Fortran I/O statement
22 or coindexed data reference (see Fortran 2018 12.11.5,
23 16.10.2, and 16.10.2.33)
24#endif
25#ifndef FORTRAN_RUNTIME_MAGIC_NUMBERS_H_
26#define FORTRAN_RUNTIME_MAGIC_NUMBERS_H_
27
28#define FORTRAN_RUNTIME_IOSTAT_END (-1)
29#define FORTRAN_RUNTIME_IOSTAT_EOR (-2)
30#define FORTRAN_RUNTIME_IOSTAT_FLUSH (-3)
31#define FORTRAN_RUNTIME_IOSTAT_INQUIRE_INTERNAL_UNIT 1
32
33#define FORTRAN_RUNTIME_STAT_FAILED_IMAGE 10
34#define FORTRAN_RUNTIME_STAT_LOCKED 11
35#define FORTRAN_RUNTIME_STAT_LOCKED_OTHER_IMAGE 12
36#define FORTRAN_RUNTIME_STAT_STOPPED_IMAGE 13
37#define FORTRAN_RUNTIME_STAT_UNLOCKED 14
38#define FORTRAN_RUNTIME_STAT_UNLOCKED_FAILED_IMAGE 15
39#endif