1139825Simp/*- 21541Srgrimes * Copyright (c) 1988, 1993 31541Srgrimes * The Regents of the University of California. All rights reserved. 41541Srgrimes * 51541Srgrimes * Redistribution and use in source and binary forms, with or without 61541Srgrimes * modification, are permitted provided that the following conditions 71541Srgrimes * are met: 81541Srgrimes * 1. Redistributions of source code must retain the above copyright 91541Srgrimes * notice, this list of conditions and the following disclaimer. 101541Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 111541Srgrimes * notice, this list of conditions and the following disclaimer in the 121541Srgrimes * documentation and/or other materials provided with the distribution. 131541Srgrimes * 4. Neither the name of the University nor the names of its contributors 141541Srgrimes * may be used to endorse or promote products derived from this software 151541Srgrimes * without specific prior written permission. 161541Srgrimes * 171541Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 181541Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 191541Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 201541Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 211541Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 221541Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 231541Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 241541Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 251541Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 261541Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 271541Srgrimes * SUCH DAMAGE. 281541Srgrimes * 291541Srgrimes * @(#)syslimits.h 8.1 (Berkeley) 6/2/93 3050477Speter * $FreeBSD$ 311541Srgrimes */ 321541Srgrimes 332165Spaul#ifndef _SYS_SYSLIMITS_H_ 342165Spaul#define _SYS_SYSLIMITS_H_ 352165Spaul 36106055Swollman#if !defined(_KERNEL) && !defined(_LIMITS_H_) && !defined(_SYS_PARAM_H_) 37143063Sjoerg#ifndef _SYS_CDEFS_H_ 38143063Sjoerg#error this file needs sys/cdefs.h as a prerequisite 39143063Sjoerg#endif 40143063Sjoerg#ifdef __CC_SUPPORTS_WARNING 41106056Swollman#warning "No user-serviceable parts inside." 42106055Swollman#endif 43107396Smike#endif 44106055Swollman 45106055Swollman/* 46106055Swollman * Do not add any new variables here. (See the comment at the end of 47106055Swollman * the file for why.) 48106055Swollman */ 49142039Sobrien#define ARG_MAX 262144 /* max bytes for an exec function */ 504934Ssmace#ifndef CHILD_MAX 511541Srgrimes#define CHILD_MAX 40 /* max simultaneous processes */ 524934Ssmace#endif 531541Srgrimes#define LINK_MAX 32767 /* max file link count */ 541541Srgrimes#define MAX_CANON 255 /* max bytes in term canon input line */ 551541Srgrimes#define MAX_INPUT 255 /* max bytes in terminal input */ 561541Srgrimes#define NAME_MAX 255 /* max bytes in a file name */ 57194498Sbrooks#ifndef NGROUPS_MAX 58194498Sbrooks#define NGROUPS_MAX 1023 /* max supplemental group id's */ 59194498Sbrooks#endif 604934Ssmace#ifndef OPEN_MAX 611541Srgrimes#define OPEN_MAX 64 /* max open files per process */ 624934Ssmace#endif 631541Srgrimes#define PATH_MAX 1024 /* max bytes in pathname */ 641541Srgrimes#define PIPE_BUF 512 /* max bytes for atomic pipe writes */ 6578431Swollman#define IOV_MAX 1024 /* max elements in i/o vector */ 661541Srgrimes 67103731Swollman/* 68103731Swollman * We leave the following values undefined to force applications to either 69103731Swollman * assume conservative values or call sysconf() to get the current value. 70103731Swollman * 71103731Swollman * HOST_NAME_MAX 72106055Swollman * 73106055Swollman * (We should do this for most of the values currently defined here, 74106055Swollman * but many programs are not prepared to deal with this yet.) 75103731Swollman */ 762165Spaul#endif 77