ioctl(2) ioctl(2)NAME ioctl - control device SYNOPSIS int ioctl(fildes, request, arg) int fildes, request; DESCRIPTION ioctl performs a variety of functions on character special files (devices). Section 7 of the A/UX System Administrator's Reference describes the ioctl requests that apply to the given device. RETURN VALUE If an error has occurred, a value of -1 is returned and errno is set to indicate the error. ERRORS ioctl will fail if one or more of the following are true: [EBADF] fildes is not a valid open file descriptor. [ENOTTY] fildes is not associated with a character spe- cial device. [EINVAL] request or arg is not valid. See Section 7 of the A/UX System Administrator's Reference. [EINTR] A signal was caught during the ioctl system call. SEE ALSO intro(2), fcntl(2), intro(7). termio(7). April, 1990 1