]>
git.saurik.com Git - apple/xnu.git/blob - bsd/sys/syslimits.h
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
22 /* $NetBSD: syslimits.h,v 1.15 1997/06/25 00:48:09 lukem Exp $ */
25 * Copyright (c) 1988, 1993
26 * The Regents of the University of California. All rights reserved.
28 * Redistribution and use in source and binary forms, with or without
29 * modification, are permitted provided that the following conditions
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.
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
56 * @(#)syslimits.h 8.1 (Berkeley) 6/2/93
59 #ifndef _SYS_SYSLIMITS_H_
60 #define _SYS_SYSLIMITS_H_
62 #if !defined(_ANSI_SOURCE)
63 #define ARG_MAX (64 * 1024) /* max bytes for an exec function */
64 #define CHILD_MAX 100 /* max simultaneous processes */
65 #define GID_MAX 2147483647U /* max value for a gid_t (2^31-2) */
66 #define LINK_MAX 32767 /* max file link count */
67 #define MAX_CANON 255 /* max bytes in term canon input line */
68 #define MAX_INPUT 255 /* max bytes in terminal input */
69 #define NAME_MAX 255 /* max bytes in a file name */
70 #define NGROUPS_MAX 16 /* max supplemental group id's */
71 #define UID_MAX 2147483647U /* max value for a uid_t (2^31-2) */
72 #define OPEN_MAX 10240 /* max open files per process */
73 #define PATH_MAX 1024 /* max bytes in pathname */
74 #define PIPE_BUF 512 /* max bytes for atomic pipe writes */
76 #define BC_BASE_MAX INT_MAX /* max ibase/obase values in bc(1) */
77 #define BC_DIM_MAX 65535 /* max array elements in bc(1) */
78 #define BC_SCALE_MAX INT_MAX /* max scale value in bc(1) */
79 #define BC_STRING_MAX INT_MAX /* max const string length in bc(1) */
80 #define COLL_WEIGHTS_MAX 2 /* max weights for order keyword */
81 #define EQUIV_CLASS_MAX 2
82 #define EXPR_NEST_MAX 32 /* max expressions nested in expr(1) */
83 #define LINE_MAX 2048 /* max bytes in an input line */
84 #define RE_DUP_MAX 255 /* max RE's in interval notation */
85 #endif /* !_ANSI_SOURCE */
87 #endif /* !_SYS_SYSLIMITS_H_ */