pxfsysconf(3F)
PXFSYSCONF - Retrieves the value of configurable system variables
As shipped in IRIX 6.5.30. Last changed in IRIX 6.5.19.
NAME PXFSYSCONF - Retrieves the value of configurable system variables SYNOPSIS INTEGER NAME, IVAL, IERROR CALL PXFSYSCONF (name, ival, ierror) STANDARDS IEEE standard interface for FORTRAN 77 DESCRIPTION This routine is in libfortran.so which is linked by default when compiling programs with the MIPSpro 7 Fortran 90 compiler or when compiling programs with the -craylibs option to the MIPSpro F77 compiler. The PXFSYSCONF routine uses the sysconf() function to retrieve the current value for the name configurable system variable. All arguments must be of default kind unless documented otherwise. On IRIX systems, the default kind is KIND=4. This routine has the following arguments: name An input integer variable or array element containing the integer value of a symbolic constant for one of the following configurable system variables defined in POSIX Std. 1003.1, section 4.8.1.2: ARG_MAX CHILD_MAX CLK_TCK NGROUPS_MAX OPEN_MAX STREAM_MAX TZNAME_MAX _POSIX_JOB_CONTROL _POSIX_SAVED_IDS _POSIX_VERSION The integer value for each of these symbolic constants is retrieved through the use of PXFCONST or IPXFCONST. The integer values may be combined through the use of a bitwise inclusive OR function. ival An output integer variable that will contain the value of the system variable name. ierror An output integer variable that contains zero if PXFSYSCONF was successful or nonzero if name is an invalid system variable. NOTES The PXF_DEFINITIONS module can be used by Fortran 90 users to enable caller-callee interface checking. EXAMPLES In this example, PXFSYSCONF will retrieve the value of the CLK_TCK system variable. program test integer ival, ierr, iclktck ival = 0 iclktck = 0 call pxfconst ('CLK_TCK',iclktck,ierr) if (ierr.ne.0) then print *,'FAIL: error from pxfconst = ',ierr goto 9999 endif call pxfsysconf (iclktck, ival, ierr) if (ierr.ne.0) then print *,'FAIL: error from pxfsysconf = ',ierr else print *,'PASS: error from pxfsysconf = ',ierr endif print *, 'CLK_TCK=',ival 9999 continue end SEE ALSO PXFCONST(3F)