|
|
1.1 root 1: .TH ULIMIT 2
2: .SH NAME
3: ulimit \- get and set user limits
4: .SH SYNOPSIS
5: .B long ulimit (cmd, newlimit)
6: .br
7: .B int cmd;
8: .br
9: .B long newlimit;
10: .SH DESCRIPTION
11: This function provides for control over process limits.
12: The
13: .I cmd\^
14: values
15: available are:
16: .TP 5
17: .B 1
18: Get the file size limit of the process.
19: The limit is in units of 512-byte blocks
20: and is inherited by child processes.
21: Files of any size can be read.
22: .TP 5
23: .B 2
24: Set the file size limit of the process to
25: the value of
26: .IR newlimit .
27: Any process may decrease this limit,
28: but only a process with an effective user
29: .SM ID
30: of super-user may increase the limit.
31: .I Ulimit\^
32: will fail and the limit will be unchanged if a process with an effective user
33: .SM ID
34: other than
35: super-user attempts to increase its file size limit.
36: .SM
37: \%[EPERM]
38: .TP 5
39: .B 3
40: Get the maximum possible break value.
41: See
42: .IR brk (2).
43: .SH "RETURN VALUE"
44: Upon successful completion, a non-negative value is returned.
45: Otherwise, a value of \-1 is returned and
46: .I errno\^
47: is set to indicate the error.
48: .SH SEE ALSO
49: brk(2), write(2).
50: .\" @(#)ulimit.2 6.2 of 9/6/83
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.