2005-11-09 21:01:16 +03:00
|
|
|
#ifndef _LIBC_LIMITS_H_
|
|
|
|
#define _LIBC_LIMITS_H_
|
2008-05-11 01:30:34 +04:00
|
|
|
/* Note: The header guard is checked in gcc's limits.h. */
|
2002-07-12 00:39:30 +04:00
|
|
|
|
|
|
|
#include <float.h> /* for DBL_DIG, FLT_DIG, etc */
|
|
|
|
|
|
|
|
/* _GCC_LIMITS_H_ is defined by GCC's internal limits.h to avoid
|
|
|
|
* collisions with any defines in this file.
|
|
|
|
*/
|
2006-05-19 17:07:53 +04:00
|
|
|
#ifndef _GCC_LIMITS_H_
|
|
|
|
# include_next <limits.h>
|
|
|
|
#endif
|
2002-07-12 00:39:30 +04:00
|
|
|
|
|
|
|
#define LONGLONG_MIN (-9223372036854775807LL - 1) /* these are Be specific */
|
|
|
|
#define LONGLONG_MAX (9223372036854775807LL)
|
|
|
|
#define ULONGLONG_MAX (0xffffffffffffffffULL)
|
|
|
|
|
2003-02-14 20:34:59 +03:00
|
|
|
#define ULLONG_MAX ULONGLONG_MAX
|
|
|
|
#define LLONG_MAX LONGLONG_MAX
|
|
|
|
#define LLONG_MIN LONGLONG_MIN
|
|
|
|
|
|
|
|
#define OFF_MAX LLONG_MAX
|
|
|
|
#define OFF_MIN LLONG_MIN
|
|
|
|
|
2002-07-12 00:39:30 +04:00
|
|
|
/* These are various BeOS implementation limits */
|
|
|
|
|
|
|
|
#define ARG_MAX (32768)
|
2008-02-02 20:32:01 +03:00
|
|
|
#define ATEXIT_MAX (32)
|
2002-07-12 00:39:30 +04:00
|
|
|
#define CHILD_MAX (1024)
|
2007-08-21 23:07:10 +04:00
|
|
|
#define IOV_MAX (1024)
|
2002-07-12 00:39:30 +04:00
|
|
|
#define FILESIZEBITS (64)
|
2008-02-02 20:32:01 +03:00
|
|
|
#define LINE_MAX (2048)
|
2002-07-12 00:39:30 +04:00
|
|
|
#define LINK_MAX (1)
|
2008-02-02 20:32:01 +03:00
|
|
|
#define LOGIN_NAME_MAX (32)
|
2002-07-12 00:39:30 +04:00
|
|
|
#define MAX_CANON (255)
|
|
|
|
#define MAX_INPUT (255)
|
|
|
|
#define NAME_MAX (256)
|
|
|
|
#define NGROUPS_MAX (32)
|
|
|
|
#define OPEN_MAX (128)
|
2008-05-23 05:01:57 +04:00
|
|
|
#define PAGE_SIZE (4096)
|
|
|
|
#define PAGESIZE (4096)
|
2002-07-12 00:39:30 +04:00
|
|
|
#define PATH_MAX (1024)
|
|
|
|
#define PIPE_MAX (512)
|
2008-08-15 19:00:26 +04:00
|
|
|
#define PTHREAD_KEYS_MAX 256
|
|
|
|
#define PTHREAD_STACK_MIN 4096
|
2002-07-12 00:39:30 +04:00
|
|
|
#define SSIZE_MAX (2147483647L)
|
|
|
|
#define TTY_NAME_MAX (256)
|
|
|
|
#define TZNAME_MAX (32)
|
2006-06-21 17:49:16 +04:00
|
|
|
#define SYMLINK_MAX (1024)
|
|
|
|
#define SYMLOOP_MAX (16)
|
2002-07-12 00:39:30 +04:00
|
|
|
|
|
|
|
#define _POSIX_ARG_MAX (32768)
|
|
|
|
#define _POSIX_CHILD_MAX (1024)
|
|
|
|
#define _POSIX_LINK_MAX (1)
|
2008-02-02 20:32:01 +03:00
|
|
|
#define _POSIX_LOGIN_NAME_MAX (9)
|
2002-07-12 00:39:30 +04:00
|
|
|
#define _POSIX_MAX_CANON (255)
|
|
|
|
#define _POSIX_MAX_INPUT (255)
|
|
|
|
#define _POSIX_NAME_MAX (255)
|
2008-03-30 03:58:27 +04:00
|
|
|
#define _POSIX_NGROUPS_MAX (8)
|
2002-07-12 00:39:30 +04:00
|
|
|
#define _POSIX_OPEN_MAX (128)
|
|
|
|
#define _POSIX_PATH_MAX (1024)
|
|
|
|
#define _POSIX_PIPE_BUF (512)
|
|
|
|
#define _POSIX_SSIZE_MAX (2147483647L)
|
|
|
|
#define _POSIX_STREAM_MAX (8)
|
|
|
|
#define _POSIX_TTY_NAME_MAX (256)
|
|
|
|
#define _POSIX_TZNAME_MAX (3)
|
|
|
|
|
2008-02-02 20:32:01 +03:00
|
|
|
#define _POSIX2_LINE_MAX (2048)
|
|
|
|
|
2005-11-09 21:01:16 +03:00
|
|
|
#endif /* _LIBC_LIMITS_H_ */
|