.\" @(#)intro.3f 1.5 98/04/24 SMI; .TH INTRO 3F "24 April 1998" .SH NAME intro \- introduction to FORTRAN library functions and subroutines .SH DESCRIPTION .PP This section describes those functions and subroutines that are in the FORTRAN runtime library. The functions and subroutines listed here provide an interface from .B f77 programs to the system in the same manner as the C library does for C programs. (You can also access the C library directly if you use pragmas.) These functions and subroutines are automatically loaded as needed by the FORTRAN compiler .BR f77 (1). .\" .PP Most of these routines are in .B libF77.a and .BR libF77.so . Some routines are in .B libV77.a and .B libV77.so and their descriptions are tagged as VMS. .PP A few intrinsic functions are described for the sake of completeness. .PP For efficiency, the SCCS ID strings are not normally included in the .B a.out file. To include them, simply declare: .sp .B "\ EXTERNAL f77lid" .sp in any .B f77 module. .SH "LIST OF FUNCTIONS" .sp 2 .nf .ta \w'system'u+2n +\w'access.3f'u+10n \f2Name\f1 \f2Appears on Page\f1 \f2Description\f1 .ta \w'system'u+4n +\w'access.3f'u+4n \f3abort\f1 \f3abort\f1(3F) terminate abruptly; write memory image to core file \f3access\f1 \f3access\f1(3F) return access mode (r,w,x) or existence of a file \f3alarm\f1 \f3alarm\f1(3F) execute a subroutine after a specified time \f3bit\f1 \f3bit\f1(3F) and/or/xor/not/rshift/lshift/bic/bis/bit/setbit functions \f3chdir\f1 \f3chdir\f1(3F) change default directory \f3chmod\f1 \f3chmod\f1(3F) change mode of a file \f3ctime\f1 \f3time\f1(3F) return system time \f3date\f1 \f3date\f1(3F) return date in character form \f3date_and_time\f1 Fortran 90-style date routine \f3drand\f1 \f3rand\f1(3F) random values \f3dtime\f1 \f3etime\f1(3F) return elapsed execution time \f3etime\f1 \f3etime\f1(3F) return elapsed execution time \f3exit\f1 \f3exit\f1(3F) terminate process with status \f3f77_floatingpoint\f1 IEEE floating-point definitions \f3f77_ieee_environment\f1 IEEE floating-point mode, status, and signals \f3fdate\f1 \f3fdate\f1(3F) return date and time in an ASCII string \f3fgetc\f1 \f3getc\f1(3F) get a character from a logical unit \f3flush\f1 \f3flush\f1(3F) flush output to a logical unit \f3fork\f1 \f3fork\f1(3F) create a copy of this process \f3fputc\f1 \f3putc\f1(3F) write a character to a FORTRAN logical unit \f3free\f1 \f3free\f1(3F) memory deallocator \f3fseek\f1 \f3fseek\f1(3F) reposition a file on a logical unit \f3fseeko64\f1 \f3fseeko64\f1(3F) reposition a long file on a logical unit \f3fstat\f1 \f3stat\f1(3F) get file status \f3fstat64\f1 \f3stat64\f1(3F) get file status (long file) \f3ftell\f1 \f3fseek\f1(3F) reposition a file on a logical unit \f3ftell64\f1 \f3fseek64\f1(3F) reposition a long file on a logical unit \f3gerror\f1 \f3perror\f1(3F) get system error messages \f3getarg\f1 \f3getarg\f1(3F) get the k\fIth\fP command-line argument \f3getc\f1 \f3getc\f1(3F) get a character from a logical unit \f3getcwd\f1 \f3getcwd\f1(3F) get pathname of current working directory \f3getenv\f1 \f3getenv\f1(3F) get value of environment variables \f3getfd\f1 \f3getfd\f1(3F) get file descriptor of external unit number \f3getfilep\f1 \f3getfilep\f1(3F) get file pointer of external unit number \f3getgid\f1 \f3getuid\f1(3F) get user or group ID of the caller \f3getlog\f1 \f3getlog\f1(3F) get user's login name \f3getpid\f1 \f3getpid\f1(3F) get process id \f3getuid\f1 \f3getuid\f1(3F) get user or group ID of the caller \f3gmtime\f1 \f3time\f1(3F) return system time \f3hostnm\f1 \f3hostnm\f1(3F) get name of current host \f3iargc\f1 \f3getarg\f1(3F) return the number of arguments after command name \f3idate\f1 \f3idate\f1(3F) return date in numerical form \f3ierrno\f1 \f3perror\f1(3F) get system error messages \f3index\f1 \f3index\f1(3F) return index of first occurrence of string a2 in a1 \f3inmax\f1 \f3inmax\f1(3F) return the maximum positive integer \f3ioinit\f1 \f3ioinit\f1(3F) initialize IO carriage control, blanks, append, names \f3irand\f1 \f3rand\f1(3F) random values \f3isatty\f1 \f3ttynam\f1(3F) returns true if unit is a terminal device \f3isetjmp\f1 \f3longjmp\f1(3F) save the stack and register envirnoment for \f3longjmp\f1 \f3itime\f1 \f3itime\f1(3F) return time in numerical form \f3kill\f1 \f3kill\f1(3F) send a signal to a process \f3len\f1 \f3index\f1(3F) return declared length of character string \f3libm_double\f1 double-precision \f3libm\f1 (math) functions \f3libm_quadruple\f1 quadruple-precision \f3libm\f1 (math) functions \f3libm_single\f1 single-precision \f3libm\f1 (math) functions \f3link\f1 \f3link\f1(3F) make a link to an existing file \f3lnblnk\f1 \f3index\f1(3F) return index of last non-blank in character string \f3loc\f1 \f3loc\f1(3F) return the address of an object \f3long\f1 \f3long\f1(3F) integer object conversion \f3longjmp\f1 \f3long\f1(3F) return to the location set by isetjmp \f3lstat\f1 \f3stat\f1(3F) get file status \f3lstat64\f1 \f3stat64\f1(3F) get long file status \f3ltime\f1 \f3time\f1(3F) return system time \f3malloc\f1 \f3malloc\f1(3F) memory allocator \f3mvbits\f1 \f3mvbits\f1(3F) move bits, VMS \f3perror\f1 \f3perror\f1(3F) get system error messages \f3putc\f1 \f3putc\f1(3F) write a character to a FORTRAN logical unit \f3qsort\f1 \f3qsort\f1(3F) quick sort \f3ran\f1 \f3ran\f1(3F) random values, VMS \f3rand\f1 \f3rand\f1(3F) random values \f3rename\f1 \f3rename\f1(3F) rename a file \f3rindex\f1 \f3index\f1(3F) return index of last occurrence of string a2 in a1 \f3secnds\f1 \f3secnds\f1(3F) return system time, VMS \f3sh\f1 \f3sh\f1(3F) fast execute of \f3sh\f1 command \f3short\f1 \f3long\f1(3F) integer object conversion \f3signal\f1 \f3signal\f1(3F) change the action for a signal \f3sleep\f1 \f3sleep\f1(3F) suspend execution for an interval \f3stat\f1 \f3stat\f1(3F) get file status \f3stat64\f1 \f3stat64\f1(3F) get long file status \f3symlnk\f1 \f3link\f1(3F) make a link to an existing file \f3system\f1 \f3system\f1(3F) execute operating system command \f3tclose\f1 \f3topen\f1(3F) \f3f77\f1 tape close \f3time\f1 \f3time\f1(3F) return system time \f3topen\f1 \f3topen\f1(3F) \f3f77\f1 tape open \f3tread\f1 \f3topen\f1(3F) \f3f77\f1 tape read \f3trewin\f1 \f3topen\f1(3F) \f3f77\f1 tape rewind \f3tskipf\f1 \f3topen\f1(3F) \f3f77\f1 tape skip files or records, reset eof and eot status \f3tstate\f1 \f3topen\f1(3F) logical state of \f3f77\f1 tape I/O channel \f3ttynam\f1 \f3ttynam\f1(3F) find name of a terminal port \f3twrite\f1 \f3topen\f1(3F) \f3f77\f1 tape write \f3unlink\f1 \f3unlink\f1(3F) remove a file \f3wait\f1 \f3wait\f1(3F) wait for a process to terminate .fi