ioctl-0.0.1: Type-safe I/O control package

PortabilityPOSIX
Stabilitynone

System.Posix.IOCtl

Description

The module wrapps the ioctl system call.

Synopsis

Documentation

class Storable d => IOControl req d | req -> d whereSource

Combines the request with data.

Methods

ioctlReqSource

Arguments

:: req

The request. Should be lazy in argument.

-> CInt

The request code.

Converts request to integer

ioctlSource

Arguments

:: IOControl req d 
=> Fd

The file descriptor

-> req

The request

-> d

The data

-> IO d

The data after the call

Calls a ioctl reading the structure after the call

ioctl_Source

Arguments

:: IOControl req d 
=> Fd

The file descriptor

-> req

The request

-> d

The data

-> IO () 

Call a ioctl ignoring the result

ioctl'Source

Arguments

:: IOControl req d 
=> Fd

The file descriptor

-> req

The request

-> IO d

The data

Call a ioctl with uninitialized data