williamr@2
|
1 |
/*-
|
williamr@2
|
2 |
* Copyright (c) 1988, 1993
|
williamr@2
|
3 |
* The Regents of the University of California. All rights reserved.
|
williamr@2
|
4 |
*
|
williamr@2
|
5 |
* Redistribution and use in source and binary forms, with or without
|
williamr@2
|
6 |
* modification, are permitted provided that the following conditions
|
williamr@2
|
7 |
* are met:
|
williamr@2
|
8 |
* 1. Redistributions of source code must retain the above copyright
|
williamr@2
|
9 |
* notice, this list of conditions and the following disclaimer.
|
williamr@2
|
10 |
* 2. Redistributions in binary form must reproduce the above copyright
|
williamr@2
|
11 |
* notice, this list of conditions and the following disclaimer in the
|
williamr@2
|
12 |
* documentation and/or other materials provided with the distribution.
|
williamr@2
|
13 |
* 4. Neither the name of the University nor the names of its contributors
|
williamr@2
|
14 |
* may be used to endorse or promote products derived from this software
|
williamr@2
|
15 |
* without specific prior written permission.
|
williamr@2
|
16 |
*
|
williamr@2
|
17 |
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
williamr@2
|
18 |
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
williamr@2
|
19 |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
williamr@2
|
20 |
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
williamr@2
|
21 |
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
williamr@2
|
22 |
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
williamr@2
|
23 |
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
williamr@2
|
24 |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
williamr@2
|
25 |
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
williamr@2
|
26 |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
williamr@2
|
27 |
* SUCH DAMAGE.
|
williamr@2
|
28 |
*
|
williamr@2
|
29 |
* @(#)syslimits.h 8.1 (Berkeley) 6/2/93
|
williamr@2
|
30 |
* $FreeBSD: src/sys/sys/syslimits.h,v 1.21 2005/03/02 21:33:29 joerg Exp $
|
williamr@2
|
31 |
*/
|
williamr@2
|
32 |
|
williamr@2
|
33 |
#ifndef _SYS_SYSLIMITS_H_
|
williamr@2
|
34 |
#define _SYS_SYSLIMITS_H_
|
williamr@2
|
35 |
|
williamr@2
|
36 |
#if !defined(_KERNEL) && !defined(_LIMITS_H_) && !defined(_SYS_PARAM_H_)
|
williamr@2
|
37 |
#ifndef _SYS_CDEFS_H_
|
williamr@2
|
38 |
#error this file needs sys/cdefs.h as a prerequisite
|
williamr@2
|
39 |
#endif
|
williamr@2
|
40 |
#ifdef __CC_SUPPORTS_WARNING
|
williamr@2
|
41 |
#warning "No user-serviceable parts inside."
|
williamr@2
|
42 |
#endif
|
williamr@2
|
43 |
#endif
|
williamr@2
|
44 |
|
williamr@2
|
45 |
/*
|
williamr@2
|
46 |
* Do not add any new variables here. (See the comment at the end of
|
williamr@2
|
47 |
* the file for why.)
|
williamr@2
|
48 |
*/
|
williamr@2
|
49 |
#if defined(__arm__) || defined(__powerpc__)
|
williamr@2
|
50 |
#define ARG_MAX 65536 /* max bytes for an exec function */
|
williamr@2
|
51 |
#else
|
williamr@2
|
52 |
#define ARG_MAX 262144 /* max bytes for an exec function */
|
williamr@2
|
53 |
#endif
|
williamr@2
|
54 |
#ifndef CHILD_MAX
|
williamr@2
|
55 |
#define CHILD_MAX 40 /* max simultaneous processes */
|
williamr@2
|
56 |
#endif
|
williamr@2
|
57 |
#define LINK_MAX 32767 /* max file link count */
|
williamr@2
|
58 |
#define MAX_CANON 255 /* max bytes in term canon input line */
|
williamr@2
|
59 |
#define MAX_INPUT 255 /* max bytes in terminal input */
|
williamr@2
|
60 |
#define NAME_MAX 255 /* max bytes in a file name */
|
williamr@2
|
61 |
#define NGROUPS_MAX 16 /* max supplemental group id's */
|
williamr@2
|
62 |
#ifndef OPEN_MAX
|
williamr@2
|
63 |
#define OPEN_MAX 256 /* max open files per process */
|
williamr@2
|
64 |
#endif
|
williamr@2
|
65 |
#ifndef __SYMBIAN32__
|
williamr@2
|
66 |
#define PATH_MAX 1024 /* max bytes in pathname */
|
williamr@2
|
67 |
#else
|
williamr@2
|
68 |
#define PATH_MAX 256 /* max bytes in pathname. In Symbian, this cant be more than 256 */
|
williamr@2
|
69 |
#endif /* __SYMBIAN32__ */
|
williamr@2
|
70 |
#define PIPE_BUF 512 /* max bytes for atomic pipe writes */
|
williamr@2
|
71 |
#define IOV_MAX 1024 /* max elements in i/o vector */
|
williamr@2
|
72 |
|
williamr@2
|
73 |
/*
|
williamr@2
|
74 |
* We leave the following values undefined to force applications to either
|
williamr@2
|
75 |
* assume conservative values or call sysconf() to get the current value.
|
williamr@2
|
76 |
*
|
williamr@2
|
77 |
* HOST_NAME_MAX
|
williamr@2
|
78 |
*
|
williamr@2
|
79 |
* (We should do this for most of the values currently defined here,
|
williamr@2
|
80 |
* but many programs are not prepared to deal with this yet.)
|
williamr@2
|
81 |
*/
|
williamr@2
|
82 |
#endif
|