home *** CD-ROM | disk | FTP | other *** search
- INTRO_PXF(3F) Last changed: 2-24-99
-
-
- NNAAMMEE
- IINNTTRROO__PPXXFF - Introduction to PXF POSIX library
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- See individual man pages for implementation details
-
- DDEESSCCRRIIPPTTIIOONN
- The POSIX FORTRAN 77 Language Interfaces Standard IEEE Std 1003.9-
- 1992 (POSIX.a) defines a standardized interface for accessing the
- system services of IEEE Std 1003.1-1990 (POSIX.1), and supports
- routines to access constructs not directly accessible with FORTRAN 77.
-
- Only a subset of the routines described in this standard are currently
- available on Cray Research systems. For some routines, only a portion
- of the functionality described by the standard is currently
- implemented.
-
- Many of the service interfaces defined in POSIX.1 require the use of
- aggregate data types (for example, structures) that do not map to
- FORTRAN 77 entities. POSIX.9 solves this problem by the use of data
- abstraction; by using additional subroutines to access and manipulate
- the aggregate data, the underlying data structures are hidden from the
- user. It is the responsibility of the Fortran programmer to maintain
- variables corresponding to the individual components of the actual
- implementation of the aggregate data, but the programmer does not need
- to know the details of the actual implementation of the aggregate.
- The basic model of this data abstraction is as follows:
-
- 1. The programmer calls the PPXXFFSSTTRRUUCCTTCCRREEAATTEE subroutine to "create" an
- instance of the desired aggregate data type; this subroutine
- returns a handle that the programmer subsequently uses in order to
- reference and/or manipulate the data.
-
- 2. The programmer uses additional subroutines to load values into, or
- extract values out of, the aggregate data. These subroutines are
- passed the handle of the desired aggregate and the name of the
- specific component that is to be accessed. The programmer has
- direct control over only one component at a time.
-
- 3. If an application passes information to the system, the PPXXFF_t_y_p_eSSEETT
- subroutine is called once for each member before calling the system
- procedure. Currently, only PPXXFFIINNTTSSEETT and PPXXFFSSTTRRSSEETT are
- implemented.
-
- 4. If an application needs to get information from the system, the
- PPXXFF_t_y_p_eGGEETT subroutine is called once for each member after calling
- the system procedure. Currently, only PPXXFFIINNTTGGEETT and PPXXFFIINNTTSSEETT are
- implemented.
-
- 5. When an instance of an aggregate is no longer required, a
- subroutine (PPXXFFSSTTRRUUCCTTFFRREEEE) can be called to release it.
-
- 6. When calling the actual system procedure, the calling sequence is
- equivalent to the C binding as shown in POSIX.1, except that a
- handle is used in place of the POSIX.1 structure (pointer)
- argument.
-
- CCllaassssiiffiiccaattiioonn ooff rroouuttiinneess
- The POSIX routines can be divided into several general groups as
- described below.
-
- PPrroocceessss pprriimmiittiivveess
- * Routines that create, execute, or terminate a process
-
- 1. PPXXFFFFOORRKK - Creates a process
-
- 2. PPXXFFEEXXEECCVV, PPXXFFEEXXEECCVVEE, PPXXFFEEXXEECCVVPP - Executes a new process
-
- 3. PPXXFFWWAAIITT, PPXXFFWWAAIITTPPIIDD - Obtains information about a calling process'
- child process
-
- 4. PPXXFFFFAASSTTEEXXIITT - Terminates a Fortran program
-
- 5. PPXXFFWWIIFFEEXXIITTEEDD - Determines if child process exited with eexxiitt
-
- 6. PPXXFFWWIIFFSSIIGGNNAALLEEDD - Determines if the child process terminated because
- of a signal
-
- 7. PPXXFFWWIIFFSSTTOOPPPPEEDD - Determines if a child process has stopped
-
- * Signal routines
-
- 8. PPXXFFKKIILLLL - Sends a signal to a process or group of processes
-
- 9. PPXXFFSSIIGGAADDDDSSEETT - Adds an individual signal to the specified signal
- set
-
- 10.PPXXFFSSIIGGDDEELLSSEETT - Deletes an individual signal in the specified signal
- set
-
- 11.PPXXFFSSIIGGEEMMPPTTYYSSEETT - Initializes signal set such that all signals
- defined in POSIX standard are excluded
-
- 12.PPXXFFSSIIGGFFIILLLLSSEETT - Initializes signal set such that all signals
- defined in POSIX standard are included
-
- 13.PPXXFFSSIIGGIISSMMEEMMBBEERR - Determines if the specified signal is a member of
- the specified signal set
-
- 14.PPXXFFSSIIGGPPEENNDDIINNGG - Examines pending signals
-
- 15.PPXXFFSSIIGGPPRROOCCMMAASSKK - Examines and changes blocked signals
-
- 16.PPXXFFSSIIGGSSUUSSPPEENNDD - Waits for a signal
-
- 17.PPXXFFAALLAARRMM - Schedule alarm signal
-
- 18.PPXXFFPPAAUUSSEE - Suspends process execution until signal
-
- 19.PPXXFFSSLLEEEEPP - Delays process execution
-
- PPrroocceessss eennvviirroonnmmeenntt rroouuttiinneess
- * Process identification routines
-
- 1. PPXXFFGGEETTPPIIDD - Gets the process ID
-
- 2. PPXXFFGGEETTPPPPIIDD - Gets the parent process ID
-
- * User identification routines
-
- 3. *CPXFGETEGID - Gets the effective group ID
-
- 4. PPXXFFGGEETTEEUUIIDD - Gets effective user ID
-
- 5. PPXXFFGGEETTGGIIDD - Gets the real group ID
-
- 6. PPXXFFGGEETTGGRROOUUPPSS - Gets supplementary group IDs
-
- 7. PPXXFFGGEETTLLOOGGIINN - Gets user name
-
- 8. PPXXFFGGEETTUUIIDD - Gets the real user ID
-
- 9. PPXXFFSSEETTGGIIDD - Sets group ID
-
- 10.PPXXFFSSEETTUUIIDD - Sets user ID
-
- * Process groups routines
-
- 11.PPXXFFSSEETTPPGGIIDD - Set process group ID
-
- 12.PPXXFFSSEETTSSIIDD - Creates a new session for a calling process
-
- * System identification routines
-
- 13.PPXXFFUUNNAAMMEE - Retrieves the operating system name
-
- * Time routines
-
- 14.PPXXFFTTIIMMEE - Gets system time
-
- 15.PPXXFFTTIIMMEESS - Gets process times
-
- * Environment variable processing routines
-
- 16.PPXXFFCCLLEEAARREENNVV - Clears all environment variables
-
- 17.PPXXFFGGEETTEENNVV - Returns a value for the environment name
-
- 18.PPXXFFSSEETTEENNVV - Sets environment variable pair
-
- * Terminal identification routines
-
- 19.PPXXFFCCTTEERRMMIIDD - Generates terminal pathname
-
- 20.PPXXFFIISSAATTTTYY - Determines if file descriptor corresponds
-
- * Configurable system values
-
- 21.PPXXFFSSYYSSCCOONNFF - Retrieves the value of configurable system variables
-
- FFiillee aanndd ddiirreeccttoorryy rroouuttiinneess
- 1. PPXXFFAACCCCEESSSS - Checks the accessibility of a named file
-
- 2. PPXXFFCCHHDDIIRR - Changes the current directory to a specified directory
-
- 3. PPXXFFCCHHMMOODD - Sets file modes for a named file
-
- 4. PPXXFFCCHHOOWWNN - Changes the owner and group of a file
-
- 5. PPXXFFCCHHRROOOOTT - Changes the root directory to a specified directory
-
- 6. PPXXFFCCRREEAATT - Creates a new file or rewrites an existing file
-
- 7. PPXXFFDDIIRREECCTTOORRYY - Performs directory operations
-
- 8. PPXXFFGGEETTCCWWDD - Gets the pathname of the working directory
-
- 9. PPXXFFIISSBBLLKK - Tests for block special file
-
- 10.PPXXFFIISSCCHHRR - Tests for character special file
-
- 11.PPXXFFIISSDDIIRR - Tests for directory file
-
- 12.PPXXFFIISSFFIIFFOO - Tests for pipe or a FIFO special file
-
- 13.PPXXFFIISSRREEGG - Tests for regular file
-
- 14.PPXXFFLLIINNKK - Creates a link to a file
-
- 15.PPXXFFOOPPEENN - Provides a Fortran interface to the ooppeenn(2) system call
-
- 16.PPXXFFRREENNAAMMEE - Renames a file
-
- 17.PPXXFFRRMMDDIIRR - Removes a directory entry
-
- 18.PPXXFFSSTTAATT - Retrieves the file status
-
- 19.PPXXFFUUMMAASSKK - Sets the file creation mask
-
- 20.PPXXFFUUNNLLIINNKK - Removes a directory entry
-
- 21.PPXXFFUUTTIIMMEE - Sets access and modification times of a file
-
- IInnppuutt aanndd oouuttppuutt pprriimmiittiivveess
- 1. PPXXFFFFCCNNTTLL - Provides a subset of ffccnnttll(2) functionality, except the
- third argument is always an integer
-
- DDeevviiccee aanndd ccllaassss--ssppeecciiffiicc pprroocceedduurreess ((nnoott aavvaaiillaabbllee))
- FFoorrttrraann iinnttrriinnssiiccss
- 1. PPXXFFCCOONNSSTT, PPXXFFIISSCCOONNSSTT, IIPPXXFFCCOONNSSTT - Returns the value associated with
- symbolic constants
-
- 2. PPXXFFEESSTTRRGGEETT - Accesses a single string element of a structure
- component that is an array
-
- 3. PPXXFFFFIILLEENNOO - Returns the file descriptor for a specified unit
-
- 4. PPXXFFGGEETTAARRGG - Returns a command-line argument
-
- 5. PPXXFFIINNTTGGEETT - Allows values stored in individual components of a
- structure to be extracted and used
-
- 6. PPXXFFIINNTTSSEETT - Allows components of a structure to be set or modified
-
- 7. PPXXFFLLOOCCAALLTTIIMMEE - Converts to local time
-
- 8. PPXXFFSSTTRRGGEETT - Allows values stored in individual components of a
- structure to be extracted and used
-
- 9. PPXXFFSSTTRRSSEETT - Allows values stored in individual components of a
- structure to be set
-
- 10.PPXXFFSSTTRRUUCCTTCCOOPPYY - Copies structure
-
- 11.PPXXFFSSTTRRUUCCTTCCRREEAATTEE - Creates an instance of the desired structure and
- returns a nonzero handle in the argument _j_h_a_n_d_l_e
-
- 12.PPXXFFSSTTRRUUCCTTFFRREEEE - Deletes the instance of the structure referenced by
- _j_h_a_n_d_l_e
-
- 13.PPXXFFUUCCOOMMPPAARREE - Compares unsigned integers
-
- SSyysstteemm DDaattaabbaasseess
- 1. PPXXFFGGEETTGGRRGGIIDD - Gets group information using the group ID
-
- 2. PPXXFFGGEETTGGRRNNAAMM - Gets group information using the group name
-
- 3. PPXXFFGGEETTPPWWNNAAMM - Gets password information about login name
-
- 4. PPXXFFGGEETTPPGGRRPP -Gets the process group ID
-
- 5. PPXXFFGGEETTPPWWUUIIDD - Gets password information by using user ID
-
- See the individual man pages for complete details.
-
- SSEEEE AALLSSOO
- _A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed
- version of this man page.
-