xref: /original-bsd/sys/sys/syslimits.h (revision 7f3e12df)
1 /*
2  * Copyright (c) 1988 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)syslimits.h	7.4 (Berkeley) 02/04/91
8  */
9 
10 #define	ARG_MAX		20480	/* max bytes for an exec function */
11 #define	CHILD_MAX	40	/* max simultaneous processes */
12 #define	LINK_MAX	32767	/* max file link count */
13 #define	MAX_CANON	255	/* max bytes in terminal canonical input line */
14 #define	MAX_INPUT	255	/* max bytes in terminal input */
15 #define	NAME_MAX	255	/* max number of bytes in a file name */
16 #define	NGROUPS_MAX	16	/* max number of supplemental group id's */
17 #define	OPEN_MAX	64	/* max open files per process */
18 #define	PATH_MAX	1024	/* max number of bytes in pathname */
19 #define	PIPE_BUF	512	/* max number of bytes for atomic pipe writes */
20 
21 #define	BC_BASE_MAX	99	/* max ibase/obase values allowed by bc(1) */
22 #define	BC_DIM_MAX	2048	/* max array elements allowed by bc(1) */
23 #define	BC_SCALE_MAX	99	/* max scale value allowed by bc(1) */
24 #define	BC_STRING_MAX	1000	/* max const string length allowed by bc(1) */
25 #define	EQUIV_CLASS_MAX	2	/* max weights for order keyword; see locale */
26 #define	EXPR_NEST_MAX	32	/* max expressions nested in expr(1) */
27 #define	LINE_MAX	2048	/* max length in bytes of an input line */
28 #define	RE_DUP_MAX	255	/* max repeated RE's using interval notation */
29