1 | /* limits.h |
---|
2 | * |
---|
3 | * This file lists the minimums for the limits set by each of |
---|
4 | * the POSIX features subsets. |
---|
5 | * |
---|
6 | * XXX: Careful attention needs to be paid to section 2.8 in 1003.1b-1993 |
---|
7 | * to segregrate the variables below based on their "class" according |
---|
8 | * to our implementation. We also need to set the Run-Time Invariant |
---|
9 | * and other related values. |
---|
10 | */ |
---|
11 | |
---|
12 | #ifndef __POSIX_LIMITS_h |
---|
13 | #define __POSIX_LIMITS_h |
---|
14 | |
---|
15 | /**************************************************************************** |
---|
16 | **************************************************************************** |
---|
17 | * * |
---|
18 | * P1003.1b-1993 defines the constants below this comment. * |
---|
19 | * * |
---|
20 | **************************************************************************** |
---|
21 | ****************************************************************************/ |
---|
22 | |
---|
23 | #define _POSIX_AIO_LISTIO_MAX 2 |
---|
24 | #define _POSIX_AIO_MAX 1 |
---|
25 | #define _POSIX_ARG_MAX 4096 |
---|
26 | #define _POSIX_CHILD_MAX 6 |
---|
27 | #define _POSIX_DELAYTIMER_MAX 32 |
---|
28 | #define _POSIX_LINK_MAX 8 |
---|
29 | #define _POSIX_MAX_CANON 255 |
---|
30 | #define _POSIX_MAX_INPUT 255 |
---|
31 | #define _POSIX_MQ_OPEN_MAX 8 |
---|
32 | #define _POSIX_MQ_PRIO_MAX 32 |
---|
33 | #define _POSIX_NAME_MAX 14 |
---|
34 | #define _POSIX_NGROUPS_MAX 0 |
---|
35 | #define _POSIX_OPEN_MAX 16 |
---|
36 | #define _POSIX_PATH_MAX 255 |
---|
37 | #define _POSIX_PIPE_BUF 512 |
---|
38 | #define _POSIX_RTSIG_MAX 8 |
---|
39 | #define _POSIX_SEM_NSEMS_MAX 256 |
---|
40 | #define _POSIX_SEM_VALUE_MAX 32767 |
---|
41 | #define _POSIX_SIGQUEUE_MAX 32 |
---|
42 | #define _POSIX_SSIZE_MAX 32767 |
---|
43 | #define _POSIX_STREAM_MAX 8 |
---|
44 | #define _POSIX_TIMER_MAX 32 |
---|
45 | #define _POSIX_TZNAME_MAX 3 |
---|
46 | |
---|
47 | /* |
---|
48 | * Definitions of the following may be omitted if the value is >= stated |
---|
49 | * minimum but is indeterminate. |
---|
50 | */ |
---|
51 | |
---|
52 | #define AIO_LISTIO_MAX 2 |
---|
53 | #define AIO_MAX 1 |
---|
54 | #define AIO_PRIO_DELTA_MAX 0 |
---|
55 | #define ARG_MAX 4096 |
---|
56 | #define CHILD_MAX 6 |
---|
57 | #define DELAYTIMER_MAX 32 |
---|
58 | #define MQ_OPEN_MAX 8 |
---|
59 | #define MQ_PRIO_MAX 32 |
---|
60 | #define OPEN_MAX 16 |
---|
61 | #define PAGESIZE 1 |
---|
62 | #define RTSIG_MAX 8 |
---|
63 | #define SEM_NSEMS_MAX 256 |
---|
64 | #define SEM_VALUE_MAX 32767 |
---|
65 | #define SIGQUEUE_MAX 32 |
---|
66 | #define STREAM_MAX 8 |
---|
67 | #define TIMER_MAX 32 |
---|
68 | #define TZNAME_MAX 3 |
---|
69 | |
---|
70 | /* |
---|
71 | * Pathname Variables |
---|
72 | */ |
---|
73 | |
---|
74 | #define LINK_MAX 8 |
---|
75 | #define MAX_CANON 255 |
---|
76 | #define MAX_INPUT 255 |
---|
77 | #define NAME_MAX 14 |
---|
78 | #define PATH_MAX 255 |
---|
79 | #define PIPE_BUF 512 |
---|
80 | |
---|
81 | /* |
---|
82 | * Invariant values |
---|
83 | */ |
---|
84 | |
---|
85 | #define SSIZE_MAX 32767 |
---|
86 | |
---|
87 | /* |
---|
88 | * Maximum Values |
---|
89 | */ |
---|
90 | |
---|
91 | #define _POSIX_CLOCKRES_MIN 0 /* in nanoseconds */ |
---|
92 | |
---|
93 | /**************************************************************************** |
---|
94 | **************************************************************************** |
---|
95 | * * |
---|
96 | * P1003.1c/D10 defines the constants below this comment. * |
---|
97 | * |
---|
98 | * XXX: doc seems to have printing problems in this table :( |
---|
99 | * * |
---|
100 | **************************************************************************** |
---|
101 | ****************************************************************************/ |
---|
102 | |
---|
103 | #define _POSIX_LOGIN_NAME_MAX 9 |
---|
104 | #define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4 |
---|
105 | #define _POSIX_THREAD_KEYS_MAX 28 |
---|
106 | #define _POSIX_THREAD_THREADS_MAX 64 |
---|
107 | #define _POSIX_TTY_NAME_MAX 9 |
---|
108 | |
---|
109 | /* |
---|
110 | * Definitions of the following may be omitted if the value is >= stated |
---|
111 | * minimum but is indeterminate. |
---|
112 | */ |
---|
113 | |
---|
114 | #define LOGIN_NAME_MAX 9 |
---|
115 | #define PTHREAD_DESTRUCTOR_ITERATIONS 4 |
---|
116 | /* |
---|
117 | * The maximum number of keys (PTHREAD_KEYS_MAX) and threads |
---|
118 | * (PTHREAD_THREADS_MAX) are configurable and may exceed the minimum. |
---|
119 | */ |
---|
120 | |
---|
121 | #define TTY_NAME_MAX 9 |
---|
122 | |
---|
123 | /**************************************************************************** |
---|
124 | **************************************************************************** |
---|
125 | * * |
---|
126 | * P1003.4b/D8 defines the constants below this comment. * |
---|
127 | * * |
---|
128 | **************************************************************************** |
---|
129 | ****************************************************************************/ |
---|
130 | |
---|
131 | #define _POSIX_INTERRUPT_OVERRUN_MAX 32 |
---|
132 | |
---|
133 | /* |
---|
134 | * Definitions of the following may be omitted if the value is >= stated |
---|
135 | * minimum but is indeterminate. |
---|
136 | */ |
---|
137 | |
---|
138 | #define INTERRUPT_OVERRUN_MAX 32 |
---|
139 | |
---|
140 | /* |
---|
141 | * Pathname Variables |
---|
142 | */ |
---|
143 | |
---|
144 | #define MIN_ALLOC_SIZE |
---|
145 | #define REC_MIN_XFER_SIZE |
---|
146 | #define REC_MAX_XFER_SIZE |
---|
147 | #define REC_INCR_XFER_SIZE |
---|
148 | #define REC_XFER_ALIGN |
---|
149 | #define MAX_ATOMIC_SIZE |
---|
150 | |
---|
151 | #endif |
---|
152 | /* end of include file */ |
---|