xref: /titanic_50/usr/src/uts/common/sys/ulimit.h (revision 2654012f83cec5dc15b61dfe3e4a4915f186e7a6)
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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
37 
38 #ifdef	__cplusplus
39 extern "C" {
40 #endif
41 
42 /*
43  * The following are codes which can be
44  * passed to the ulimit system call.
45  */
46 
47 #if defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE)
48 #define	UL_GFILLIM	UL_GETFSIZE	/* get file limit */
49 #define	UL_SFILLIM	UL_SETFSIZE	/* set file limit */
50 #define	UL_GMEMLIM	3		/* get process size limit */
51 #define	UL_GDESLIM	4		/* get file descriptor limit */
52 #endif
53 
54 /*
55  * The following are symbolic constants required for
56  * X/Open Conformance.   They are the equivalents of
57  * the constants above.
58  */
59 
60 #define	UL_GETFSIZE	1	/* get file limit */
61 #define	UL_SETFSIZE	2	/* set file limit */
62 
63 #ifdef	__cplusplus
64 }
65 #endif
66 
67 #endif	/* _SYS_ULIMIT_H */
68