Z-IO-0.6.4.0: Simple and high performance IO toolkit for Haskell
Copyright(c) Winterland 2020
LicenseBSD
Maintainerwinterland1989@gmail.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Z.IO.UV.FFI_Env

Description

INTERNAL MODULE, split from Z.IO.UV.FFI to make it buildable under constrained memory.

Synopsis

Documentation

data TimeVal Source #

Data type for storing times. typedef struct { long tv_sec; long tv_usec; } uv_timeval_t;

Constructors

TimeVal 

Fields

Instances

Instances details
Eq TimeVal Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Methods

(==) :: TimeVal -> TimeVal -> Bool #

(/=) :: TimeVal -> TimeVal -> Bool #

Ord TimeVal Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Read TimeVal Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Show TimeVal Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Generic TimeVal Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Associated Types

type Rep TimeVal :: Type -> Type #

Methods

from :: TimeVal -> Rep TimeVal x #

to :: Rep TimeVal x -> TimeVal #

JSON TimeVal Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Print TimeVal Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Methods

toUTF8BuilderP :: Int -> TimeVal -> Builder () #

type Rep TimeVal Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

type Rep TimeVal = D1 ('MetaData "TimeVal" "Z.IO.UV.FFI_Env" "Z-IO-0.6.4.0-3RdtkLMi3pWlcaS0GimBE" 'False) (C1 ('MetaCons "TimeVal" 'PrefixI 'True) (S1 ('MetaSel ('Just "tv_sec") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 CLong) :*: S1 ('MetaSel ('Just "tv_usec") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 CLong)))

data ResUsage Source #

Data type for resource usage results.

Members marked with (X) are unsupported on Windows. See getrusage(2) for supported fields on Unix

Constructors

ResUsage 

Fields

Instances

Instances details
Eq ResUsage Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Ord ResUsage Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Read ResUsage Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Show ResUsage Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Generic ResUsage Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Associated Types

type Rep ResUsage :: Type -> Type #

Methods

from :: ResUsage -> Rep ResUsage x #

to :: Rep ResUsage x -> ResUsage #

JSON ResUsage Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Print ResUsage Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Methods

toUTF8BuilderP :: Int -> ResUsage -> Builder () #

type Rep ResUsage Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

type Rep ResUsage = D1 ('MetaData "ResUsage" "Z.IO.UV.FFI_Env" "Z-IO-0.6.4.0-3RdtkLMi3pWlcaS0GimBE" 'False) (C1 ('MetaCons "ResUsage" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "ru_utime") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 TimeVal) :*: S1 ('MetaSel ('Just "ru_stime") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 TimeVal)) :*: (S1 ('MetaSel ('Just "ru_maxrss") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "ru_ixrss") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64))) :*: ((S1 ('MetaSel ('Just "ru_idrss") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "ru_isrss") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "ru_minflt") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "ru_majflt") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64)))) :*: (((S1 ('MetaSel ('Just "ru_nswap") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "ru_inblock") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "ru_oublock") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "ru_msgsnd") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64))) :*: ((S1 ('MetaSel ('Just "ru_msgrcv") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "ru_nsignals") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "ru_nvcsw") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "ru_nivcsw") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Word64))))))

newtype PID Source #

Constructors

PID CInt 

Instances

Instances details
Eq PID Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Methods

(==) :: PID -> PID -> Bool #

(/=) :: PID -> PID -> Bool #

Ord PID Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Methods

compare :: PID -> PID -> Ordering #

(<) :: PID -> PID -> Bool #

(<=) :: PID -> PID -> Bool #

(>) :: PID -> PID -> Bool #

(>=) :: PID -> PID -> Bool #

max :: PID -> PID -> PID #

min :: PID -> PID -> PID #

Read PID Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Show PID Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Methods

showsPrec :: Int -> PID -> ShowS #

show :: PID -> String #

showList :: [PID] -> ShowS #

Generic PID Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Associated Types

type Rep PID :: Type -> Type #

Methods

from :: PID -> Rep PID x #

to :: Rep PID x -> PID #

JSON PID Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Print PID Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Methods

toUTF8BuilderP :: Int -> PID -> Builder () #

Unaligned PID Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Prim PID Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Storable PID Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Methods

sizeOf :: PID -> Int #

alignment :: PID -> Int #

peekElemOff :: Ptr PID -> Int -> IO PID #

pokeElemOff :: Ptr PID -> Int -> PID -> IO () #

peekByteOff :: Ptr b -> Int -> IO PID #

pokeByteOff :: Ptr b -> Int -> PID -> IO () #

peek :: Ptr PID -> IO PID #

poke :: Ptr PID -> PID -> IO () #

type Rep PID Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

type Rep PID = D1 ('MetaData "PID" "Z.IO.UV.FFI_Env" "Z-IO-0.6.4.0-3RdtkLMi3pWlcaS0GimBE" 'True) (C1 ('MetaCons "PID" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CInt)))

data OSName Source #

Data type for operating system name and version information.

Instances

Instances details
Eq OSName Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Methods

(==) :: OSName -> OSName -> Bool #

(/=) :: OSName -> OSName -> Bool #

Ord OSName Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Read OSName Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Show OSName Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Generic OSName Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Associated Types

type Rep OSName :: Type -> Type #

Methods

from :: OSName -> Rep OSName x #

to :: Rep OSName x -> OSName #

JSON OSName Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Print OSName Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Methods

toUTF8BuilderP :: Int -> OSName -> Builder () #

type Rep OSName Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

type Rep OSName = D1 ('MetaData "OSName" "Z.IO.UV.FFI_Env" "Z-IO-0.6.4.0-3RdtkLMi3pWlcaS0GimBE" 'False) (C1 ('MetaCons "OSName" 'PrefixI 'True) ((S1 ('MetaSel ('Just "os_sysname") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CBytes) :*: S1 ('MetaSel ('Just "os_release") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CBytes)) :*: (S1 ('MetaSel ('Just "os_version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CBytes) :*: S1 ('MetaSel ('Just "os_machine") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CBytes))))

data PassWD Source #

Data type for password file information.

Instances

Instances details
Eq PassWD Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Methods

(==) :: PassWD -> PassWD -> Bool #

(/=) :: PassWD -> PassWD -> Bool #

Ord PassWD Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Read PassWD Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Show PassWD Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Generic PassWD Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Associated Types

type Rep PassWD :: Type -> Type #

Methods

from :: PassWD -> Rep PassWD x #

to :: Rep PassWD x -> PassWD #

JSON PassWD Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Print PassWD Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Methods

toUTF8BuilderP :: Int -> PassWD -> Builder () #

type Rep PassWD Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

type Rep PassWD = D1 ('MetaData "PassWD" "Z.IO.UV.FFI_Env" "Z-IO-0.6.4.0-3RdtkLMi3pWlcaS0GimBE" 'False) (C1 ('MetaCons "PassWD" 'PrefixI 'True) ((S1 ('MetaSel ('Just "passwd_username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CBytes) :*: S1 ('MetaSel ('Just "passwd_uid") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UID)) :*: (S1 ('MetaSel ('Just "passwd_gid") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GID) :*: (S1 ('MetaSel ('Just "passwd_shell") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CBytes) :*: S1 ('MetaSel ('Just "passwd_homedir") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CBytes)))))

getPassWD :: HasCallStack => IO PassWD Source #

Gets a subset of the password file entry for the current effective uid (not the real uid).

The populated data includes the username, euid, gid, shell, and home directory. On non-Windows systems, all data comes from getpwuid_r(3). On Windows, uid and gid are set to -1 and have no meaning, and shell is empty.

data CPUInfo Source #

Data type for CPU information.

Constructors

CPUInfo 

Fields

Instances

Instances details
Eq CPUInfo Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Methods

(==) :: CPUInfo -> CPUInfo -> Bool #

(/=) :: CPUInfo -> CPUInfo -> Bool #

Ord CPUInfo Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Read CPUInfo Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Show CPUInfo Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Generic CPUInfo Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Associated Types

type Rep CPUInfo :: Type -> Type #

Methods

from :: CPUInfo -> Rep CPUInfo x #

to :: Rep CPUInfo x -> CPUInfo #

JSON CPUInfo Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Print CPUInfo Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Methods

toUTF8BuilderP :: Int -> CPUInfo -> Builder () #

type Rep CPUInfo Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

getCPUInfo :: HasCallStack => IO [CPUInfo] Source #

Gets information about the CPUs on the system.

data TimeVal64 Source #

Alternative data type for storing times. typedef struct { int64_t tv_sec; int32_t tv_usec; } uv_timeval64_t;

Constructors

TimeVal64 

Fields

Instances

Instances details
Eq TimeVal64 Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Ord TimeVal64 Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Read TimeVal64 Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Show TimeVal64 Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Generic TimeVal64 Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Associated Types

type Rep TimeVal64 :: Type -> Type #

JSON TimeVal64 Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Print TimeVal64 Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

Methods

toUTF8BuilderP :: Int -> TimeVal64 -> Builder () #

type Rep TimeVal64 Source # 
Instance details

Defined in Z.IO.UV.FFI_Env

type Rep TimeVal64 = D1 ('MetaData "TimeVal64" "Z.IO.UV.FFI_Env" "Z-IO-0.6.4.0-3RdtkLMi3pWlcaS0GimBE" 'False) (C1 ('MetaCons "TimeVal64" 'PrefixI 'True) (S1 ('MetaSel ('Just "tv64_sec") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Int64) :*: S1 ('MetaSel ('Just "tv64_usec") 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Int32)))

getTimeOfDay :: HasCallStack => IO TimeVal64 Source #

Cross-platform implementation of gettimeofday(2). The timezone argument to gettimeofday() is not supported, as it is considered obsolete.