GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing man.openbsd.org — getrlimit(2) - OpenBSD manual pages NAME
SYNOPSIS
int
int
DESCRIPTIONLimits on the consumption of system resources by the current
process and each process it creates may be obtained with the
The resource parameter is one of the following:
A resource limit is specified as a soft limit and a hard limit. When a soft limit is exceeded a process may receive a signal (for example, if the CPU time or file size is exceeded), but it will be allowed to continue execution until it reaches the hard limit (or modifies its resource limit). The rlimit structure is used to specify the hard and soft limits on a resource, struct rlimit {
rlim_t rlim_cur; /* current (soft) limit */
rlim_t rlim_max; /* hard limit */
};
Only the superuser may raise the maximum limits. Other users may only alter rlim_cur within the range from 0 to rlim_max or (irreversibly) lower rlim_max. An “infinite” value for a limit is defined as
A value of Because this information is stored in the per-process information,
this system call must be executed directly by the shell if it is to affect
all future processes created by the shell; The system refuses to extend the data or stack space when the
limits would be exceeded in the normal way: a
brk(2) call
fails if the data space limit is reached. When the stack limit is reached,
the process receives a segmentation fault ( A file I/O operation that would create a file larger than the
process' soft limit will cause the write to fail and a signal
RETURN VALUESUpon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error. ERRORS
In addition, SEE ALSOcsh(1), sh(1), quotactl(2), sigaction(2), sigaltstack(2), sysctl(2) STANDARDSThe The HISTORYThe BUGSThe |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |