xref: /illumos-gate/usr/src/uts/common/sys/ulimit.h (revision b4203d75)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
28 /*	  All Rights Reserved	*/
29 
30 /*	Copyright (c) 1987, 1988 Microsoft Corporation	*/
31 /*	  All Rights Reserved	*/
32 
33 #ifndef	_SYS_ULIMIT_H
34 #define	_SYS_ULIMIT_H
35 
36 #ifdef	__cplusplus
37 extern "C" {
38 #endif
39 
40 /*
41  * The following are codes which can be
42  * passed to the ulimit system call.
43  */
44 
45 #if defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE)
46 #define	UL_GFILLIM	UL_GETFSIZE	/* get file limit */
47 #define	UL_SFILLIM	UL_SETFSIZE	/* set file limit */
48 #define	UL_GMEMLIM	3		/* get process size limit */
49 #define	UL_GDESLIM	4		/* get file descriptor limit */
50 #endif
51 
52 /*
53  * The following are symbolic constants required for
54  * X/Open Conformance.   They are the equivalents of
55  * the constants above.
56  */
57 
58 #define	UL_GETFSIZE	1	/* get file limit */
59 #define	UL_SETFSIZE	2	/* set file limit */
60 
61 #ifdef	__cplusplus
62 }
63 #endif
64 
65 #endif	/* _SYS_ULIMIT_H */
66