Download Fortran Library Reference

Transcript
See also stat(2), access(3F), perror(3F), and time(3F).
Note: the path names can be no longer than MAXPATHLEN as defined in
<sys/param.h>.
stat64, lstat64, fstat64: Get File
Status
64-bit "long file" versions of stat, lstat, fstat. These routines are identical to the
non-64-bit routines, except that the 13-element array statb must be declared
INTEGER*8.
system: Execute a System Command
The function is called by:
INTEGER*4 system
status = system( string )
string
character*n
Input
String containing command to do
Return value
INTEGER*4
Output
Exit status of the shell executed.
See wait(2) for an explanation of
this value.
Example: system():
character*8 string / 'ls s*' /
INTEGER*4 status, system
status = system( string )
if ( status .ne. 0 ) stop 'system: error'
end
The function system passes string to your shell as input, as if the string had been
typed as a command. Note: string cannot be longer than 1024 characters.
If system can find the environment variable SHELL, then system uses the value of
SHELL as the command interpreter (shell); otherwise, it uses sh(1).
Chapter 1
Fortran Library Routines
95