Copyright | (c) The University of Glasgow 2002 |
---|---|
License | BSD-style (see the file libraries/base/LICENSE) |
Maintainer | libraries@haskell.org |
Stability | provisional |
Portability | non-portable (requires POSIX) |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
POSIX data types: Haskell equivalents of the types defined by the
<sys/types.h>
C header on a POSIX system.
- newtype CDev = CDev Word64
- newtype CIno = CIno Word64
- newtype CMode = CMode Word32
- newtype COff = COff Int64
- newtype CPid = CPid Int32
- newtype CSsize = CSsize Int64
- newtype CGid = CGid Word32
- newtype CNlink = CNlink Word64
- newtype CUid = CUid Word32
- newtype CCc = CCc Word8
- newtype CSpeed = CSpeed Word32
- newtype CTcflag = CTcflag Word32
- newtype CRLim = CRLim Word64
- newtype Fd = Fd CInt
- type LinkCount = CNlink
- type UserID = CUid
- type GroupID = CGid
- type ByteCount = CSize
- type ClockTick = CClock
- type EpochTime = CTime
- type FileOffset = COff
- type ProcessID = CPid
- type ProcessGroupID = CPid
- type DeviceID = CDev
- type FileID = CIno
- type FileMode = CMode
- type Limit = CLong
POSIX data types
Bounded CDev | |
Enum CDev | |
Eq CDev | |
Integral CDev | |
Num CDev | |
Ord CDev | |
Read CDev | |
Real CDev | |
toRational :: CDev -> Rational Source | |
Show CDev | |
FiniteBits CDev | |
finiteBitSize :: CDev -> Int Source countLeadingZeros :: CDev -> Int Source countTrailingZeros :: CDev -> Int Source | |
Bits CDev | |
(.&.) :: CDev -> CDev -> CDev Source (.|.) :: CDev -> CDev -> CDev Source xor :: CDev -> CDev -> CDev Source complement :: CDev -> CDev Source shift :: CDev -> Int -> CDev Source rotate :: CDev -> Int -> CDev Source setBit :: CDev -> Int -> CDev Source clearBit :: CDev -> Int -> CDev Source complementBit :: CDev -> Int -> CDev Source testBit :: CDev -> Int -> Bool Source bitSizeMaybe :: CDev -> Maybe Int Source isSigned :: CDev -> Bool Source shiftL :: CDev -> Int -> CDev Source unsafeShiftL :: CDev -> Int -> CDev Source shiftR :: CDev -> Int -> CDev Source unsafeShiftR :: CDev -> Int -> CDev Source rotateL :: CDev -> Int -> CDev Source | |
Storable CDev | |
Bounded CIno | |
Enum CIno | |
Eq CIno | |
Integral CIno | |
Num CIno | |
Ord CIno | |
Read CIno | |
Real CIno | |
toRational :: CIno -> Rational Source | |
Show CIno | |
FiniteBits CIno | |
finiteBitSize :: CIno -> Int Source countLeadingZeros :: CIno -> Int Source countTrailingZeros :: CIno -> Int Source | |
Bits CIno | |
(.&.) :: CIno -> CIno -> CIno Source (.|.) :: CIno -> CIno -> CIno Source xor :: CIno -> CIno -> CIno Source complement :: CIno -> CIno Source shift :: CIno -> Int -> CIno Source rotate :: CIno -> Int -> CIno Source setBit :: CIno -> Int -> CIno Source clearBit :: CIno -> Int -> CIno Source complementBit :: CIno -> Int -> CIno Source testBit :: CIno -> Int -> Bool Source bitSizeMaybe :: CIno -> Maybe Int Source isSigned :: CIno -> Bool Source shiftL :: CIno -> Int -> CIno Source unsafeShiftL :: CIno -> Int -> CIno Source shiftR :: CIno -> Int -> CIno Source unsafeShiftR :: CIno -> Int -> CIno Source rotateL :: CIno -> Int -> CIno Source | |
Storable CIno | |
Bounded CMode | |
Enum CMode | |
Eq CMode | |
Integral CMode | |
Num CMode | |
Ord CMode | |
Read CMode | |
Real CMode | |
toRational :: CMode -> Rational Source | |
Show CMode | |
FiniteBits CMode | |
finiteBitSize :: CMode -> Int Source countLeadingZeros :: CMode -> Int Source countTrailingZeros :: CMode -> Int Source | |
Bits CMode | |
(.&.) :: CMode -> CMode -> CMode Source (.|.) :: CMode -> CMode -> CMode Source xor :: CMode -> CMode -> CMode Source complement :: CMode -> CMode Source shift :: CMode -> Int -> CMode Source rotate :: CMode -> Int -> CMode Source setBit :: CMode -> Int -> CMode Source clearBit :: CMode -> Int -> CMode Source complementBit :: CMode -> Int -> CMode Source testBit :: CMode -> Int -> Bool Source bitSizeMaybe :: CMode -> Maybe Int Source bitSize :: CMode -> Int Source isSigned :: CMode -> Bool Source shiftL :: CMode -> Int -> CMode Source unsafeShiftL :: CMode -> Int -> CMode Source shiftR :: CMode -> Int -> CMode Source unsafeShiftR :: CMode -> Int -> CMode Source rotateL :: CMode -> Int -> CMode Source | |
Storable CMode | |
Bounded COff | |
Enum COff | |
Eq COff | |
Integral COff | |
Num COff | |
Ord COff | |
Read COff | |
Real COff | |
toRational :: COff -> Rational Source | |
Show COff | |
FiniteBits COff | |
finiteBitSize :: COff -> Int Source countLeadingZeros :: COff -> Int Source countTrailingZeros :: COff -> Int Source | |
Bits COff | |
(.&.) :: COff -> COff -> COff Source (.|.) :: COff -> COff -> COff Source xor :: COff -> COff -> COff Source complement :: COff -> COff Source shift :: COff -> Int -> COff Source rotate :: COff -> Int -> COff Source setBit :: COff -> Int -> COff Source clearBit :: COff -> Int -> COff Source complementBit :: COff -> Int -> COff Source testBit :: COff -> Int -> Bool Source bitSizeMaybe :: COff -> Maybe Int Source isSigned :: COff -> Bool Source shiftL :: COff -> Int -> COff Source unsafeShiftL :: COff -> Int -> COff Source shiftR :: COff -> Int -> COff Source unsafeShiftR :: COff -> Int -> COff Source rotateL :: COff -> Int -> COff Source | |
Storable COff | |
Bounded CPid | |
Enum CPid | |
Eq CPid | |
Integral CPid | |
Num CPid | |
Ord CPid | |
Read CPid | |
Real CPid | |
toRational :: CPid -> Rational Source | |
Show CPid | |
FiniteBits CPid | |
finiteBitSize :: CPid -> Int Source countLeadingZeros :: CPid -> Int Source countTrailingZeros :: CPid -> Int Source | |
Bits CPid | |
(.&.) :: CPid -> CPid -> CPid Source (.|.) :: CPid -> CPid -> CPid Source xor :: CPid -> CPid -> CPid Source complement :: CPid -> CPid Source shift :: CPid -> Int -> CPid Source rotate :: CPid -> Int -> CPid Source setBit :: CPid -> Int -> CPid Source clearBit :: CPid -> Int -> CPid Source complementBit :: CPid -> Int -> CPid Source testBit :: CPid -> Int -> Bool Source bitSizeMaybe :: CPid -> Maybe Int Source isSigned :: CPid -> Bool Source shiftL :: CPid -> Int -> CPid Source unsafeShiftL :: CPid -> Int -> CPid Source shiftR :: CPid -> Int -> CPid Source unsafeShiftR :: CPid -> Int -> CPid Source rotateL :: CPid -> Int -> CPid Source | |
Storable CPid | |
Bounded CGid | |
Enum CGid | |
Eq CGid | |
Integral CGid | |
Num CGid | |
Ord CGid | |
Read CGid | |
Real CGid | |
toRational :: CGid -> Rational Source | |
Show CGid | |
FiniteBits CGid | |
finiteBitSize :: CGid -> Int Source countLeadingZeros :: CGid -> Int Source countTrailingZeros :: CGid -> Int Source | |
Bits CGid | |
(.&.) :: CGid -> CGid -> CGid Source (.|.) :: CGid -> CGid -> CGid Source xor :: CGid -> CGid -> CGid Source complement :: CGid -> CGid Source shift :: CGid -> Int -> CGid Source rotate :: CGid -> Int -> CGid Source setBit :: CGid -> Int -> CGid Source clearBit :: CGid -> Int -> CGid Source complementBit :: CGid -> Int -> CGid Source testBit :: CGid -> Int -> Bool Source bitSizeMaybe :: CGid -> Maybe Int Source isSigned :: CGid -> Bool Source shiftL :: CGid -> Int -> CGid Source unsafeShiftL :: CGid -> Int -> CGid Source shiftR :: CGid -> Int -> CGid Source unsafeShiftR :: CGid -> Int -> CGid Source rotateL :: CGid -> Int -> CGid Source | |
Storable CGid | |
Bounded CUid | |
Enum CUid | |
Eq CUid | |
Integral CUid | |
Num CUid | |
Ord CUid | |
Read CUid | |
Real CUid | |
toRational :: CUid -> Rational Source | |
Show CUid | |
FiniteBits CUid | |
finiteBitSize :: CUid -> Int Source countLeadingZeros :: CUid -> Int Source countTrailingZeros :: CUid -> Int Source | |
Bits CUid | |
(.&.) :: CUid -> CUid -> CUid Source (.|.) :: CUid -> CUid -> CUid Source xor :: CUid -> CUid -> CUid Source complement :: CUid -> CUid Source shift :: CUid -> Int -> CUid Source rotate :: CUid -> Int -> CUid Source setBit :: CUid -> Int -> CUid Source clearBit :: CUid -> Int -> CUid Source complementBit :: CUid -> Int -> CUid Source testBit :: CUid -> Int -> Bool Source bitSizeMaybe :: CUid -> Maybe Int Source isSigned :: CUid -> Bool Source shiftL :: CUid -> Int -> CUid Source unsafeShiftL :: CUid -> Int -> CUid Source shiftR :: CUid -> Int -> CUid Source unsafeShiftR :: CUid -> Int -> CUid Source rotateL :: CUid -> Int -> CUid Source | |
Storable CUid | |
Enum CCc | |
Eq CCc | |
Num CCc | |
Ord CCc | |
Read CCc | |
Real CCc | |
toRational :: CCc -> Rational Source | |
Show CCc | |
Storable CCc | |
Enum CSpeed | |
succ :: CSpeed -> CSpeed Source pred :: CSpeed -> CSpeed Source toEnum :: Int -> CSpeed Source fromEnum :: CSpeed -> Int Source enumFrom :: CSpeed -> [CSpeed] Source enumFromThen :: CSpeed -> CSpeed -> [CSpeed] Source enumFromTo :: CSpeed -> CSpeed -> [CSpeed] Source enumFromThenTo :: CSpeed -> CSpeed -> CSpeed -> [CSpeed] Source | |
Eq CSpeed | |
Num CSpeed | |
Ord CSpeed | |
Read CSpeed | |
Real CSpeed | |
toRational :: CSpeed -> Rational Source | |
Show CSpeed | |
Storable CSpeed | |
sizeOf :: CSpeed -> Int Source alignment :: CSpeed -> Int Source peekElemOff :: Ptr CSpeed -> Int -> IO CSpeed Source pokeElemOff :: Ptr CSpeed -> Int -> CSpeed -> IO () Source peekByteOff :: Ptr b -> Int -> IO CSpeed Source pokeByteOff :: Ptr b -> Int -> CSpeed -> IO () Source |
Bounded CRLim | |
Enum CRLim | |
Eq CRLim | |
Integral CRLim | |
Num CRLim | |
Ord CRLim | |
Read CRLim | |
Real CRLim | |
toRational :: CRLim -> Rational Source | |
Show CRLim | |
FiniteBits CRLim | |
finiteBitSize :: CRLim -> Int Source countLeadingZeros :: CRLim -> Int Source countTrailingZeros :: CRLim -> Int Source | |
Bits CRLim | |
(.&.) :: CRLim -> CRLim -> CRLim Source (.|.) :: CRLim -> CRLim -> CRLim Source xor :: CRLim -> CRLim -> CRLim Source complement :: CRLim -> CRLim Source shift :: CRLim -> Int -> CRLim Source rotate :: CRLim -> Int -> CRLim Source setBit :: CRLim -> Int -> CRLim Source clearBit :: CRLim -> Int -> CRLim Source complementBit :: CRLim -> Int -> CRLim Source testBit :: CRLim -> Int -> Bool Source bitSizeMaybe :: CRLim -> Maybe Int Source bitSize :: CRLim -> Int Source isSigned :: CRLim -> Bool Source shiftL :: CRLim -> Int -> CRLim Source unsafeShiftL :: CRLim -> Int -> CRLim Source shiftR :: CRLim -> Int -> CRLim Source unsafeShiftR :: CRLim -> Int -> CRLim Source rotateL :: CRLim -> Int -> CRLim Source | |
Storable CRLim | |
Bounded Fd | |
Enum Fd | |
Eq Fd | |
Integral Fd | |
Num Fd | |
Ord Fd | |
Read Fd | |
Real Fd | |
toRational :: Fd -> Rational Source | |
Show Fd | |
FiniteBits Fd | |
finiteBitSize :: Fd -> Int Source countLeadingZeros :: Fd -> Int Source countTrailingZeros :: Fd -> Int Source | |
Bits Fd | |
(.&.) :: Fd -> Fd -> Fd Source (.|.) :: Fd -> Fd -> Fd Source complement :: Fd -> Fd Source shift :: Fd -> Int -> Fd Source rotate :: Fd -> Int -> Fd Source setBit :: Fd -> Int -> Fd Source clearBit :: Fd -> Int -> Fd Source complementBit :: Fd -> Int -> Fd Source testBit :: Fd -> Int -> Bool Source bitSizeMaybe :: Fd -> Maybe Int Source shiftL :: Fd -> Int -> Fd Source unsafeShiftL :: Fd -> Int -> Fd Source shiftR :: Fd -> Int -> Fd Source unsafeShiftR :: Fd -> Int -> Fd Source rotateL :: Fd -> Int -> Fd Source | |
Storable Fd | |
type FileOffset = COff Source
type ProcessGroupID = CPid Source