PHP 8.2.31
Preview: setrlimit-c.yaml Size: 2.41 KB
/proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/Process/setrlimit-c.yaml

--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Sets the resource limit of the process. <em>cur_limit</em> means current (soft) limit and <em>max_limit</em> means maximum (hard) limit.
- !ruby/struct:SM::Flow::P 
  body: If <em>max_limit</em> is not given, <em>cur_limit</em> is used.
- !ruby/struct:SM::Flow::P 
  body: <em>resource</em> indicates the kind of resource to limit. The list of resources are OS dependent. Ruby may support following resources.
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: Process::RLIMIT_CORE
    body: core size (bytes) (SUSv3)
  - !ruby/struct:SM::Flow::LI 
    label: Process::RLIMIT_CPU
    body: CPU time (seconds) (SUSv3)
  - !ruby/struct:SM::Flow::LI 
    label: Process::RLIMIT_DATA
    body: data segment (bytes) (SUSv3)
  - !ruby/struct:SM::Flow::LI 
    label: Process::RLIMIT_FSIZE
    body: file size (bytes) (SUSv3)
  - !ruby/struct:SM::Flow::LI 
    label: Process::RLIMIT_NOFILE
    body: file descriptors (number) (SUSv3)
  - !ruby/struct:SM::Flow::LI 
    label: Process::RLIMIT_STACK
    body: stack size (bytes) (SUSv3)
  - !ruby/struct:SM::Flow::LI 
    label: Process::RLIMIT_AS
    body: total available memory (bytes) (SUSv3, NetBSD, FreeBSD, OpenBSD but 4.4BSD-Lite)
  - !ruby/struct:SM::Flow::LI 
    label: Process::RLIMIT_MEMLOCK
    body: total size for mlock(2) (bytes) (4.4BSD, GNU/Linux)
  - !ruby/struct:SM::Flow::LI 
    label: Process::RLIMIT_NPROC
    body: number of processes for the user (number) (4.4BSD, GNU/Linux)
  - !ruby/struct:SM::Flow::LI 
    label: Process::RLIMIT_RSS
    body: resident memory size (bytes) (4.2BSD, GNU/Linux)
  - !ruby/struct:SM::Flow::LI 
    label: Process::RLIMIT_SBSIZE
    body: all socket buffers (bytes) (NetBSD, FreeBSD)
  type: :LABELED
- !ruby/struct:SM::Flow::P 
  body: Other <tt>Process::RLIMIT_???</tt> constants may be defined.
- !ruby/struct:SM::Flow::P 
  body: <em>cur_limit</em> and <em>max_limit</em> may be <tt>Process::RLIM_INFINITY</tt>, which means that the resource is not limited. They may be <tt>Process::RLIM_SAVED_MAX</tt> or <tt>Process::RLIM_SAVED_CUR</tt> too. See system setrlimit(2) manual for details.
full_name: Process::setrlimit
is_singleton: true
name: setrlimit
params: |
  Process.setrlimit(resource, cur_limit, max_limit)        => nil
  Process.setrlimit(resource, cur_limit)                   => nil

visibility: public

Directory Contents

Dirs: 4 × Files: 38

Name Size Perms Modified Actions
GID DIR
- drwxr-xr-x 2024-03-03 22:50:13
Edit Download
Status DIR
- drwxr-xr-x 2024-03-03 22:50:13
Edit Download
Sys DIR
- drwxr-xr-x 2024-03-03 22:50:13
Edit Download
UID DIR
- drwxr-xr-x 2024-03-03 22:50:13
Edit Download
395 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
3.85 KB lrw-r--r-- 2023-07-26 13:48:00
Edit Download
1.91 KB lrw-r--r-- 2023-07-26 13:48:00
Edit Download
315 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
454 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
302 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
424 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
1.22 KB lrw-r--r-- 2023-07-26 13:48:00
Edit Download
421 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
1.35 KB lrw-r--r-- 2023-07-26 13:48:00
Edit Download
1.04 KB lrw-r--r-- 2023-07-26 13:48:00
Edit Download
421 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
433 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
863 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
868 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
269 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
416 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
536 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
417 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
837 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
963 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
330 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
399 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
368 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
609 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
366 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
299 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
605 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
2.41 KB lrw-r--r-- 2023-07-26 13:48:00
Edit Download
457 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
473 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
312 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
414 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
2.17 KB lrw-r--r-- 2023-07-26 13:48:00
Edit Download
772 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
878 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download
2.18 KB lrw-r--r-- 2023-07-26 13:48:00
Edit Download
778 B lrw-r--r-- 2023-07-26 13:48:00
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).