Sun Logo


Fortran Library Reference

Suntrademark Studio 10

819-0490-10



Contents

Tables

Before You Begin

Typographic Conventions

Shell Prompts

Supported Platforms

Accessing Sun Studio Software and Man Pages

Accessing Compilers and Tools Documentation

Accessing Related Solaris Documentation

Resources for Developers

Contacting Sun Technical Support

Sending Your Comments

1. Fortran Library Routines

1.1 Data Type Considerations

1.2 64-Bit Environments

1.3 Fortran Math Functions

1.3.1 Single-Precision Functions

1.3.2 Double-Precision Functions

1.3.3 Quad-Precision Functions

1.4 Fortran Library Routines Reference

1.4.1 abort: Terminate and Write Core File

1.4.2 access: Check File Permissions or Existence

1.4.3 alarm: Call Subroutine After a Specified Time

1.4.4 bit: Bit Functions: and, or, ..., bit, setbit, ...

1.4.5 chdir: Change Default Directory

1.4.6 chmod: Change the Mode of a File

1.4.7 date: Get Current Date as a Character String

1.4.8 dtime, etime: Elapsed Execution Time

1.4.9 exit: Terminate a Process and Set the Status

1.4.10 fdate: Return Date and Time in an ASCII String

1.4.11 flush: Flush Output to a Logical Unit

1.4.12 fork: Create a Copy of the Current Process

1.4.13 fseek, ftell: Determine Position and Reposition a File

1.4.14 fseeko64, ftello64: Determine Position and Reposition a Large File

1.4.15 getarg, iargc: Get Command-Line Arguments

1.4.16 getc, fgetc: Get Next Character

1.4.17 getcwd: Get Path of Current Working Directory

1.4.18 getenv: Get Value of Environment Variables

1.4.19 getfd: Get File Descriptor for External Unit Number

1.4.20 getfilep: Get File Pointer for External Unit Number

1.4.21 getlog: Get User's Login Name

1.4.22 getpid: Get Process ID

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

1.4.24 hostnm: Get Name of Current Host

1.4.25 idate: Return Current Date

1.4.26 ieee_flags,ieee_handler, sigfpe: IEEE Arithmetic

1.4.27 index,rindex,lnblnk: Index or Length of Substring

1.4.28 inmax: Return Maximum Positive Integer

1.4.29 itime: Current Time

1.4.30 kill: Send a Signal to a Process

1.4.31 link, symlnk: Make a Link to an Existing File

1.4.32 loc: Return the Address of an Object

1.4.33 long, short: Integer Object Conversion

1.4.34 longjmp, isetjmp: Return to Location Set by isetjmp

1.4.35 malloc, malloc64, realloc, free: Allocate/Reallocate/Deallocate Memory

1.4.36 mvbits: Move a Bit Field

1.4.37 perror, gerror, ierrno: Get System Error Messages

1.4.38 putc, fputc: Write a Character to a Logical Unit

1.4.39 qsort,qsort64: Sort the Elements of a One-Dimensional Array

1.4.40 ran: Generate a Random Number Between 0 and 1

1.4.41 rand, drand, irand: Return Random Values

1.4.42 rename: Rename a File

1.4.43 secnds: Get System Time in Seconds, Minus Argument

1.4.44 set_io_err_handler, get_io_err_handler: Set and Get I/O Error Handler

1.4.45 sh: Fast Execution of an sh Command

1.4.46 signal: Change the Action for a Signal

1.4.47 sleep: Suspend Execution for an Interval

1.4.48 stat, lstat, fstat: Get File Status

1.4.49 stat64, lstat64, fstat64: Get File Status

1.4.50 system: Execute a System Command

1.4.51 time, ctime, ltime, gmtime: Get System Time

1.4.52 ttynam, isatty: Get Name of a Terminal Port

1.4.53 unlink: Remove a File

1.4.54 wait: Wait for a Process to Terminate

2. Fortran 95 Intrinsic Functions

2.1 Standard Fortran 95 Generic Intrinsic Functions

2.1.1 Argument Presence Inquiry Function

2.1.2 Numeric Functions

2.1.3 Mathematical Functions

2.1.4 Character Functions

2.1.5 Character Inquiry Function

2.1.6 Kind Functions

2.1.7 Logical Function

2.1.8 Numeric Inquiry Functions

2.1.9 Bit Inquiry Function

2.1.10 Bit Manipulation Functions

2.1.11 Transfer Function

2.1.12 Floating-Point Manipulation Functions

2.1.13 Vector and Matrix Multiply Functions

2.1.14 Array Reduction Functions

2.1.15 Array Inquiry Functions

2.1.16 Array Construction Functions

2.1.17 Array Reshape Function

2.1.18 Array Manipulation Functions

2.1.19 Array Location Functions

2.1.20 Pointer Association Status Functions

2.1.21 System Environment Procedures

2.1.22 Intrinsic Subroutines

2.1.23 Specific Names for Intrinsic Functions

2.2 Fortran 2000 Module Routines

2.2.1 IEEE Arithmetic and Exceptions Modules

2.2.2 C Binding Module

2.3 Non-Standard Fortran 95 Intrinsic Functions

2.3.1 Basic Linear Algebra Functions (BLAS)

2.3.2 Interval Arithmetic Intrinsic Functions

2.3.3 Other Vendor Intrinsic Functions

2.3.4 Other Extensions

3. FORTRAN 77 and VMS Intrinsic Functions

3.1 Arithmetic and Mathematical Functions

3.1.1 Arithmetic Functions

3.1.2 Type Conversion Functions

3.1.3 Trigonometric Functions

3.1.4 Other Mathematical Functions

3.2 Character Functions

3.3 Miscellaneous Functions

3.3.1 Bit Manipulation bismark

3.3.2 Environmental Inquiry Functions bismark

3.3.3 Memory bismark

3.4 Remarks

3.4.1 Notes on Functions

3.5 VMS Intrinsic Functions

3.5.1 VMS Double-Precision Complex

3.5.2 VMS Degree-Based Trigonometric

3.5.3 VMS Bit-Manipulation

3.5.4 VMS Multiple Integer Types

Index