Haskell Hierarchical Libraries (unix package)Source 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
Constructors
ResourceLimitInfinity
ResourceLimitUnknown
ResourceLimit Integer
show/hide Instances
data ResourceLimits
Constructors
ResourceLimits
softLimit, 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 0.8