NAME | SYNOPSIS | API RESTRICTIONS | FEATURES | DESCRIPTION | RETURN VALUES | ATTRIBUTES | SEE ALSO
#include <unistd.h>int ioctl(int fildes, unsigned long request, ... /*arg */);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
MSDOSFS, NFS_CLIENT, UFS, POSIX_SOCKETS
ioctl performs the specified request on the object referred to by the open file descriptor fildes.
Upon successful completion, ioctl returns 0; otherwise it returns -1 and sets errno to indicate one of the following error conditions:
fildes is not a valid open file descriptor.
fildes is not associated with a character special device or a socket
request or arg is not valid.
The calling thread was aborted during the ioctl system call.
The ioctl function will also fail if the device driver detects an error, and errno will be set to other values depending on the device driver used.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
MT-level | MT-safe |
NAME | SYNOPSIS | API RESTRICTIONS | FEATURES | DESCRIPTION | RETURN VALUES | ATTRIBUTES | SEE ALSO