D Classified list of routines

 D.1 Process Environment
 D.2 File System Support
 D.3 Language Specific Services for C (FORTRAN versions)

D.1 Process Environment

PSX_CUSERID ( USER, STATUS )

Get the username
PSX_GETEGID ( GID, STATUS )

Gets the effective group ID
PSX_GETENV ( NAME, TRANS, STATUS )

Translate an environment variable
PSX_GETEUID ( UID, STATUS )

Gets the effective user ID
PSX_GETGID ( GID, STATUS )

Gets the real group ID
PSX_GETPID ( PID, STATUS )

Gets the process ID
PSX_GETPPID ( PID, STATUS )

Gets the process ID of the parent process
PSX_GETUID ( UID, STATUS )

Gets the real user ID
PSX_ISATTY ( FILDSC, ISTTY, STATUS )

Determine if a file is a terminal
PSX_PUTENV ( NAME, VALUE, STATUS )

Set a new environment variable value
PSX_TTYNAME ( FILDSC, TNAME, STATUS )

Get the name of the terminal
PSX_UNAME ( SYSNAME, NODENAME, RELEASE, VERSION, MACHINE,

STATUS )
Gets information about the host computer system

D.2 File System Support

PSX_ACCESS ( NAME, MODE, ACCESSIBLE, REASON, STATUS )

Check file accessibility
PSX_CHDIR ( DIR, STATUS )

Change working directory
PSX_GETCWD ( CWD, STATUS )

Get the current working directory
PSX_REMOVE ( PATH, STATUS )

Remove a file or empty directory
PSX_RENAME ( INFIL, OUTFIL, STATUS )

Rename a file
PSX_STAT ( PATH, ITEM, VALUE, STATUS )

Return an item of information about a file

D.3 Language Specific Services for C (FORTRAN versions)

D.3.1 Pseudo-Random Numbers
PSX_RAND ( INUM, MAXNUM, FNUM, STATUS )

Generate a random number
PSX_SRAND ( SEED, STATUS )

Set the seed for the random number generator
D.3.2 Memory Management
PSX_CALLOC ( NMEMB, TYPE, PNTR, STATUS )

Allocate space for several objects of specified type
PSX_FREE ( PNTR, STATUS )

Free virtual memory
PSX_MALLOC ( SIZE, PNTR, STATUS )

Allocate virtual memory
PSX_REALLOC ( SIZE, PNTR, STATUS )

Change the size of an allocated region of virtual memory
D.3.3 Date and Time
PSX_ASCTIME ( TSTRCT, STRING, STATUS )

Convert a time structure to a character string
PSX_CTIME ( NTICKS, STRING, STATUS )

Convert the calendar time to a character string
PSX_GMTIME

( NTICKS, SECS, MINS, HOURS, DAY, MONTH, YEAR, WDAY, YDAY, TSTRCT, STATUS )
Convert the value returned by PSX_TIME to individual GMT values
PSX_LOCALTIME

( NTICKS, SECS, MINS, HOURS, DAY, MONTH, YEAR, WDAY, YDAY, ISDST, TSTRCT, STATUS )
Convert the value returned by PSX_TIME to individual local time values
PSX_TIME ( NTICKS, STATUS )

Get the current calendar time