1 #ifndef _LIBC_LIMITS_H_ 2 #define _LIBC_LIMITS_H_ 3 // Note: The header guard is checked in gcc's limits.h. 4 5 #include <float.h> /* for DBL_DIG, FLT_DIG, etc */ 6 7 /* _GCC_LIMITS_H_ is defined by GCC's internal limits.h to avoid 8 * collisions with any defines in this file. 9 */ 10 #ifndef _GCC_LIMITS_H_ 11 # include_next <limits.h> 12 #endif 13 14 #define LONGLONG_MIN (-9223372036854775807LL - 1) /* these are Be specific */ 15 #define LONGLONG_MAX (9223372036854775807LL) 16 #define ULONGLONG_MAX (0xffffffffffffffffULL) 17 18 #define ULLONG_MAX ULONGLONG_MAX 19 #define LLONG_MAX LONGLONG_MAX 20 #define LLONG_MIN LONGLONG_MIN 21 22 #define OFF_MAX LLONG_MAX 23 #define OFF_MIN LLONG_MIN 24 25 /* These are various BeOS implementation limits */ 26 27 #define ARG_MAX (32768) 28 #define ATEXIT_MAX (32) 29 #define CHILD_MAX (1024) 30 #define IOV_MAX (1024) 31 #define FILESIZEBITS (64) 32 #define LINE_MAX (2048) 33 #define LINK_MAX (1) 34 #define LOGIN_NAME_MAX (32) 35 #define MAX_CANON (255) 36 #define MAX_INPUT (255) 37 #define NAME_MAX (256) 38 #define NGROUPS_MAX (32) 39 #define OPEN_MAX (128) 40 #define PATH_MAX (1024) 41 #define PIPE_MAX (512) 42 #define SSIZE_MAX (2147483647L) 43 #define TTY_NAME_MAX (256) 44 #define TZNAME_MAX (32) 45 #define SYMLINK_MAX (1024) 46 #define SYMLOOP_MAX (16) 47 48 #define _POSIX_ARG_MAX (32768) 49 #define _POSIX_CHILD_MAX (1024) 50 #define _POSIX_LINK_MAX (1) 51 #define _POSIX_LOGIN_NAME_MAX (9) 52 #define _POSIX_MAX_CANON (255) 53 #define _POSIX_MAX_INPUT (255) 54 #define _POSIX_NAME_MAX (255) 55 #define _POSIX_NGROUPS_MAX (0) 56 #define _POSIX_OPEN_MAX (128) 57 #define _POSIX_PATH_MAX (1024) 58 #define _POSIX_PIPE_BUF (512) 59 #define _POSIX_SSIZE_MAX (2147483647L) 60 #define _POSIX_STREAM_MAX (8) 61 #define _POSIX_TTY_NAME_MAX (256) 62 #define _POSIX_TZNAME_MAX (3) 63 64 #define _POSIX2_LINE_MAX (2048) 65 66 #endif /* _LIBC_LIMITS_H_ */ 67