posix_setrlimit
(PHP 7)
posix_setrlimit — Set system resource limits
Описание
$resource
, int $softlimit
, int $hardlimit
)posix_setrlimit() sets the soft and hard limits for a given system resource.
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.
Список параметров
-
resource
-
The resource limit constant corresponding to the limit that is being set.
-
softlimit
-
The soft limit, in whatever unit the resource limit requires, or
POSIX_RLIMIT_INFINITY
. -
hardlimit
-
The hard limit, in whatever unit the resource limit requires, or
POSIX_RLIMIT_INFINITY
.
Возвращаемые значения
Возвращает TRUE
в случае успешного завершения или FALSE
в случае возникновения ошибки.
Смотрите также
- man page SETRLIMIT(2)
- posix_getrlimit() - Возвращает информацию об ограничениях системных ресурсов
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения для управления процессами программ
- POSIX
- posix_access
- posix_ctermid
- posix_errno
- posix_get_last_error
- posix_getcwd
- posix_getegid
- posix_geteuid
- posix_getgid
- posix_getgrgid
- posix_getgrnam
- posix_getgroups
- posix_getlogin
- posix_getpgid
- posix_getpgrp
- posix_getpid
- posix_getppid
- posix_getpwnam
- posix_getpwuid
- posix_getrlimit
- posix_getsid
- posix_getuid
- posix_initgroups
- posix_isatty
- posix_kill
- posix_mkfifo
- posix_mknod
- posix_setegid
- posix_seteuid
- posix_setgid
- posix_setpgid
- posix_setrlimit
- posix_setsid
- posix_setuid
- posix_strerror
- posix_times
- posix_ttyname
- posix_uname
Коментарии
404 Not Found