Next Index Doc Set Home


Fortran Library Reference


Contents

Preface

1. Fortran Library Routines

Data Type Considerations

abort: Terminate and Write Memory to Core File

access: Check File for Permissions or Existence

alarm: Execute a Subroutine after a Specified Time

bit: Bit Functions: and, or, ..., bit, setbit, ...
Usage: and, or, xor, not, rshift, lshift
Usage: bic, bis, bit, setbit

chdir: Change Default Directory

chmod: Change the Mode of a File

date: Get Current System Date as a Character String

dtime, etime: Elapsed Execution Time
dtime: Elapsed Time Since the Last dtime Call
etime: Elapsed Time Since Start of Execution

exit: Terminate a Process and Set the Status

fdate: Return Date and Time in an ASCII String

flush: Flush Output to a Logical Unit

fork: Create a Copy of the Current Process

free: Deallocate Memory Allocated by Malloc

fseek, ftell: Determine Position and Reposition a File
fseek: Reposition a File on a Logical Unit
ftell: Return Current Position of File

getarg, iargc: Get Command-line Arguments
getarg: Get the kth Command-Line Argument
iargc: Get the Number of Command-Line Arguments

getc, fgetc: Get Next Character
getc: Get Next Character from stdin
fgetc: Get Next Character from Specified Logical Unit

getcwd: Get Path of Current Working Directory

getenv: Get Value of Environment Variables

getfd: Get File Descriptor for External Unit Number

getfilep: Get File Pointer for External Unit Number

getlog: Get User's Login Name

getpid: Get Process ID

getuid, getgid: Get User or Group ID of Process
getuid: Get User ID of the Process
getgid: Get Group ID of the Process

hostnm: Get Name of Current Host

idate: Return Current System Date

ieee_flags,ieee_handler,sigfpe: IEEE Arithmetic
f77_floatingpoint.h: Fortran IEEE Definitions

index,rindex,lnblnk: Index or Length of Substring
index: First Occurrence of String a2 in String a1
rindex: Last Occurrence of String a2 in String a1
lnblnk: Last Nonblank in String a1

inmax: Return Maximum Positive Integer

ioinit: Initialize I/O: Carriage Control, File Names, ...
Duration of File I/O Properties
Internal Flags
Source Code
Usage: ioinit
Restrictions
Details of Arguments

itime: Current System Time

kill: Send a Signal to a Process

libm_double: libm Double-Precision Functions
Intrinsic Functions
Non-Intrinsic Functions

libm_quadruple: libm Quad-Precision Functions
Intrinsic Functions
Non-Intrinsic Functions

libm_single: libm Single-Precision Functions
Intrinsic Functions
Non-Intrinsic Functions

link, symlnk: Make a Link to an Existing File
link: Create a Link to an Existing File
symlnk: Create a Symbolic Link to an Existing File

loc: Return the Address of an Object

long, short: Integer Object Conversion
long: Convert a Short Integer to a Long Integer
short: Convert a Long Integer to a Short Integer

longjmp, isetjmp: Return to Location Set by isetjmp
isetjmp: Set the Location for longjmp
longjmp: Return to the location set by isetjmp
Description
Restrictions

malloc: Allocate Memory and Get Address

mvbits: Move a Bit Field

perror, gerror, ierrno: Get System Error Messages
perror: Print Message to Logical Unit 0, stderr
gerror: Get Message for Last Detected System Error
ierrno: Get Number for Last Detected System Error

putc, fputc: Write a Character to a Logical Unit
putc: Write to Logical Unit 6
fputc: Write to Specified Logical Unit

qsort: Sort the Elements of a One-dimensional Array

ran: Generate a Random Number between 0 and 1

rand, drand, irand: Return Random Values

rename: Rename a File

secnds: Get System Time in Seconds, Minus Argument

sh: Fast Execution of an sh Command

signal: Change the Action for a Signal

sleep: Suspend Execution for an Interval

stat, lstat, fstat: Get File Status
stat: Get Status for File, by File Name
fstat: Get Status for File, by Logical Unit
lstat: Get Status for File, by File Name
Detail of Status Array for Files

system: Execute a System Command

time, ctime, ltime, gmtime: Get System Time
time: Get System Time
ctime: Convert System Time to Character
ltime: Split System Time to Month, Day,... (Local)
gmtime: Split System Time to Month, Day, ... (GMT)

topen, tclose, tread,..., tstate: Tape I/O
topen: Associate a Device with a Tape Logical Unit
tclose: Write EOF, Close Tape Channel, Disconnect tlu
twrite: Write Next Physical Record to Tape
tread: Read Next Physical Record from Tape
trewin: Rewind Tape to Beginning of First Data File
tskipf: Skip Files and Records; Reset EoF Status
tstate: Get Logical State of Tape I/O Channel

ttynam, isatty: Get Name of a Terminal Port
ttynam: Get Name of a Terminal Port
isatty: Is this Unit a Terminal?

unlink: Remove a File

wait: Wait for a Process to Terminate

Next Index Doc Set Home