xref: /haiku/headers/posix/limits.h (revision e9c4d47ad719d6fd67cd9b75b41ebbec563e7a79)
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 PAGE_SIZE				(4096)
41 #define PAGESIZE				(4096)
42 #define PATH_MAX				(1024)
43 #define PIPE_MAX				(512)
44 #define PTHREAD_KEYS_MAX		256
45 #define PTHREAD_STACK_MIN		4096
46 #define SSIZE_MAX		  		(2147483647L)
47 #define TTY_NAME_MAX			(256)
48 #define TZNAME_MAX		  		(32)
49 #define	SYMLINK_MAX				(1024)
50 #define	SYMLOOP_MAX				(16)
51 
52 #define _POSIX_ARG_MAX	  		(32768)
53 #define _POSIX_CHILD_MAX		(1024)
54 #define _POSIX_LINK_MAX	 		(1)
55 #define _POSIX_LOGIN_NAME_MAX	(9)
56 #define _POSIX_MAX_CANON		(255)
57 #define _POSIX_MAX_INPUT		(255)
58 #define _POSIX_NAME_MAX	 		(255)
59 #define _POSIX_NGROUPS_MAX  	(8)
60 #define _POSIX_OPEN_MAX	 		(128)
61 #define _POSIX_PATH_MAX	 		(1024)
62 #define _POSIX_PIPE_BUF	 		(512)
63 #define _POSIX_SSIZE_MAX		(2147483647L)
64 #define _POSIX_STREAM_MAX   	(8)
65 #define _POSIX_TTY_NAME_MAX		(256)
66 #define _POSIX_TZNAME_MAX   	(3)
67 
68 #define _POSIX2_LINE_MAX		(2048)
69 
70 #endif /* _LIBC_LIMITS_H_ */
71