5 * Revision 1.3 1996/10/17 16:16:30 cernlib
6 * Correct type of cfstati to be integer
8 * Revision 1.2 1996/10/17 09:23:15 cernlib
9 * add back in accidentally deleted declaration lines
11 * Revision 1.1 1996/10/16 12:57:34 cernlib
12 * Add cfstat. cfstati is used by cfstat. This uses rfio_stat if CERNLIB_SHIFT
18 #include "kerngen/pilot.h"
19 INTEGER FUNCTION CFSTAT (NAME, INFO)
21 C CERN PROGLIB# Z310 CFSTAF
22 C ORIG. 11-Oct-96; stolen from ccgen/statf.F; GF.
24 C Fortran interface routine to stat
26 C NAME the name of the file of which information is required
27 C INFO(12) buffer returning the information about "file"
29 C A succesfull call returns 0. A failed call returns -1.
32 INTEGER INFO(12), CFSTATI
35 #if !defined(CERNLIB_QMVAX)
36 CFSTAT = CFSTATI (NAME, INFO, LGN)
38 CFSTAT = CFSTATI (%REF(NAME), INFO, LGN)