INTRO(3F) UNIX Programmer's Manual INTRO(3F) NAME intro - introduction to FORTRAN library functions DESCRIPTION This section describes those functions that are in the FOR- TRAN run time library. The functions listed here provide an interface from _f_7_7 programs to the system in the same manner as the C library does for C programs. They are automati- cally loaded as needed by the Fortran compiler _f_7_7(1). Most of these functions are in libU77.a. Some are in libF77.a or libI77.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._o_u_t file. To include them, simply declare external f77lid in any _f_7_7 module. _F_u_n_c_t_i_o_n_s _A_v_a_i_l_a_b_l_e _i_n _t_h_e _F_O_R_T_R_A_N _L_i_b_r_a_r_y abort terminate abruptly with memory image access determine accessability of a file alarm execute a subroutine after a specified time bessel functions of two kinds for integer orders bit bitwise functions and bitwise and (see bit.3f) or bitwise or (see bit.3f) xor bitwise xor (see bit.3f) not bitwise not (see bit.3f) rshift right shift (see bit.3f) lshift left shift (see bit.3f) chdir change default directory chmod change file modes etime return elapsed execution time dtime return elapsed execution time (see etime.3f) exit terminate process with status fdate return date and time in an ASCII string flmin return smallest real value flmax return largest real value (see flmin.3f) ffrac return smallest fractional value (see flmin.3f) dflmin return smallest double value (see flmin.3f) dflmax return largest double value (see flmin.3f) dffrac return smallest fractional double (see flmin.3f) inmax return largest integer value (see flmin.3f) flush flush output to a logical unit fork create a copy of this process fseek reposition a file on a logical unit ftell tell file position on logical unit (see fseek.3f) Printed 7/31/83 1 INTRO(3F) UNIX Programmer's Manual INTRO(3F) getarg command arguments to fortran iargc command arguments to fortran (see getarg.3f) getc get a character from a logical unit fgetc get a character from a logical unit (see getc.3f) getcwd get pathname of current working directory getenv get value of environment variables getlog get user's login name getpid get process id getuid get user ID of the caller getgid get group ID of the caller (see getuid.3f) hostnm get name of host system idate return date in numerical form itime return time in numerical form (see idate.3f) index find substring in character object rindex find substring in character object (see index.3f) lnblnk find end of character object (see index.3f) len tell length of character object (see index.3f) ioinit initialize I/O system kill send a signal to a process link make a link to an existing file symlnk create a symbolic link to a file (see link.3f) loc return the address of an object long convert to long integer short convert to short integer (see long.3f) perror get system error messages gerror get system error messages (see perror.3f) ierrno get system error number (see perror.3f) putc write a character to a logical unit fputc write a character to a logical unit (see putc.3f) qsort quick sort rand return random values drand return random values (see rand.3f) irand return random values (see rand.3f) signal change the action for a signal sleep sleep for awhile stat get file status fstat get file status (see stat.3f) lstat get file status (see stat.3f) system execute a unix command time return system time ctime return system time (see time.3f) ltime return system time (see time.3f) gmtime return system time (see time.3f) topen open channel to magnetic tape device tclose close tape channel (see topen.3f) tread read tape device (see topen.3f) twrite write tape device (see topen.3f) trewin rewind tape device (see topen.3f) tskipf skip forward on tape device (see topen.3f) tstate get tape device status (see topen.3f) traper trap arithmetic errors trapov trap and repair floating point errors (obsolete) Printed 7/31/83 2 INTRO(3F) UNIX Programmer's Manual INTRO(3F) trpfpe trap and repair floating point errors fpecnt how many faults have there been (see trpfpe.3f) ttynam find name of a terminal port isatty is logical unit open to a tty port (see ttynam.3f) unlink remove a directory entry wait wait for a process to terminate Printed 7/31/83 3