ioctl

ioctl — performs control functions on a file descriptor.

Syntax

ioctl (fd, request, value)

		

Arguments

fd

A file descriptor as returned from fd_open.

request

One of the functions listed below in Description.

value

A number that supplies additional information needed by the request function.

Returns

The return value of the request function.

Description

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:

TCSBRKTCXONCTCFLSHTIOCHPCLTIOCEXCLTIOXNXCL
TIOCFLUSHTIOCDRAINTIOCSCTTYTIOCMGETTIOCMBICTIOCMBIS
TIOCMSETTIOCSTARTTIOCSTOPTIOCNOTTYTIOCOUTQTIOCSPGRP
TIOCGPGRPTIOCCDIRTIOCSDIRTIOCCBRKTIOCSBRKTIOCLGET
TIOCLSETTIOCSETPGRPTIOCGETPGRPFIOCLEXFIONCLEXFIOGETOWN
FIOSETOWNFIOASYNCFIONBIOFIONReAdSIOCSHIWATSIOCGHIWAT
SIOCSLOWATSIOCGLOWATSIOCATMARKSIOCSPGRPSIOCGPGRP