PHP » GoLang |
login |
register |
about
|
GoLang posix_getrlimit
request it (325)
GoLang replacement for PHP's posix_getrlimit
[edit | history]
posix_getrlimit(PHP 4, PHP 5, PHP 7) posix_getrlimit — Return info about system resource limits Description
array posix_getrlimit
( void
)
posix_getrlimit() returns an array of information about the current resource's soft and hard limits. Each resource has an associated soft and hard limit. The soft limit is the value that the kernel enforces for the corresponding resource. The hard limit acts as a ceiling for the soft limit. An unprivileged process may only set its soft limit to a value from 0 to the hard limit, and irreversibly lower its hard limit. Return ValuesReturns an associative array of elements for each limit that is defined. Each limit has a soft and a hard limit.
Examples
Example #1 Example use of posix_getrlimit()
<?php The above example will output something similar to: Array ( [soft core] => 0 [hard core] => unlimited [soft data] => unlimited [hard data] => unlimited [soft stack] => 8388608 [hard stack] => unlimited [soft totalmem] => unlimited [hard totalmem] => unlimited [soft rss] => unlimited [hard rss] => unlimited [soft maxproc] => unlimited [hard maxproc] => unlimited [soft memlock] => unlimited [hard memlock] => unlimited [soft cpu] => unlimited [hard cpu] => unlimited [soft filesize] => unlimited [hard filesize] => unlimited [soft openfiles] => 1024 [hard openfiles] => 1024 ) |
more
Recently updated
more
Most requested
more
Last requests
|