pxfcfgetospeed

Date:

10-20-2011

NAME

PXFCFGETOSPEED, PXFCFSETOSPEED, PXFCFGETISPEED, PXFCFSETISPEED - Gets and sets the baud rates in the termios structure

SYNOPSIS

INTEGER jtermios, iospeed, ierror
CALL PXFCFGETOSPEED(jtermios, iospeed, ierror)

INTEGER jtermios, iospeed, ierror
CALL PXFCFSETOSPEED(jtermios, iospeed, ierror)

INTEGER jtermios, iospeed, ierror
CALL PXFCFGETISPEED(jtermios, iospeed, ierror)

INTEGER jtermios, iospeed, ierror
CALL PXFCFSETISPEED(jtermios, iospeed, ierror)

IMPLEMENTATION

Cray Linux Environment (CLE)

Standards

IEEE Std 1003.9-1992 standard interface for FORTRAN 77

Description

The PXFCFGETOSPEED routine accesses the cfgetospeed function to get the value of the output baud rate from the termios structure.

The PXFCFSETOSPEED routine accesses the cfsetospeed function to set the value of the output baud rate in the termios structure.

The PXFCFGETISPEED routine accesses the cfgetispeed function to get the value of the input baud rate from the termios structure.

The PXFCFSETISPEED routine accesses the cfsetispeed function to set the value of the input baud rate in the termios structure.

All arguments must be of default kind unless documented otherwise. Default ind is KIND=4 for integer, real, complex, and logical arguments.

The arguments to these baud rate interface routines are:

jtermios

Default integer input variable containing a handle created by PXFSTRUCTCREATE(’termios‘,…).

ispeed

Default input integer variable for a baud rate.

iospeed

Default output integer variable specifying a baud rate.

ierror

Default integer output variable that contains zero if the operation was successful or nonzero if the operation was not successful.

Symbolic names for the baud rates can be obtained through calls to PXFCONST.

PXFCFSETISPEED and PXFCFSETOSPEED return 0 if successful; otherwise, they return -1. No errors are returned for bad baud rates.

SEE ALSO

PXFTCSETATTR(3F), PXFSTRUCTCREATE(3F), termios(3t)