Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

POSIX* Library Procedures Summary

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 command-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.

IPXFWSTOPSIG1

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

IPXFWTERMSIG1

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.

PXFCFGETISPEED1

Returns the input baud rate from a termios structure.

PXFCFGETOSPEED1

Returns the output baud rate from a termios structure.

PXFCFSETISPEED1

Sets the input baud rate in a termios structure.

PXFCFSETOSPEED1

Sets the output baud rate in a termios structure.

PXFCHDIR

Changes the current working directory.

PXFCHMOD

Changes the ownership mode of the file.

PXFCHOWN1

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.

PXFCNTL1

Manipulates an open file descriptor.

PXFCONST

Returns the value associated with a constant.

PXFCREAT

Creates a new file or rewrites an existing file.

PXFCTERMID1

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.

PXFFORK1

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.

PXFGETEGID1

Gets the effective group ID of the current process.

PXFGETENV

Gets the setting of an environment variable.

PXFGETEUID1

Gets the effective user ID of the current process.

PXFGETGID1

Gets the real group ID of the current process.

PXFGETGRGID1

Gets group information for the specified GID.

PXFGETGRNAM1

Gets group information for the named group.

PXFGETGROUPS1

Gets supplementary group IDs.

PXFGETLOGIN

Gets the name of the user.

PXFGETPGRP1

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.

PXFGETPWNAM1

Gets password information for a specified name.

PXFGETPWUID1

Gets password information for a specified UID.

PXFGETSUBHANDLE

Returns a subroutine handle for a subroutine.

PXFGETUID1

Gets the real user ID of the current process.

PXFISATTY1

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.

PXFMKFIFO1

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.

PXFPOSIXIO1

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.

PXFSETGID1

Sets the effective group ID of the current process.

PXFSETPGID1

Sets the process group ID.

PXFSETSID1

Creates a session and sets the process group ID.

PXFSETUID1

Sets the effective user ID of the current process.

PXFSIGACTION1

Changes the action associated with a specific signal.

PXFSIGADDSET1

Adds a signal to a signal set.

PXFSIGDELSET1

Deletes a signal from a signal set.

PXFSIGEMPTYSET1

Empties a signal set.

PXFSIGFILLSET1

Fills a signal set.

PXFSIGISMEMBER

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

PXFSIGPENDING1

Examines pending signals.

PXFSIGPROCMASK1

Changes the list of currently blocked signals.

PXFSIGSUSPEND1

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.

PXFTCDRAIN1

Waits until all output written has been transmitted.

PXFTCFLOW1

Suspends the transmission or reception of data.

PXFTCFLUSH1

Discards terminal input data, output data, or both.

PXFTCGETATTR1

Reads current terminal settings.

PXFTCGETPGRP1

Gets the foreground process group ID associated with the terminal.

PXFTCSENDBREAK1

Sends a break to the terminal.

PXFTCSETATTR1

Writes new terminal settings.

PXFTCSETPGRP1

Sets the foreground process group associated with the terminal.

PXFTIME

Gets the system time.

PXFTIMES

Gets process times.

PXFTTYNAM1

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.

PXFWAIT1

Waits for a child process.

PXFWAITPID1

Waits for a specific PID.

PXFWIFEXITED1

Determines if a child process has exited.

PXFWIFSIGNALED1

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

PXFWIFSTOPPED1

Determines if a child process has stopped.

PXFWRITE

Writes to a file.

1 This routine is only available for Linux.