1 /* Copyright (C) 1991 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 1, or (at your option)
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with the GNU C Library; see the file COPYING. If not, write to
16 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
20 #define _SYS_VLIMIT_H 1
23 /* This interface is obsolete, and is superseded by <sys/resource.h>. */
25 /* Kinds of resource limit. */
26 enum __vlimit_resource
28 /* Setting this non-zero makes it impossible to raise limits.
29 Only the super-use can set it to zero.
31 This is not implemented in recent versions of BSD, nor by
35 /* CPU time available for each process (seconds). */
38 /* Largest file which can be created (bytes). */
41 /* Maximum size of the data segment (bytes). */
44 /* Maximum size of the stack segment (bytes). */
47 /* Largest core file that will be created (bytes). */
50 /* Resident set size (bytes). */
54 /* This means no limit. */
55 #define INFINITY 0x7fffffff
58 /* Set the soft limit for RESOURCE to be VALUE.
59 Returns 0 for success, -1 for failure. */
60 int EXFUN(vlimit, (enum __vlimit_resource __resource, int __value));