1 #ifndef _LINUX_LIMITS_H 2 #define _LINUX_LIMITS_H 3 4 #define NAME_MAX 255 5 6 /* 7 * It's silly to have NR_OPEN bigger than NR_FILE, but I'll fix 8 * that later. Anyway, now the file code is no longer dependent 9 * on bitmaps in unsigned longs, but uses the new fd_set structure.. 10 * 11 * Some programs (notably those using select()) may have to be 12 * recompiled to take full advantage of the new limits.. 13 */ 14 #define NR_OPEN 256 15 #define NR_INODE 128 16 #define NR_FILE 128 17 #define NR_SUPER 16 18 #define NR_HASH 997 19 #define NR_FILE_LOCKS 32 20 #define BLOCK_SIZE 1024 21 #define BLOCK_SIZE_BITS 10 22 #define MAX_CHRDEV 32 23 #define MAX_BLKDEV 32 24 25 #define NGROUPS_MAX 32 /* supplemental group IDs are available */ 26 #define ARG_MAX 131072 /* # bytes of args + environ for exec() */ 27 #define CHILD_MAX 999 /* no limit :-) */ 28 #define OPEN_MAX 256 /* # open files a process may have */ 29 #define LINK_MAX 127 /* # links a file may have */ 30 #define MAX_CANON 255 /* size of the canonical input queue */ 31 #define MAX_INPUT 255 /* size of the type-ahead buffer */ 32 #define NAME_MAX 255 /* # chars in a file name */ 33 #define PATH_MAX 1024 /* # chars in a path name */ 34 #define PIPE_BUF 4095 /* # bytes in atomic write to a pipe */ 35 36 #endif