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 |
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
- newtype CDev = CDev Word32
- newtype CIno = CIno Word32
- newtype CMode = CMode Word16
- newtype COff = COff Int64
- newtype CPid = CPid Int32
- newtype CSsize = CSsize Int64
- newtype CGid = CGid Word32
- newtype CNlink = CNlink Word16
- newtype CUid = CUid Word32
- newtype CCc = CCc Word8
- newtype CSpeed = CSpeed Word32
- newtype CTcflag = CTcflag Word32
- newtype CRLim = CRLim Int64
- 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
newtype CDev
Instances
Bounded CDev | |
Enum CDev | |
Eq CDev | |
Integral CDev | |
Num CDev | |
Ord CDev | |
Read CDev | |
Real CDev | |
Methods toRational :: CDev -> Rational | |
Show CDev | |
FiniteBits CDev | |
Methods finiteBitSize :: CDev -> Int countLeadingZeros :: CDev -> Int countTrailingZeros :: CDev -> Int | |
Bits CDev | |
Storable CDev | |
newtype CIno
Instances
Bounded CIno | |
Enum CIno | |
Eq CIno | |
Integral CIno | |
Num CIno | |
Ord CIno | |
Read CIno | |
Real CIno | |
Methods toRational :: CIno -> Rational | |
Show CIno | |
FiniteBits CIno | |
Methods finiteBitSize :: CIno -> Int countLeadingZeros :: CIno -> Int countTrailingZeros :: CIno -> Int | |
Bits CIno | |
Storable CIno | |
newtype CMode
Instances
Bounded CMode | |
Enum CMode | |
Eq CMode | |
Integral CMode | |
Num CMode | |
Ord CMode | |
Read CMode | |
Real CMode | |
Methods toRational :: CMode -> Rational | |
Show CMode | |
FiniteBits CMode | |
Methods finiteBitSize :: CMode -> Int countLeadingZeros :: CMode -> Int countTrailingZeros :: CMode -> Int | |
Bits CMode | |
Methods (.&.) :: CMode -> CMode -> CMode (.|.) :: CMode -> CMode -> CMode xor :: CMode -> CMode -> CMode complement :: CMode -> CMode shift :: CMode -> Int -> CMode rotate :: CMode -> Int -> CMode setBit :: CMode -> Int -> CMode clearBit :: CMode -> Int -> CMode complementBit :: CMode -> Int -> CMode testBit :: CMode -> Int -> Bool bitSizeMaybe :: CMode -> Maybe Int shiftL :: CMode -> Int -> CMode unsafeShiftL :: CMode -> Int -> CMode shiftR :: CMode -> Int -> CMode unsafeShiftR :: CMode -> Int -> CMode rotateL :: CMode -> Int -> CMode | |
Storable CMode | |
newtype COff
Instances
Bounded COff | |
Enum COff | |
Eq COff | |
Integral COff | |
Num COff | |
Ord COff | |
Read COff | |
Real COff | |
Methods toRational :: COff -> Rational | |
Show COff | |
FiniteBits COff | |
Methods finiteBitSize :: COff -> Int countLeadingZeros :: COff -> Int countTrailingZeros :: COff -> Int | |
Bits COff | |
Storable COff | |
newtype CPid
Instances
Bounded CPid | |
Enum CPid | |
Eq CPid | |
Integral CPid | |
Num CPid | |
Ord CPid | |
Read CPid | |
Real CPid | |
Methods toRational :: CPid -> Rational | |
Show CPid | |
FiniteBits CPid | |
Methods finiteBitSize :: CPid -> Int countLeadingZeros :: CPid -> Int countTrailingZeros :: CPid -> Int | |
Bits CPid | |
Storable CPid | |
newtype CSsize
Instances
Bounded CSsize | |
Enum CSsize | |
Eq CSsize | |
Integral CSsize | |
Num CSsize | |
Ord CSsize | |
Read CSsize | |
Real CSsize | |
Methods toRational :: CSsize -> Rational | |
Show CSsize | |
FiniteBits CSsize | |
Methods finiteBitSize :: CSsize -> Int countLeadingZeros :: CSsize -> Int countTrailingZeros :: CSsize -> Int | |
Bits CSsize | |
Methods (.&.) :: CSsize -> CSsize -> CSsize (.|.) :: CSsize -> CSsize -> CSsize xor :: CSsize -> CSsize -> CSsize complement :: CSsize -> CSsize shift :: CSsize -> Int -> CSsize rotate :: CSsize -> Int -> CSsize setBit :: CSsize -> Int -> CSsize clearBit :: CSsize -> Int -> CSsize complementBit :: CSsize -> Int -> CSsize testBit :: CSsize -> Int -> Bool bitSizeMaybe :: CSsize -> Maybe Int shiftL :: CSsize -> Int -> CSsize unsafeShiftL :: CSsize -> Int -> CSsize shiftR :: CSsize -> Int -> CSsize unsafeShiftR :: CSsize -> Int -> CSsize rotateL :: CSsize -> Int -> CSsize | |
Storable CSsize | |
newtype CGid
Instances
Bounded CGid | |
Enum CGid | |
Eq CGid | |
Integral CGid | |
Num CGid | |
Ord CGid | |
Read CGid | |
Real CGid | |
Methods toRational :: CGid -> Rational | |
Show CGid | |
FiniteBits CGid | |
Methods finiteBitSize :: CGid -> Int countLeadingZeros :: CGid -> Int countTrailingZeros :: CGid -> Int | |
Bits CGid | |
Storable CGid | |
newtype CNlink
Instances
Bounded CNlink | |
Enum CNlink | |
Eq CNlink | |
Integral CNlink | |
Num CNlink | |
Ord CNlink | |
Read CNlink | |
Real CNlink | |
Methods toRational :: CNlink -> Rational | |
Show CNlink | |
FiniteBits CNlink | |
Methods finiteBitSize :: CNlink -> Int countLeadingZeros :: CNlink -> Int countTrailingZeros :: CNlink -> Int | |
Bits CNlink | |
Methods (.&.) :: CNlink -> CNlink -> CNlink (.|.) :: CNlink -> CNlink -> CNlink xor :: CNlink -> CNlink -> CNlink complement :: CNlink -> CNlink shift :: CNlink -> Int -> CNlink rotate :: CNlink -> Int -> CNlink setBit :: CNlink -> Int -> CNlink clearBit :: CNlink -> Int -> CNlink complementBit :: CNlink -> Int -> CNlink testBit :: CNlink -> Int -> Bool bitSizeMaybe :: CNlink -> Maybe Int shiftL :: CNlink -> Int -> CNlink unsafeShiftL :: CNlink -> Int -> CNlink shiftR :: CNlink -> Int -> CNlink unsafeShiftR :: CNlink -> Int -> CNlink rotateL :: CNlink -> Int -> CNlink | |
Storable CNlink | |
newtype CUid
Instances
Bounded CUid | |
Enum CUid | |
Eq CUid | |
Integral CUid | |
Num CUid | |
Ord CUid | |
Read CUid | |
Real CUid | |
Methods toRational :: CUid -> Rational | |
Show CUid | |
FiniteBits CUid | |
Methods finiteBitSize :: CUid -> Int countLeadingZeros :: CUid -> Int countTrailingZeros :: CUid -> Int | |
Bits CUid | |
Storable CUid | |
newtype CCc
newtype CSpeed
Instances
Enum CSpeed | |
Eq CSpeed | |
Num CSpeed | |
Ord CSpeed | |
Read CSpeed | |
Real CSpeed | |
Methods toRational :: CSpeed -> Rational | |
Show CSpeed | |
Storable CSpeed | |
newtype CTcflag
Instances
Bounded CTcflag | |
Enum CTcflag | |
Eq CTcflag | |
Integral CTcflag | |
Num CTcflag | |
Ord CTcflag | |
Read CTcflag | |
Real CTcflag | |
Methods toRational :: CTcflag -> Rational | |
Show CTcflag | |
FiniteBits CTcflag | |
Methods finiteBitSize :: CTcflag -> Int countLeadingZeros :: CTcflag -> Int countTrailingZeros :: CTcflag -> Int | |
Bits CTcflag | |
Methods (.&.) :: CTcflag -> CTcflag -> CTcflag (.|.) :: CTcflag -> CTcflag -> CTcflag xor :: CTcflag -> CTcflag -> CTcflag complement :: CTcflag -> CTcflag shift :: CTcflag -> Int -> CTcflag rotate :: CTcflag -> Int -> CTcflag setBit :: CTcflag -> Int -> CTcflag clearBit :: CTcflag -> Int -> CTcflag complementBit :: CTcflag -> Int -> CTcflag testBit :: CTcflag -> Int -> Bool bitSizeMaybe :: CTcflag -> Maybe Int shiftL :: CTcflag -> Int -> CTcflag unsafeShiftL :: CTcflag -> Int -> CTcflag shiftR :: CTcflag -> Int -> CTcflag unsafeShiftR :: CTcflag -> Int -> CTcflag rotateL :: CTcflag -> Int -> CTcflag | |
Storable CTcflag | |
newtype CRLim
Instances
Bounded CRLim | |
Enum CRLim | |
Eq CRLim | |
Integral CRLim | |
Num CRLim | |
Ord CRLim | |
Read CRLim | |
Real CRLim | |
Methods toRational :: CRLim -> Rational | |
Show CRLim | |
FiniteBits CRLim | |
Methods finiteBitSize :: CRLim -> Int countLeadingZeros :: CRLim -> Int countTrailingZeros :: CRLim -> Int | |
Bits CRLim | |
Methods (.&.) :: CRLim -> CRLim -> CRLim (.|.) :: CRLim -> CRLim -> CRLim xor :: CRLim -> CRLim -> CRLim complement :: CRLim -> CRLim shift :: CRLim -> Int -> CRLim rotate :: CRLim -> Int -> CRLim setBit :: CRLim -> Int -> CRLim clearBit :: CRLim -> Int -> CRLim complementBit :: CRLim -> Int -> CRLim testBit :: CRLim -> Int -> Bool bitSizeMaybe :: CRLim -> Maybe Int shiftL :: CRLim -> Int -> CRLim unsafeShiftL :: CRLim -> Int -> CRLim shiftR :: CRLim -> Int -> CRLim unsafeShiftR :: CRLim -> Int -> CRLim rotateL :: CRLim -> Int -> CRLim | |
Storable CRLim | |
newtype Fd
Instances
type FileOffset = COff
type ProcessGroupID = CPid