10.07.2015 Views

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3F Functions and VAX Subroutines<strong>The</strong> return value is the previous action. If this is a value greater than one, then it is the address ofa routine that was to have been called. <strong>The</strong> return value can be used in subsequent calls to signalto restore a previous action. A negative return value indicates a system error.9.1.59. sleepSuspend execution for a period of time.Synopsissubroutine sleep(itime)integer itimeDescriptionSuspends the process for t seconds.9.1.60. stat, lstat, fstat, fstat64Get file status.Synopsisinteger function stat(nm, statb)character*(*) nminteger statb(*)integer function lstat(nm, statb)character*(*) nminteger statb(*)integer function fstat(lu, statb)integer luinteger statb(*)integer function fstat64(lu, statb)integer luinteger*8 statb(*)DescriptionReturn the file status of the file in the array statb. If successful, zero is returned; otherwise, thevalue of -1 is returned. stat obtains information about the file whose name is nm; if the file is asymbolic link, information is obtained about the file the link references. lstat is similar to statexcept lstat returns information about the link. fstat obtains information about the file which isconnected to logical unit lu.9.1.61. stimeSet time.<strong>PGI</strong> <strong>Fortran</strong> <strong>Reference</strong> Guide 209

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!