ioctl
ioctl — performs control functions on a file descriptor.
ioctl (fd, request, value)
fdA file descriptor as returned from fd_open.
requestOne of the functions listed below in Description.
valueA number that supplies additional information needed by the
request function.
The return value of the request function.
This function performs an ioctl call (C library
ioctl subroutine) for the given
fd file descriptor and
request. The Gamma ioctl
function currently only supports requests that take
numeric arguments, ie. value must be a number. You
may make operating-system specific ioctl calls by
giving a numeric value for the request
argument.
The currently supported requests are:
TCSBRK | TCXONC | TCFLSH | TIOCHPCL | TIOCEXCL | TIOXNXCL |
TIOCFLUSH | TIOCDRAIN | TIOCSCTTY | TIOCMGET | TIOCMBIC | TIOCMBIS |
TIOCMSET | TIOCSTART | TIOCSTOP | TIOCNOTTY | TIOCOUTQ | TIOCSPGRP |
TIOCGPGRP | TIOCCDIR | TIOCSDIR | TIOCCBRK | TIOCSBRK | TIOCLGET |
TIOCLSET | TIOCSETPGRP | TIOCGETPGRP | FIOCLEX | FIONCLEX | FIOGETOWN |
FIOSETOWN | FIOASYNC | FIONBIO | FIONReAd | SIOCSHIWAT | SIOCGHIWAT |
SIOCSLOWAT | SIOCGLOWAT | SIOCATMARK | SIOCSPGRP | SIOCGPGRP |