Intel® Fortran Compiler 16.0 User and Reference Guide

POSIX* Library Procedures

The following table lists library procedures for POSIX*.

Programs that use POSIX procedures must access the appropriate libraries with USE IFPOSIX. The IPX nnnn routines are functions; the PXF nnnn routines are subroutines, except for the routines named PXFIS nnnn and PXFWIF nnnn.

Name

Description

IPXFARGC

Returns the index of the last commans-line argument.

IPXFCONST

Returns the value associated with a constant defined in the C POSIX standard.

IPXFLENTRIM

Returns the index of the last non-blank character in an input string.

IPXFWEXITSTATUS1

Returns the exit code of a child process.

IPXFWSTOPSIG 1

Returns the number of the signal that caused a child process to stop.

IPXFWTERMSIG 1

Returns the number of the signal that caused a child process to terminate.

PXF(type)GET

Gets the value stored in a component (or field) of a structure.

PXF(type)SET

Sets the value of a component (or field) of a structure.

PXFA(type)GET

Gets the array values stored in a component (or field) of a structure.

PXFA(type)SET

Sets the value of an array component (or field) of a structure.

PXFACCESS

Determines the accessibility of a file.

PXFALARM

Schedules an alarm.

PXFCALLSUBHANDLE

Calls the associated subroutine.

PXFCFGETISPEED 1

Returns the input baud rate from a termios structure.

PXFCFGETOSPEED 1

Returns the output baud rate from a termios structure.

PXFCFSETISPEED 1

Sets the input baud rate in a termios structure.

PXFCFSETOSPEED 1

Sets the output baud rate in a termios structure.

PXFCHDIR

Changes the current working directory.

PXFCHMOD

Changes the ownership mode of the file.

PXFCHOWN 1

Changes the owner and group of a file.

PXFCLEARENV

Clears the process environment.

PXFCLOSE

Closes the file associated with the descriptor.

PXFCLOSEDIR

Closes the directory stream.

PXFCNTL 1

Manipulates an open file descriptor.

PXFCONST

Returns the value associated with a constant.

PXFCREAT

Creates a new file or rewrites an existing file.

PXFCTERMID 1

Generates a terminal pathname.

PXFDUP, PXFDUP2

Duplicates an existing file descriptor.

PXFE(type)GET

Gets the value stored in an array element component (or field) of a structure.

PXFE(type)SET

Sets the value of an array element component (or field) of a structure.

PXFEXECV, PXFEXECVE, PXFEXECVP

Executes a new process by passing command-line arguments.

PXFEXIT, PXFFASTEXIT

Exits from a process.

PXFFDOPEN

Opens an external unit.

PXFFFLUSH

Flushes a file directly to disk.

PXFFGETC

Reads a character from a file.

PXFFILENO

Returns the file descriptor associated with a specified unit.

PXFFORK 1

Creates a child process that differs from the parent process only in its PID.

PXFFPATHCONF

Gets the value for a configuration option of an opened file.

PXFFPUTC

Writes a character to a file.

PXFFSEEK

Modifies a file position.

PXFFSTAT

Gets a file's status information.

PXFFTELL

Returns the relative position in bytes from the beginning of the file.

PXFGETARG

Gets the specified command-line argument.

PXFGETC

Reads a character from standard input unit 5.

PXFGETCWD

Returns the path of the current working directory.

PXFGETEGID 1

Gets the effective group ID of the current process.

PXFGETENV

Gets the setting of an environment variable.

PXFGETEUID 1

Gets the effective user ID of the current process.

PXFGETGID 1

Gets the real group ID of the current process.

PXFGETGRGID 1

Gets group information for the specified GID.

PXFGETGRNAM 1

Gets group information for the named group.

PXFGETGROUPS 1

Gets supplementary group IDs.

PXFGETLOGIN

Gets the name of the user.

PXFGETPGRP 1

Gets the process group ID of the calling process.

PXFGETPID

Gets the process ID of the calling process.

PXFGETPPID

Gets the process ID of the parent of the calling process.

PXFGETPWNAM 1

Gets password information for a specified name.

PXFGETPWUID 1

Gets password information for a specified UID.

PXFGETSUBHANDLE

Returns a subroutine handle for a subroutine.

PXFGETUID 1

Gets the real user ID of the current process.

PXFISATTY 1

Tests whether a file descriptor is connected to a terminal.

PXFISBLK

Tests for a block special file.

PXFISCHR

Tests for a character file.

PXFISCONST

Tests whether a string is a valid constant name.

PXFISDIR

Tests whether a file is a directory.

PXFISFIFO

Tests whether a file is a special FIFO file.

PXFISREG

Tests whether a file is a regular file.

PXFKILL

Sends a signal to a specified process.

PXFLINK1

Creates a link to a file or directory.

PXFLOCALTIME

Converts a given elapsed time in seconds to local time.

PXFLSEEK

Positions a file a specified distance in bytes.

PXFMKDIR

Creates a new directory.

PXFMKFIFO 1

Creates a new FIFO.

PXFOPEN

Opens or creates a file.

PXFOPENDIR

Opens a directory and associates a stream with it.

PXFPATHCONF

Gets the value for a configuration option of an opened file.

PXFPAUSE

Suspends process execution.

PXFPIPE1

Creates a communications pipe between two processes.

PXFPOSIXIO 1

Sets the current value of the POSIX I/O flag.

PXFPUTC

Outputs a character to logical unit 6 (stdout).

PXFREAD

Reads from a file.

PXFREADDIR

Reads the current directory entry.

PXFRENAME

Changes the name of a file.

PXFREWINDDIR

Resets the position of the stream to the beginning of the directory.

PXFRMDIR

Removes a directory.

PXFSETENV

Adds a new environment variable or sets the value of an environment variable.

PXFSETGID 1

Sets the effective group ID of the current process.

PXFSETPGID 1

Sets the process group ID.

PXFSETSID 1

Creates a session and sets the process group ID.

PXFSETUID 1

Sets the effective user ID of the current process.

PXFSIGACTION1

Changes the action associated with a specific signal.

PXFSIGADDSET 1

Adds a signal to a signal set.

PXFSIGDELSET 1

Deletes a signal from a signal set.

PXFSIGEMPTYSET 1

Empties a signal set.

PXFSIGFILLSET 1

Fills a signal set.

PXFSIGISMEMBER

Tests whether a signal is a member of a signal set.

PXFSIGPENDING 1

Examines pending signals.

PXFSIGPROCMASK 1

Changes the list of currently blocked signals.

PXFSIGSUSPEND 1

Suspends the process until a signal is received.

PXFSLEEP

Forces the process to sleep.

PXFSTAT

Gets a file's status information.

PXFSTRUCTCOPY

Copies the contents of one structure to another.

PXFSTRUCTCREATE

Creates an instance of the specified structure.

PXFSTRUCTFREE

Deletes the instance of a structure.

PXFSYSCONF

Gets values for system limits or options.

PXFTCDRAIN 1

Waits until all output written has been transmitted.

PXFTCFLOW 1

Suspends the transmission or reception of data.

PXFTCFLUSH 1

Discards terminal input data, output data, or both.

PXFTCGETATTR 1

Reads current terminal settings.

PXFTCGETPGRP 1

Gets the foreground process group ID associated with the terminal.

PXFTCSENDBREAK 1

Sends a break to the terminal.

PXFTCSETATTR 1

Writes new terminal settings.

PXFTCSETPGRP 1

Sets the foreground process group associated with the terminal.

PXFTIME

Gets the system time.

PXFTIMES

Gets process times.

PXFTTYNAM 1

Gets the terminal pathname.

PXFUCOMPARE

Compares two unsigned integers.

PXFUMASK

Sets a new file creation mask and gets the previous one.

PXFUNAME

Gets the operation system name.

PXFUNLINK

Removes a directory entry.

PXFUTIME

Sets file access and modification times.

PXFWAIT 1

Waits for a child process.

PXFWAITPID 1

Waits for a specific PID.

PXFWIFEXITED 1

Determines if a child process has exited.

PXFWIFSIGNALED 1

Determines if a child process has exited because of a signal.

PXFWIFSTOPPED 1

Determines if a child process has stopped.

PXFWRITE

Writes to a file.

1 L*X, M*X