]> git.saurik.com Git - apple/xnu.git/blame - bsd/sys/syslimits.h
xnu-792.6.76.tar.gz
[apple/xnu.git] / bsd / sys / syslimits.h
CommitLineData
1c79356b
A
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
37839358
A
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
1c79356b 11 *
37839358
A
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
1c79356b
A
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
37839358
A
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
1c79356b
A
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22/* $NetBSD: syslimits.h,v 1.15 1997/06/25 00:48:09 lukem Exp $ */
23
24/*
25 * Copyright (c) 1988, 1993
26 * The Regents of the University of California. All rights reserved.
27 *
28 * Redistribution and use in source and binary forms, with or without
29 * modification, are permitted provided that the following conditions
30 * are met:
31 * 1. Redistributions of source code must retain the above copyright
32 * notice, this list of conditions and the following disclaimer.
33 * 2. Redistributions in binary form must reproduce the above copyright
34 * notice, this list of conditions and the following disclaimer in the
35 * documentation and/or other materials provided with the distribution.
36 * 3. All advertising materials mentioning features or use of this software
37 * must display the following acknowledgement:
38 * This product includes software developed by the University of
39 * California, Berkeley and its contributors.
40 * 4. Neither the name of the University nor the names of its contributors
41 * may be used to endorse or promote products derived from this software
42 * without specific prior written permission.
43 *
44 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
45 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
46 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
47 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
48 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
49 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
50 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
51 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
52 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
53 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
54 * SUCH DAMAGE.
55 *
56 * @(#)syslimits.h 8.1 (Berkeley) 6/2/93
57 */
58
59#ifndef _SYS_SYSLIMITS_H_
60#define _SYS_SYSLIMITS_H_
61
62#if !defined(_ANSI_SOURCE)
55e303ae
A
63/*
64 * Note: CHILD_MAX *must* be less than hard_maxproc, which is set at
65 * compile time; you *cannot* set it higher than the hard limit!!
66 */
67#define ARG_MAX (256 * 1024) /* max bytes for an exec function */
1c79356b
A
68#define CHILD_MAX 100 /* max simultaneous processes */
69#define GID_MAX 2147483647U /* max value for a gid_t (2^31-2) */
70#define LINK_MAX 32767 /* max file link count */
71#define MAX_CANON 255 /* max bytes in term canon input line */
72#define MAX_INPUT 255 /* max bytes in terminal input */
73#define NAME_MAX 255 /* max bytes in a file name */
74#define NGROUPS_MAX 16 /* max supplemental group id's */
75#define UID_MAX 2147483647U /* max value for a uid_t (2^31-2) */
76#define OPEN_MAX 10240 /* max open files per process */
77#define PATH_MAX 1024 /* max bytes in pathname */
78#define PIPE_BUF 512 /* max bytes for atomic pipe writes */
79
91447636
A
80#define BC_BASE_MAX 99 /* max ibase/obase values in bc(1) */
81#define BC_DIM_MAX 2048 /* max array elements in bc(1) */
82#define BC_SCALE_MAX 99 /* max scale value in bc(1) */
83#define BC_STRING_MAX 1000 /* max const string length in bc(1) */
1c79356b
A
84#define COLL_WEIGHTS_MAX 2 /* max weights for order keyword */
85#define EQUIV_CLASS_MAX 2
86#define EXPR_NEST_MAX 32 /* max expressions nested in expr(1) */
87#define LINE_MAX 2048 /* max bytes in an input line */
88#define RE_DUP_MAX 255 /* max RE's in interval notation */
89#endif /* !_ANSI_SOURCE */
90
91#endif /* !_SYS_SYSLIMITS_H_ */