INTRO(3F) — FORTRAN LIBRARY ROUTINES
NAME
intro − introduction to FORTRAN library functions and subroutines.
DESCRIPTION
This section describes those functions and subroutines that are in the FORTRAN runtime library. The functions and subroutines listed here provide an interface from 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 f77 (1).
All of these routines are in libF77.a . A few intrinsic functions are described for the sake of completeness.
For efficiency, the SCCS ID strings are not normally included in the a.out file. To include them, simply declare
EXTERNAL f77lid
in any f77 module.
LIST OF FUNCTIONS
NameAppears on PageDescription
abort abort(3F) terminate abruptly; write memory image to core file
access access(3F) return access mode (r,w,x) or existence of a file
alarm alarm(3F) execute a subroutine after a specified time
bit bit(3F) and, or, xor, not, rshift, lshift, bic, bis, bit, setbit functions
chdir chdir(3F) change default directory
chmod chmod(3F) change mode of a file
ctime time(3F) return system time
drand rand(3F) return random values
dtime etime(3F) return elapsed execution time
etime etime(3F) return elapsed execution time
exit exit(3F) terminate process with status
f77_ieee_environment f77_ieee_environment(3F)
IEEE floating-point mode, status, and signals
f77_floatingpoint f77_floatingpoint(3F)
IEEE floating-point definitions
fdate fdate(3F) return date and time in an ASCII string
fgetc getc(3F) get a character from a logical unit
flmax range(3F) return extreme values
flmin range(3F) return extreme values
flush flush(3F) flush output to a logical unit
fork fork(3F) create a copy of this process
fputc putc(3F) write a character to a FORTRAN logical unit
free free(3F) memory deallocator
fseek fseek(3F) reposition a file on a logical unit
fstat stat(3F) get file status
ftell fseek(3F) reposition a file on a logical unit
gerror perror(3F) get system error messages
getarg getarg(3F) get the kth command-line argument
getc getc(3F) get a character from a logical unit
getcwd getcwd(3F) get pathname of current working directory
getenv getenv(3F) get value of environment variables
getfd getfd(3F) get file descriptor of external unit number
getfilep getfilep(3F) get file pointer of external unit number
getgid getuid(3F) get user or group ID of the caller
getlog getlog(3F) get user’s login name
getpid getpid(3F) get process id
getuid getuid(3F) get user or group ID of the caller
gmtime time(3F) return system time
hostnm hostnm(3F) get name of current host
iargc getarg(3F) return the number of arguments after command name
idate idate(3F) return date or time in numerical form
ierrno perror(3F) get system error messages
index index(3F) return index of first occurrence of string a2 in a1
inmax range(3F) return the maximum positive integer value
ioinit ioinit(3F) initialize IO carriage control, blanks, append, names
irand rand(3F) return random values
isatty ttynam(3F) returns true if unit is a terminal device
itime idate(3F) return date or time in numerical form
kill kill(3F) send a signal to a process
len index(3F) return declared length of character string
libm_single libm_single(3F)
single-precision FORTRAN entrys for libm (math) functions
libm_double libm_double(3F)
double-precision FORTRAN entrys for libm (math) functions
link link(3F) make a link to an existing file
lnblnk index(3F) return index of last non-blank in character string
loc loc(3F) return the address of an object
long long(3F) integer object conversion
lstat stat(3F) get file status
ltime time(3F) return system time
malloc malloc(3F) memory allocator
mtstatusmtstatus(3F) magnetic tape error status
perror perror(3F) get system error messages
putc putc(3F) write a character to a FORTRAN logical unit
qsort qsort(3F) quick sort
rand rand(3F) return random values
rename rename(3F) rename a file
rindex index(3F) return index of last occurrence of string a2 in a1
short long(3F) integer object conversion
signal signal(3F) change the action for a signal
sleep sleep(3F) suspend execution for an interval
stat stat(3F) get file status
symlnk link(3F) make a link to an existing file
system system(3F) execute a SunOS command
tclose topen(3F) f77 tape close
time time(3F) return system time
topen topen(3F) f77 tape open
tread topen(3F) f77 tape read
trewin topen(3F) f77 tape rewind
tskipf topen(3F) f77 tape skip files or records, reset eof & eot status
tstate topen(3F) logical state of f77 tape I/O channel
ttynam ttynam(3F) find name of a terminal port
twrite topen(3F) f77 tape write
unlink unlink(3F) remove a file
wait wait(3F) wait for a process to terminate
Sun Release 4.1 — Last change: 07 December 1990