aux_close(3) CLIX aux_close(3)
NAME
aux_close - Closes a serial port
LIBRARY
Intergraph Device Library (libix.a)
SYNOPSIS
#include <sys/xio/xerr.h>
int aux_close(
int port );
PARAMETERS
port An integer representing a port
DESCRIPTION
The aux_close() function cancels outstanding I/O on the specified serial
port and closes the port. The port must have been opened by aux_open().
Outstanding writes cannot be canceled.
RETURN VALUES
Upon successful completion, a value of 0 is returned. Otherwise, one of
the following failure codes is returned.
ERRORS
The aux_close() function will fail if one of the following is true:
[XIO_FAILURE]
The system does not contain the driver needed to support this
request.
[AUX_PORT_NOT_OPEN]
The specified port is not open by the calling process.
RELATED INFORMATION
Functions: aux_open(3), aux_read(3), aux_rawrd(3), aux_modem(3).
Files: xaux(7)
2/94 - Intergraph Corporation 1