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) /* XXXdbg */ 29 #define CHILD_MAX (1024) 30 #define IOV_MAX (256) /* really there is no limit */ 31 #define FILESIZEBITS (64) 32 #define LINK_MAX (1) 33 #define LOGIN_NAME_MAX (32) /* XXXdbg */ 34 #define MAX_CANON (255) 35 #define MAX_INPUT (255) 36 #define NAME_MAX (256) 37 #define NGROUPS_MAX (32) 38 #define OPEN_MAX (128) 39 #define PATH_MAX (1024) 40 #define PIPE_MAX (512) 41 #define SSIZE_MAX (2147483647L) 42 #define TTY_NAME_MAX (256) 43 #define TZNAME_MAX (32) 44 #define SYMLINK_MAX (1024) 45 #define SYMLOOP_MAX (16) 46 47 #define _POSIX_ARG_MAX (32768) 48 #define _POSIX_CHILD_MAX (1024) 49 #define _POSIX_LINK_MAX (1) 50 #define _POSIX_LOGIN_NAME_MAX (9) /* XXXdbg */ 51 #define _POSIX_MAX_CANON (255) 52 #define _POSIX_MAX_INPUT (255) 53 #define _POSIX_NAME_MAX (255) 54 #define _POSIX_NGROUPS_MAX (0) 55 #define _POSIX_OPEN_MAX (128) 56 #define _POSIX_PATH_MAX (1024) 57 #define _POSIX_PIPE_BUF (512) 58 #define _POSIX_SSIZE_MAX (2147483647L) 59 #define _POSIX_STREAM_MAX (8) 60 #define _POSIX_TTY_NAME_MAX (256) 61 #define _POSIX_TZNAME_MAX (3) 62 63 #endif /* _LIBC_LIMITS_H_ */ 64