int ioctl(int fildes, int request, ...);
Refer to the device-specific reference page listed in the SEE ALSO
section for specific information on the
The following generic requests are supported as well:
The call ioctl(fildes, FIOCLEX, NULL) is equivalent to:
fcntl(fildes, F_SETFD, FD_CLOEXEC)
The call ioctl(fildes, FIONCLEX, NULL) is equivalent to:
fcntl(fildes, F_SETFD, 0)
Specifies an open file descriptor that refers to a device.
Specifies the control function to be performed based upon the device being addressed.
An optional third parameter (arg) for request-specific information. The data type depends upon the particular control request, but it is either an int or a pointer to a device-specific data structure.
The fildes parameter is not a valid open file descriptor.
The request parameter requires a data transfer to or from a buffer that arg points to, but this pointer is invalid.
A signal interrupted the call.
request or arg is not valid for this device.
Some physical I/O error has occurred.
fildes is not associated with a device driver that accepts control functions.
The request and arg parameters are valid for this device driver, but the service requested cannot be performed on this particular subdevice.
UNIX 98, with exceptions.
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.1 Documentation Build 15.