IOCTL(3spp)
NAME
ioctl − control device
SYNOPSIS
#include <saio/saioctl.h>
ioctl(d, request, argp)
int d;
unsigned long request;
char *argp;
DESCRIPTION
Ioctl performs a variety of functions on open descriptors. The writeups of various devices in section 4 discuss how ioctl applies to them.
RETURN VALUE
If an error has occurred, a value of −1 is returned and errno is set to indicate the error.