]> rtime.felk.cvut.cz Git - l4.git/blob - kernel/fiasco/src/lib/minilibc/sparc/include/limits.h
update
[l4.git] / kernel / fiasco / src / lib / minilibc / sparc / include / limits.h
1 #ifndef _LIMITS_H
2 #define _LIMITS_H
3
4 //#include <endian.h>
5
6 #define CHAR_BIT 8
7
8 #define SCHAR_MIN (-128)
9 #define SCHAR_MAX 0x7f
10 #define UCHAR_MAX 0xff
11
12 #define SHRT_MIN (-SHRT_MAX-1)
13 #define SHRT_MAX 0x7fff
14 #define USHRT_MAX 0xffff
15
16 #define INT_MIN (-INT_MAX-1)
17 #define INT_MAX 0x7fffffff
18 #define UINT_MAX 0xffffffff
19
20 #if __WORDSIZE == 64
21 #define LONG_MAX 9223372036854775807L
22 #define ULONG_MAX 18446744073709551615UL
23 #else
24 #define LONG_MAX 2147483647L
25 #define ULONG_MAX 4294967295UL
26 #endif
27 #define LONG_MIN (-LONG_MAX - 1L)
28
29 #define LLONG_MAX 9223372036854775807LL
30 #define LLONG_MIN (-LLONG_MAX - 1LL)
31
32 /* Maximum value an `unsigned long long int' can hold.  (Minimum is 0.)  */
33 #define ULLONG_MAX 18446744073709551615ULL
34 #define ULONG_LONG_MAX ULLONG_MAX
35
36 #define SSIZE_MIN INT_MIN
37 #define SSIZE_MAX INT_MAX
38
39 #define PASS_MAX        256
40
41 #define NR_OPEN         1024
42
43 #define NGROUPS_MAX     32      /* supplemental group IDs are available */
44 #define ARG_MAX         131072  /* # bytes of args + environ for exec() */
45 #define CHILD_MAX       999    /* no limit :-) */
46 #define OPEN_MAX        256     /* # open files a process may have */
47 #define LINK_MAX        127     /* # links a file may have */
48 #define MAX_CANON       255     /* size of the canonical input queue */
49 #define MAX_INPUT       255     /* size of the type-ahead buffer */
50 #define NAME_MAX        255     /* # chars in a file name */
51 #define PATH_MAX        4095    /* # chars in a path name */
52 #define PIPE_BUF        4096    /* # bytes in atomic write to a pipe */
53
54 #define RTSIG_MAX       32
55
56 #define LINE_MAX        2048
57
58 /* mutt demanded these */
59 #define _POSIX_PATH_MAX PATH_MAX
60 #define MB_LEN_MAX 16
61
62 #endif