limits.h revision 50473
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 3450473Speter * $FreeBSD: head/include/limits.h 50473 1999-08-27 23:45:13Z peter $ 351539Srgrimes */ 361539Srgrimes 371539Srgrimes#ifndef _LIMITS_H_ 381539Srgrimes#define _LIMITS_H_ 3934319Sdufault#include <sys/_posix.h> 401539Srgrimes 4124898Sbde#ifndef _ANSI_SOURCE 421539Srgrimes#define _POSIX_ARG_MAX 4096 431539Srgrimes#define _POSIX_CHILD_MAX 6 441539Srgrimes#define _POSIX_LINK_MAX 8 451539Srgrimes#define _POSIX_MAX_CANON 255 461539Srgrimes#define _POSIX_MAX_INPUT 255 471539Srgrimes#define _POSIX_NAME_MAX 14 481539Srgrimes#define _POSIX_NGROUPS_MAX 0 491539Srgrimes#define _POSIX_OPEN_MAX 16 501539Srgrimes#define _POSIX_PATH_MAX 255 511539Srgrimes#define _POSIX_PIPE_BUF 512 521539Srgrimes#define _POSIX_SSIZE_MAX 32767 531539Srgrimes#define _POSIX_STREAM_MAX 8 541539Srgrimes#define _POSIX_TZNAME_MAX 3 551539Srgrimes 561539Srgrimes#define _POSIX2_BC_BASE_MAX 99 571539Srgrimes#define _POSIX2_BC_DIM_MAX 2048 581539Srgrimes#define _POSIX2_BC_SCALE_MAX 99 591539Srgrimes#define _POSIX2_BC_STRING_MAX 1000 601539Srgrimes#define _POSIX2_EQUIV_CLASS_MAX 2 611539Srgrimes#define _POSIX2_EXPR_NEST_MAX 32 621539Srgrimes#define _POSIX2_LINE_MAX 2048 631539Srgrimes#define _POSIX2_RE_DUP_MAX 255 6434030Sdufault 6534030Sdufault 6634925Sdufault#ifdef _P1003_1B_VISIBLE 6734319Sdufault 6834319Sdufault#define _POSIX_AIO_LISTIO_MAX 16 6934030Sdufault#define _POSIX_AIO_MAX 1 7034030Sdufault#define _POSIX_DELAYTIMER_MAX 32 7134030Sdufault#define _POSIX_MQ_OPEN_MAX 8 7234030Sdufault#define _POSIX_MQ_PRIO_MAX 32 7334319Sdufault#define _POSIX_RTSIG_MAX 0 7434030Sdufault#define _POSIX_SEM_NSEMS_MAX 256 7534030Sdufault#define _POSIX_SEM_VALUE_MAX 32767 7634030Sdufault#define _POSIX_SIGQUEUE_MAX 32 7734030Sdufault#define _POSIX_TIMER_MAX 32 7834030Sdufault 7934030Sdufault#endif 8034030Sdufault 8121759Sache#endif /* !_ANSI_SOURCE */ 821539Srgrimes 8324898Sbde#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) || defined(_XOPEN_SOURCE) 8421760Sache#define PASS_MAX 128 /* _PASSWORD_LEN from <pwd.h> */ 8521759Sache 8621760Sache#define NL_ARGMAX 99 /* max # of position args for printf */ 8721760Sache#define NL_LANGMAX 31 /* max LANG name length */ 8821759Sache#define NL_MSGMAX 32767 8921759Sache#define NL_NMAX 1 9021759Sache#define NL_SETMAX 255 9121760Sache#define NL_TEXTMAX 2048 9221759Sache#endif 9321759Sache 941539Srgrimes#include <machine/limits.h> 9532032Ssteve#if !defined(_ANSI_SOURCE) 961539Srgrimes#include <sys/syslimits.h> 9732032Ssteve#endif 981539Srgrimes 991539Srgrimes#endif /* !_LIMITS_H_ */ 100