unix-2.3.0.1: POSIX functionalitySource codeContentsIndex
System.Posix.Resource
Portabilitynon-portable (requires POSIX)
Stabilityprovisional
Maintainerlibraries@haskell.org
Contents
Resource Limits
Description
POSIX resource support
Synopsis
data ResourceLimit
= ResourceLimitInfinity
| ResourceLimitUnknown
| ResourceLimit Integer
data ResourceLimits = ResourceLimits {
softLimit, hardLimit :: ResourceLimit
}
data Resource
= ResourceCoreFileSize
| ResourceCPUTime
| ResourceDataSize
| ResourceFileSize
| ResourceOpenFiles
| ResourceStackSize
| ResourceTotalMemory
getResourceLimit :: Resource -> IO ResourceLimits
setResourceLimit :: Resource -> ResourceLimits -> IO ()
Resource Limits
data ResourceLimit Source
Constructors
ResourceLimitInfinity
ResourceLimitUnknown
ResourceLimit Integer
show/hide Instances
data ResourceLimits Source
Constructors
ResourceLimits
softLimit, hardLimit :: ResourceLimit
show/hide Instances
data Resource Source
Constructors
ResourceCoreFileSize
ResourceCPUTime
ResourceDataSize
ResourceFileSize
ResourceOpenFiles
ResourceStackSize
ResourceTotalMemory
show/hide Instances
getResourceLimit :: Resource -> IO ResourceLimitsSource
setResourceLimit :: Resource -> ResourceLimits -> IO ()Source
Produced by Haddock version 0.9