ioctl

Gamma: Version 4.0
Prev |  | Next

# `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 `request`s 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 `request`s 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` |

Prev | Home | Next
`fileno` | Up | `open`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.