haskus-system-0.6.0.0: Haskus system programming framework

Safe HaskellNone
LanguageHaskell2010

Haskus.Arch.Linux.Handle

Description

Kernel object handle

File descriptor in original terminology

Synopsis

Documentation

newtype Handle Source #

Kernel object handle

(file descriptor in original terminology)

Constructors

Handle Word 

Instances

getHandleFlags :: MonadIO m => Handle -> Flow m '[HandleFlags, InvalidHandle] Source #

Get descriptor flags

setHandleFlags :: MonadIO m => Handle -> HandleFlags -> Flow m '[(), InvalidHandle] Source #

Set descriptor flags

sysFcntl :: (MonadIO m, Arg a) => Handle -> FcntlCommand -> a -> Flow m '[Int64, ErrorCode] Source #

Fcntl syscall