1199767fToomas Soome/*-
2199767fToomas Soome * Copyright (c) 1988, 1993
3199767fToomas Soome *	The Regents of the University of California.  All rights reserved.
4199767fToomas Soome *
5199767fToomas Soome * Redistribution and use in source and binary forms, with or without
6199767fToomas Soome * modification, are permitted provided that the following conditions
7199767fToomas Soome * are met:
8199767fToomas Soome * 1. Redistributions of source code must retain the above copyright
9199767fToomas Soome *    notice, this list of conditions and the following disclaimer.
10199767fToomas Soome * 2. Redistributions in binary form must reproduce the above copyright
11199767fToomas Soome *    notice, this list of conditions and the following disclaimer in the
12199767fToomas Soome *    documentation and/or other materials provided with the distribution.
13199767fToomas Soome * 4. Neither the name of the University nor the names of its contributors
14199767fToomas Soome *    may be used to endorse or promote products derived from this software
15199767fToomas Soome *    without specific prior written permission.
16199767fToomas Soome *
17199767fToomas Soome * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
18199767fToomas Soome * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19199767fToomas Soome * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20199767fToomas Soome * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
21199767fToomas Soome * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22199767fToomas Soome * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23199767fToomas Soome * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24199767fToomas Soome * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25199767fToomas Soome * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26199767fToomas Soome * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27199767fToomas Soome * SUCH DAMAGE.
28199767fToomas Soome *
29199767fToomas Soome *	@(#)syslimits.h	8.1 (Berkeley) 6/2/93
30199767fToomas Soome * $FreeBSD$
31199767fToomas Soome */
32199767fToomas Soome
33199767fToomas Soome#ifndef _SYS_SYSLIMITS_H_
34199767fToomas Soome#define _SYS_SYSLIMITS_H_
35199767fToomas Soome
36199767fToomas Soome#if !defined(_KERNEL) && !defined(_LIMITS_H_) && !defined(_SYS_PARAM_H_)
37199767fToomas Soome#ifndef _SYS_CDEFS_H_
38199767fToomas Soome#error this file needs sys/cdefs.h as a prerequisite
39199767fToomas Soome#endif
40199767fToomas Soome#ifdef __CC_SUPPORTS_WARNING
41199767fToomas Soome#warning "No user-serviceable parts inside."
42199767fToomas Soome#endif
43199767fToomas Soome#endif
44199767fToomas Soome
45199767fToomas Soome/*
46199767fToomas Soome * Do not add any new variables here.  (See the comment at the end of
47199767fToomas Soome * the file for why.)
48199767fToomas Soome */
49199767fToomas Soome#define	ARG_MAX			262144	/* max bytes for an exec function */
50199767fToomas Soome#ifndef CHILD_MAX
51199767fToomas Soome#define	CHILD_MAX		   40	/* max simultaneous processes */
52199767fToomas Soome#endif
53199767fToomas Soome#define	LINK_MAX		32767	/* max file link count */
54199767fToomas Soome#define	MAX_CANON		  255	/* max bytes in term canon input line */
55199767fToomas Soome#define	MAX_INPUT		  255	/* max bytes in terminal input */
56199767fToomas Soome#define	NAME_MAX		  255	/* max bytes in a file name */
57199767fToomas Soome#ifndef NGROUPS_MAX
58199767fToomas Soome#define	NGROUPS_MAX	 	 1023	/* max supplemental group id's */
59199767fToomas Soome#endif
60199767fToomas Soome#ifndef OPEN_MAX
61199767fToomas Soome#define	OPEN_MAX		   64	/* max open files per process */
62199767fToomas Soome#endif
63199767fToomas Soome#define	PATH_MAX		 1024	/* max bytes in pathname */
64199767fToomas Soome#define	PIPE_BUF		  512	/* max bytes for atomic pipe writes */
65199767fToomas Soome#define	IOV_MAX			 1024	/* max elements in i/o vector */
66199767fToomas Soome
67199767fToomas Soome/*
68199767fToomas Soome * We leave the following values undefined to force applications to either
69199767fToomas Soome * assume conservative values or call sysconf() to get the current value.
70199767fToomas Soome *
71199767fToomas Soome * HOST_NAME_MAX
72199767fToomas Soome *
73199767fToomas Soome * (We should do this for most of the values currently defined here,
74199767fToomas Soome * but many programs are not prepared to deal with this yet.)
75199767fToomas Soome */
76199767fToomas Soome#endif
77