System.Posix.Types

System.Posix.Types

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

Contents

Description

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

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

Methods

compare :: CDev -> CDev -> Ordering Source

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

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

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

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

max :: CDev -> CDev -> CDev Source

min :: CDev -> CDev -> CDev Source

Read CDev
Real CDev

Methods

toRational :: CDev -> Rational Source

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

Methods

compare :: CIno -> CIno -> Ordering Source

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

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

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

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

max :: CIno -> CIno -> CIno Source

min :: CIno -> CIno -> CIno Source

Read CIno
Real CIno

Methods

toRational :: CIno -> Rational Source

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

Methods

compare :: COff -> COff -> Ordering Source

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

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

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

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

max :: COff -> COff -> COff Source

min :: COff -> COff -> COff Source

Read COff
Real COff

Methods

toRational :: COff -> Rational Source

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

Methods

compare :: CPid -> CPid -> Ordering Source

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

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

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

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

max :: CPid -> CPid -> CPid Source

min :: CPid -> CPid -> CPid Source

Read CPid
Real CPid

Methods

toRational :: CPid -> Rational Source

Show CPid
FiniteBits CPid
Bits CPid
Storable CPid

newtype CSsize Source

Constructors

CSsize Int64

Instances

Bounded CSsize
Enum CSsize
Eq CSsize

Methods

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

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

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

Methods

compare :: CGid -> CGid -> Ordering Source

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

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

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

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

max :: CGid -> CGid -> CGid Source

min :: CGid -> CGid -> CGid Source

Read CGid
Real CGid

Methods

toRational :: CGid -> Rational Source

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

Methods

compare :: CUid -> CUid -> Ordering Source

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

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

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

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

max :: CUid -> CUid -> CUid Source

min :: CUid -> CUid -> CUid Source

Read CUid
Real CUid

Methods

toRational :: CUid -> Rational Source

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

Methods

(+) :: CCc -> CCc -> CCc Source

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

(*) :: CCc -> CCc -> CCc Source

negate :: CCc -> CCc Source

abs :: CCc -> CCc Source

signum :: CCc -> CCc Source

fromInteger :: Integer -> CCc Source

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

Methods

toRational :: CCc -> Rational Source

Show CCc

Methods

showsPrec :: Int -> CCc -> ShowS Source

show :: CCc -> String Source

showList :: [CCc] -> ShowS Source

Storable CCc

Methods

sizeOf :: CCc -> Int Source

alignment :: CCc -> Int Source

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

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

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

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

peek :: Ptr CCc -> IO CCc Source

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

newtype CSpeed Source

Constructors

CSpeed Word32

Instances

Enum CSpeed
Eq CSpeed

Methods

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

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

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

Methods

succ :: Fd -> Fd Source

pred :: Fd -> Fd Source

toEnum :: Int -> Fd Source

fromEnum :: Fd -> Int Source

enumFrom :: Fd -> [Fd] Source

enumFromThen :: Fd -> Fd -> [Fd] Source

enumFromTo :: Fd -> Fd -> [Fd] Source

enumFromThenTo :: Fd -> Fd -> Fd -> [Fd] Source

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

Methods

toRational :: Fd -> Rational Source

Show Fd

Methods

showsPrec :: Int -> Fd -> ShowS Source

show :: Fd -> String Source

showList :: [Fd] -> ShowS Source

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

type LinkCount = CNlink Source

type UserID = CUid Source

type GroupID = CGid Source

type ByteCount = CSize Source

type ClockTick = CClock Source

type EpochTime = CTime Source

type FileOffset = COff Source

type ProcessID = CPid Source

type ProcessGroupID = CPid Source

type DeviceID = CDev Source

type FileID = CIno Source

type FileMode = CMode Source

type Limit = CLong Source

© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/8.0.1/docs/html/libraries/base-4.9.0.0/System-Posix-Types.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部