limits.h revision 32032
132032Ssteve/*-
21539Srgrimes * Copyright (c) 1988, 1993
31539Srgrimes *	The Regents of the University of California.  All rights reserved.
41539Srgrimes *
51539Srgrimes * Redistribution and use in source and binary forms, with or without
61539Srgrimes * modification, are permitted provided that the following conditions
71539Srgrimes * are met:
81539Srgrimes * 1. Redistributions of source code must retain the above copyright
91539Srgrimes *    notice, this list of conditions and the following disclaimer.
101539Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
111539Srgrimes *    notice, this list of conditions and the following disclaimer in the
121539Srgrimes *    documentation and/or other materials provided with the distribution.
131539Srgrimes * 3. All advertising materials mentioning features or use of this software
141539Srgrimes *    must display the following acknowledgement:
151539Srgrimes *	This product includes software developed by the University of
161539Srgrimes *	California, Berkeley and its contributors.
171539Srgrimes * 4. Neither the name of the University nor the names of its contributors
181539Srgrimes *    may be used to endorse or promote products derived from this software
191539Srgrimes *    without specific prior written permission.
201539Srgrimes *
211539Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
221539Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
231539Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
241539Srgrimes * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
251539Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
261539Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
271539Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
281539Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
291539Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
301539Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
311539Srgrimes * SUCH DAMAGE.
321539Srgrimes *
331539Srgrimes *	@(#)limits.h	8.2 (Berkeley) 1/4/94
3432032Ssteve *	$Id$
351539Srgrimes */
361539Srgrimes
371539Srgrimes#ifndef _LIMITS_H_
381539Srgrimes#define	_LIMITS_H_
391539Srgrimes
4024898Sbde#ifndef _ANSI_SOURCE
411539Srgrimes#define	_POSIX_ARG_MAX		4096
421539Srgrimes#define	_POSIX_CHILD_MAX	6
431539Srgrimes#define	_POSIX_LINK_MAX		8
441539Srgrimes#define	_POSIX_MAX_CANON	255
451539Srgrimes#define	_POSIX_MAX_INPUT	255
461539Srgrimes#define	_POSIX_NAME_MAX		14
471539Srgrimes#define	_POSIX_NGROUPS_MAX	0
481539Srgrimes#define	_POSIX_OPEN_MAX		16
491539Srgrimes#define	_POSIX_PATH_MAX		255
501539Srgrimes#define	_POSIX_PIPE_BUF		512
511539Srgrimes#define	_POSIX_SSIZE_MAX	32767
521539Srgrimes#define	_POSIX_STREAM_MAX	8
531539Srgrimes#define	_POSIX_TZNAME_MAX	3
541539Srgrimes
551539Srgrimes#define	_POSIX2_BC_BASE_MAX	99
561539Srgrimes#define	_POSIX2_BC_DIM_MAX	2048
571539Srgrimes#define	_POSIX2_BC_SCALE_MAX	99
581539Srgrimes#define	_POSIX2_BC_STRING_MAX	1000
591539Srgrimes#define	_POSIX2_EQUIV_CLASS_MAX	2
601539Srgrimes#define	_POSIX2_EXPR_NEST_MAX	32
611539Srgrimes#define	_POSIX2_LINE_MAX	2048
621539Srgrimes#define	_POSIX2_RE_DUP_MAX	255
6321759Sache#endif /* !_ANSI_SOURCE */
641539Srgrimes
6524898Sbde#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) || defined(_XOPEN_SOURCE)
6621760Sache#define PASS_MAX		128	/* _PASSWORD_LEN from <pwd.h> */
6721759Sache
6821760Sache#define NL_ARGMAX		99	/* max # of position args for printf */
6921760Sache#define NL_LANGMAX		31	/* max LANG name length */
7021759Sache#define NL_MSGMAX		32767
7121759Sache#define NL_NMAX			1
7221759Sache#define NL_SETMAX		255
7321760Sache#define NL_TEXTMAX		2048
7421759Sache#endif
7521759Sache
761539Srgrimes#include <machine/limits.h>
7732032Ssteve#if !defined(_ANSI_SOURCE)
781539Srgrimes#include <sys/syslimits.h>
7932032Ssteve#endif
801539Srgrimes
811539Srgrimes#endif /* !_LIMITS_H_ */
82