6198 Let's EOL cachefs
[illumos-gate.git] / usr / src / uts / common / sys / ulimit.h
blobd345f3fb3f6e3749097da6edd3c527a25796072c
1 /*
2 * CDDL HEADER START
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.
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.
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]
20 * CDDL HEADER END
23 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
28 /* All Rights Reserved */
30 /* Copyright (c) 1987, 1988 Microsoft Corporation */
31 /* All Rights Reserved */
33 #ifndef _SYS_ULIMIT_H
34 #define _SYS_ULIMIT_H
36 #pragma ident "%Z%%M% %I% %E% SMI"
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
43 * The following are codes which can be
44 * passed to the ulimit system call.
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
55 * The following are symbolic constants required for
56 * X/Open Conformance. They are the equivalents of
57 * the constants above.
60 #define UL_GETFSIZE 1 /* get file limit */
61 #define UL_SETFSIZE 2 /* set file limit */
63 #ifdef __cplusplus
65 #endif
67 #endif /* _SYS_ULIMIT_H */