xref: /OK3568_Linux_fs/kernel/include/uapi/linux/limits.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2*4882a593Smuzhiyun #ifndef _UAPI_LINUX_LIMITS_H
3*4882a593Smuzhiyun #define _UAPI_LINUX_LIMITS_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #define NR_OPEN	        1024
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun #define NGROUPS_MAX    65536	/* supplemental group IDs are available */
8*4882a593Smuzhiyun #define ARG_MAX       131072	/* # bytes of args + environ for exec() */
9*4882a593Smuzhiyun #define LINK_MAX         127	/* # links a file may have */
10*4882a593Smuzhiyun #define MAX_CANON        255	/* size of the canonical input queue */
11*4882a593Smuzhiyun #define MAX_INPUT        255	/* size of the type-ahead buffer */
12*4882a593Smuzhiyun #define NAME_MAX         255	/* # chars in a file name */
13*4882a593Smuzhiyun #define PATH_MAX        4096	/* # chars in a path name including nul */
14*4882a593Smuzhiyun #define PIPE_BUF        4096	/* # bytes in atomic write to a pipe */
15*4882a593Smuzhiyun #define XATTR_NAME_MAX   255	/* # chars in an extended attribute name */
16*4882a593Smuzhiyun #define XATTR_SIZE_MAX 65536	/* size of an extended attribute value (64k) */
17*4882a593Smuzhiyun #define XATTR_LIST_MAX 65536	/* size of extended attribute namelist (64k) */
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun #define RTSIG_MAX	  32
20*4882a593Smuzhiyun 
21*4882a593Smuzhiyun #endif
22