limits.h revision 21759
11539Srgrimes/* 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 341539Srgrimes */ 351539Srgrimes 361539Srgrimes#ifndef _LIMITS_H_ 371539Srgrimes#define _LIMITS_H_ 381539Srgrimes 3921759Sache#if !defined(_ANSI_SOURCE) 401539Srgrimes#define _POSIX_ARG_MAX 4096 411539Srgrimes#define _POSIX_CHILD_MAX 6 421539Srgrimes#define _POSIX_LINK_MAX 8 431539Srgrimes#define _POSIX_MAX_CANON 255 441539Srgrimes#define _POSIX_MAX_INPUT 255 451539Srgrimes#define _POSIX_NAME_MAX 14 461539Srgrimes#define _POSIX_NGROUPS_MAX 0 471539Srgrimes#define _POSIX_OPEN_MAX 16 481539Srgrimes#define _POSIX_PATH_MAX 255 491539Srgrimes#define _POSIX_PIPE_BUF 512 501539Srgrimes#define _POSIX_SSIZE_MAX 32767 511539Srgrimes#define _POSIX_STREAM_MAX 8 521539Srgrimes#define _POSIX_TZNAME_MAX 3 531539Srgrimes 541539Srgrimes#define _POSIX2_BC_BASE_MAX 99 551539Srgrimes#define _POSIX2_BC_DIM_MAX 2048 561539Srgrimes#define _POSIX2_BC_SCALE_MAX 99 571539Srgrimes#define _POSIX2_BC_STRING_MAX 1000 581539Srgrimes#define _POSIX2_EQUIV_CLASS_MAX 2 591539Srgrimes#define _POSIX2_EXPR_NEST_MAX 32 601539Srgrimes#define _POSIX2_LINE_MAX 2048 611539Srgrimes#define _POSIX2_RE_DUP_MAX 255 6221759Sache#endif /* !_ANSI_SOURCE */ 631539Srgrimes 6421759Sache#if (!defined(_ANSI_SOURCE)&&!defined(_POSIX_SOURCE)) || defined(_XOPEN_SOURCE) 6521759Sache#define PASS_MAX 128 6621759Sache 6721759Sache#define NL_ARGMAX 9 6821759Sache#define NL_LANGMAX 14 6921759Sache#define NL_MSGMAX 32767 7021759Sache#define NL_NMAX 1 7121759Sache#define NL_SETMAX 255 7221759Sache#define NL_TEXTMAX 255 7321759Sache#endif 7421759Sache 751539Srgrimes#include <machine/limits.h> 761539Srgrimes#include <sys/syslimits.h> 771539Srgrimes 781539Srgrimes#endif /* !_LIMITS_H_ */ 79