limits.h revision 103762
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 103762 2002-09-21 21:28:25Z bde $ 351539Srgrimes */ 361539Srgrimes 371539Srgrimes#ifndef _LIMITS_H_ 381539Srgrimes#define _LIMITS_H_ 39103762Sbde 40103727Swollman#include <sys/cdefs.h> 411539Srgrimes 42103727Swollman#if __POSIX_VISIBLE 431539Srgrimes#define _POSIX_ARG_MAX 4096 441539Srgrimes#define _POSIX_CHILD_MAX 6 451539Srgrimes#define _POSIX_LINK_MAX 8 461539Srgrimes#define _POSIX_MAX_CANON 255 471539Srgrimes#define _POSIX_MAX_INPUT 255 481539Srgrimes#define _POSIX_NAME_MAX 14 491539Srgrimes#define _POSIX_NGROUPS_MAX 0 501539Srgrimes#define _POSIX_OPEN_MAX 16 511539Srgrimes#define _POSIX_PATH_MAX 255 521539Srgrimes#define _POSIX_PIPE_BUF 512 531539Srgrimes#define _POSIX_SSIZE_MAX 32767 541539Srgrimes#define _POSIX_STREAM_MAX 8 551539Srgrimes#define _POSIX_TZNAME_MAX 3 561539Srgrimes 571539Srgrimes#define _POSIX2_BC_BASE_MAX 99 581539Srgrimes#define _POSIX2_BC_DIM_MAX 2048 591539Srgrimes#define _POSIX2_BC_SCALE_MAX 99 601539Srgrimes#define _POSIX2_BC_STRING_MAX 1000 611539Srgrimes#define _POSIX2_EQUIV_CLASS_MAX 2 621539Srgrimes#define _POSIX2_EXPR_NEST_MAX 32 631539Srgrimes#define _POSIX2_LINE_MAX 2048 641539Srgrimes#define _POSIX2_RE_DUP_MAX 255 65103727Swollman#endif 6634030Sdufault 67103727Swollman#if __POSIX_VISIBLE >= 199309 68103762Sbde#define _POSIX_AIO_LISTIO_MAX 16 69103762Sbde#define _POSIX_AIO_MAX 1 70103762Sbde#define _POSIX_DELAYTIMER_MAX 32 71103762Sbde#define _POSIX_MQ_OPEN_MAX 8 72103762Sbde#define _POSIX_MQ_PRIO_MAX 32 73103762Sbde#define _POSIX_RTSIG_MAX 0 74103762Sbde#define _POSIX_SEM_NSEMS_MAX 256 75103762Sbde#define _POSIX_SEM_VALUE_MAX 32767 76103762Sbde#define _POSIX_SIGQUEUE_MAX 32 77103762Sbde#define _POSIX_TIMER_MAX 32 78103727Swollman#endif 7934030Sdufault 80103727Swollman#if __POSIX_VISIBLE >= 200112 81103727Swollman#define _POSIX_HOST_NAME_MAX 255 8234030Sdufault#endif 8334030Sdufault 84103727Swollman#if __XSI_VISIBLE 85103727Swollman#define _XOPEN_IOV_MAX 16 86103762Sbde#define PASS_MAX 128 /* _PASSWORD_LEN from <pwd.h> */ 8721759Sache 88103762Sbde#define NL_ARGMAX 99 /* max # of position args for printf */ 89103762Sbde#define NL_LANGMAX 31 /* max LANG name length */ 90103762Sbde#define NL_MSGMAX 32767 91103762Sbde#define NL_NMAX 1 92103762Sbde#define NL_SETMAX 255 93103762Sbde#define NL_TEXTMAX 2048 94103762Sbde#endif 9521759Sache 961539Srgrimes#include <machine/limits.h> 97103762Sbde 98103727Swollman#if __POSIX_VISIBLE 991539Srgrimes#include <sys/syslimits.h> 10032032Ssteve#endif 1011539Srgrimes 1021539Srgrimes#endif /* !_LIMITS_H_ */ 103