1 /* Common declarations for all of GNU Fortran libcaf implementations.
3 Free Software Foundation, Inc.
4 Contributed by Tobias Burnus <burnus@net-b.de>
6 This file is part of the GNU Fortran Coarray Runtime Library (libcaf).
8 Libcaf is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
13 Libcaf is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 Under Section 7 of GPL version 3, you are granted additional
19 permissions described in the GCC Runtime Library Exception, version
20 3.1, as published by the Free Software Foundation.
22 You should have received a copy of the GNU General Public License and
23 a copy of the GCC Runtime Library Exception along with this program;
24 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
25 <http://www.gnu.org/licenses/>. */
33 /* Definitions of the Fortran 2008 standard; need to kept in sync with
34 ISO_FORTRAN_ENV, cf. libgfortran.h. */
35 #define STAT_UNLOCKED 0
37 #define STAT_LOCKED_OTHER_IMAGE 2
38 #define STAT_STOPPED_IMAGE 3
41 void _gfortran_caf_init (int *, char ***, int *, int *);
42 void _gfortran_caf_finalize (void);
44 int _gfortran_caf_sync_all (char *, int);
45 int _gfortran_caf_sync_images (int count
, int images
[], char *, int);
47 void _gfortran_caf_critical (void);
48 void _gfortran_caf_end_critical (void);
50 void _gfortran_caf_error_stop_str (const char *, int32_t) __attribute__ ((noreturn
));
51 void _gfortran_caf_error_stop (int32_t) __attribute__ ((noreturn
));