unix-2.3.1.0: POSIX functionalityContentsIndex
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
Constructors
ResourceLimitInfinity
ResourceLimitUnknown
ResourceLimit Integer
show/hide Instances
data ResourceLimits
Constructors
ResourceLimits
softLimit :: ResourceLimit
hardLimit :: ResourceLimit
show/hide Instances
data Resource
Constructors
ResourceCoreFileSize
ResourceCPUTime
ResourceDataSize
ResourceFileSize
ResourceOpenFiles
ResourceStackSize
ResourceTotalMemory
show/hide Instances
getResourceLimit :: Resource -> IO ResourceLimits
setResourceLimit :: Resource -> ResourceLimits -> IO ()
Produced by Haddock version 2.3.0