unix-2.4.0.2: 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 :: ResourceLimit
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 :: ResourceLimit
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 2.6.1