1 .\" Copyright (C) 1996 Andries Brouwer (aeb@cwi.nl)
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" Moved to man3, aeb, 980612
27 .TH ULIMIT 3 2017-09-15 "Linux" "Linux Programmer's Manual"
29 ulimit \- get and set user limits
32 .B #include <ulimit.h>
34 .BI "long ulimit(int " cmd ", long " newlimit );
37 Warning: this routine is obsolete.
51 call will get or set some limit for the calling process.
54 argument can have one of the following values.
57 Return the limit on the size of a file, in units of 512 bytes.
60 Set the limit on the size of a file.
63 (Not implemented for Linux.)
64 Return the maximum possible address of the data segment.
67 (Implemented but no symbolic constant provided.)
68 Return the maximum number of files that the calling process can open.
72 returns a nonnegative value.
73 On error, \-1 is returned, and
75 is set to indicate the error.
79 An unprivileged process tried to increase a limit.
81 For an explanation of the terms used in this section, see
89 Interface Attribute Value
92 T} Thread safety MT-Safe