base-4.9.0.0: Basic libraries

Copyright(c) The University of Glasgow 2002
LicenseBSD-style (see the file libraries/base/LICENSE)
Maintainerlibraries@haskell.org
Stabilityprovisional
Portabilitynon-portable (requires POSIX)
Safe HaskellTrustworthy
LanguageHaskell2010

System.Posix.Types

Contents

Description

POSIX data types: Haskell equivalents of the types defined by the <sys/types.h> C header on a POSIX system.

Synopsis

POSIX data types

newtype CDev Source

Constructors

CDev Word64 

Instances

Bounded CDev 
Enum CDev 
Eq CDev 

Methods

(==) :: CDev -> CDev -> Bool Source

(/=) :: CDev -> CDev -> Bool Source

Integral CDev 
Num CDev 
Ord CDev 
Read CDev 
Real CDev 
Show CDev 
FiniteBits CDev 
Bits CDev 
Storable CDev 

newtype CIno Source

Constructors

CIno Word64 

Instances

Bounded CIno 
Enum CIno 
Eq CIno 

Methods

(==) :: CIno -> CIno -> Bool Source

(/=) :: CIno -> CIno -> Bool Source

Integral CIno 
Num CIno 
Ord CIno 
Read CIno 
Real CIno 
Show CIno 
FiniteBits CIno 
Bits CIno 
Storable CIno 

newtype CMode Source

Constructors

CMode Word32 

Instances

Bounded CMode 
Enum CMode 
Eq CMode 

Methods

(==) :: CMode -> CMode -> Bool Source

(/=) :: CMode -> CMode -> Bool Source

Integral CMode 
Num CMode 
Ord CMode 
Read CMode 
Real CMode 
Show CMode 
FiniteBits CMode 
Bits CMode 
Storable CMode 

newtype COff Source

Constructors

COff Int64 

Instances

Bounded COff 
Enum COff 
Eq COff 

Methods

(==) :: COff -> COff -> Bool Source

(/=) :: COff -> COff -> Bool Source

Integral COff 
Num COff 
Ord COff 
Read COff 
Real COff 
Show COff 
FiniteBits COff 
Bits COff 
Storable COff 

newtype CPid Source

Constructors

CPid Int32 

Instances

Bounded CPid 
Enum CPid 
Eq CPid 

Methods

(==) :: CPid -> CPid -> Bool Source

(/=) :: CPid -> CPid -> Bool Source

Integral CPid 
Num CPid 
Ord CPid 
Read CPid 
Real CPid 
Show CPid 
FiniteBits CPid 
Bits CPid 
Storable CPid 

newtype CSsize Source

Constructors

CSsize Int64 

Instances

Bounded CSsize 
Enum CSsize 
Eq CSsize 
Integral CSsize 
Num CSsize 
Ord CSsize 
Read CSsize 
Real CSsize 
Show CSsize 
FiniteBits CSsize 
Bits CSsize 
Storable CSsize 

newtype CGid Source

Constructors

CGid Word32 

Instances

Bounded CGid 
Enum CGid 
Eq CGid 

Methods

(==) :: CGid -> CGid -> Bool Source

(/=) :: CGid -> CGid -> Bool Source

Integral CGid 
Num CGid 
Ord CGid 
Read CGid 
Real CGid 
Show CGid 
FiniteBits CGid 
Bits CGid 
Storable CGid 

newtype CNlink Source

Constructors

CNlink Word64 

newtype CUid Source

Constructors

CUid Word32 

Instances

Bounded CUid 
Enum CUid 
Eq CUid 

Methods

(==) :: CUid -> CUid -> Bool Source

(/=) :: CUid -> CUid -> Bool Source

Integral CUid 
Num CUid 
Ord CUid 
Read CUid 
Real CUid 
Show CUid 
FiniteBits CUid 
Bits CUid 
Storable CUid 

newtype CCc Source

Constructors

CCc Word8 

Instances

Enum CCc 
Eq CCc 

Methods

(==) :: CCc -> CCc -> Bool Source

(/=) :: CCc -> CCc -> Bool Source

Num CCc 
Ord CCc 

Methods

compare :: CCc -> CCc -> Ordering Source

(<) :: CCc -> CCc -> Bool Source

(<=) :: CCc -> CCc -> Bool Source

(>) :: CCc -> CCc -> Bool Source

(>=) :: CCc -> CCc -> Bool Source

max :: CCc -> CCc -> CCc Source

min :: CCc -> CCc -> CCc Source

Read CCc 
Real CCc 
Show CCc 
Storable CCc 

newtype CSpeed Source

Constructors

CSpeed Word32 

Instances

Enum CSpeed 
Eq CSpeed 
Num CSpeed 
Ord CSpeed 
Read CSpeed 
Real CSpeed 
Show CSpeed 
Storable CSpeed 

newtype CTcflag Source

Constructors

CTcflag Word32 

Instances

Bounded CTcflag 
Enum CTcflag 
Eq CTcflag 
Integral CTcflag 
Num CTcflag 
Ord CTcflag 
Read CTcflag 
Real CTcflag 
Show CTcflag 
FiniteBits CTcflag 
Bits CTcflag 
Storable CTcflag 

newtype CRLim Source

Constructors

CRLim Word64 

Instances

Bounded CRLim 
Enum CRLim 
Eq CRLim 

Methods

(==) :: CRLim -> CRLim -> Bool Source

(/=) :: CRLim -> CRLim -> Bool Source

Integral CRLim 
Num CRLim 
Ord CRLim 
Read CRLim 
Real CRLim 
Show CRLim 
FiniteBits CRLim 
Bits CRLim 
Storable CRLim 

newtype Fd Source

Constructors

Fd CInt 

Instances

Bounded Fd 
Enum Fd 
Eq Fd 

Methods

(==) :: Fd -> Fd -> Bool Source

(/=) :: Fd -> Fd -> Bool Source

Integral Fd 

Methods

quot :: Fd -> Fd -> Fd Source

rem :: Fd -> Fd -> Fd Source

div :: Fd -> Fd -> Fd Source

mod :: Fd -> Fd -> Fd Source

quotRem :: Fd -> Fd -> (Fd, Fd) Source

divMod :: Fd -> Fd -> (Fd, Fd) Source

toInteger :: Fd -> Integer Source

Num Fd 

Methods

(+) :: Fd -> Fd -> Fd Source

(-) :: Fd -> Fd -> Fd Source

(*) :: Fd -> Fd -> Fd Source

negate :: Fd -> Fd Source

abs :: Fd -> Fd Source

signum :: Fd -> Fd Source

fromInteger :: Integer -> Fd Source

Ord Fd 

Methods

compare :: Fd -> Fd -> Ordering Source

(<) :: Fd -> Fd -> Bool Source

(<=) :: Fd -> Fd -> Bool Source

(>) :: Fd -> Fd -> Bool Source

(>=) :: Fd -> Fd -> Bool Source

max :: Fd -> Fd -> Fd Source

min :: Fd -> Fd -> Fd Source

Read Fd 
Real Fd 
Show Fd 
FiniteBits Fd 
Bits Fd 
Storable Fd 

Methods

sizeOf :: Fd -> Int Source

alignment :: Fd -> Int Source

peekElemOff :: Ptr Fd -> Int -> IO Fd Source

pokeElemOff :: Ptr Fd -> Int -> Fd -> IO () Source

peekByteOff :: Ptr b -> Int -> IO Fd Source

pokeByteOff :: Ptr b -> Int -> Fd -> IO () Source

peek :: Ptr Fd -> IO Fd Source

poke :: Ptr Fd -> Fd -> IO () Source