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