OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [sys/] [rtems/] [include/] [limits.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1010 ivang
/*
2
 *  This file lists the minimums for the limits set by each of
3
 *  the POSIX features subsets.
4
 *
5
 *  XXX: Careful attention needs to be paid to section 2.8 in 1003.1b-1993
6
 *       to segregrate the variables below based on their "class" according
7
 *       to our implementation.  We also need to set the Run-Time Invariant
8
 *       and other related values.
9
 *
10
 *  $Id: limits.h,v 1.1 2002-08-23 22:38:07 ivang Exp $
11
 */
12
 
13
#ifndef _GCC_LIMITS_H_  /* if we have not seen gcc's limits.h yet */
14
#include_next <limits.h>
15
#endif
16
 
17
#ifndef __POSIX_LIMITS_h
18
#define __POSIX_LIMITS_h
19
 
20
/****************************************************************************
21
 ****************************************************************************
22
 *                                                                          *
23
 *         P1003.1b-1993 defines the constants below this comment.          *
24
 *                                                                          *
25
 ****************************************************************************
26
 ****************************************************************************/
27
 
28
#define _POSIX_AIO_LISTIO_MAX   2
29
#define _POSIX_AIO_MAX          1
30
#define _POSIX_ARG_MAX          4096
31
#define _POSIX_CHILD_MAX        6
32
#define _POSIX_DELAYTIMER_MAX   32
33
#define _POSIX_LINK_MAX         8
34
#define _POSIX_MAX_CANON        255
35
#define _POSIX_MAX_INPUT        255
36
#define _POSIX_MQ_OPEN_MAX      8
37
#define _POSIX_MQ_PRIO_MAX      32
38
#define _POSIX_NAME_MAX         255
39
#define _POSIX_NGROUPS_MAX      0
40
#define _POSIX_OPEN_MAX         16
41
#define _POSIX_PATH_MAX         255
42
#define _POSIX_PIPE_BUF         512
43
#define _POSIX_RTSIG_MAX        8
44
#define _POSIX_SEM_NSEMS_MAX    256
45
#define _POSIX_SEM_VALUE_MAX    32767
46
#define _POSIX_SIGQUEUE_MAX     32
47
#define _POSIX_SSIZE_MAX        32767
48
#define _POSIX_STREAM_MAX       8
49
#define _POSIX_TIMER_MAX        32
50
#define _POSIX_TZNAME_MAX       3
51
 
52
/*
53
 *  Definitions of the following may be omitted if the value is >= stated
54
 *  minimum but is indeterminate.
55
 */
56
 
57
#define AIO_LISTIO_MAX          2
58
#define AIO_MAX                 1
59
#define AIO_PRIO_DELTA_MAX      0
60
#define ARG_MAX                 4096
61
#define CHILD_MAX               6
62
#define DELAYTIMER_MAX          32
63
#define MQ_OPEN_MAX             8
64
#define MQ_PRIO_MAX             32
65
#define OPEN_MAX                16
66
#define PAGESIZE                1
67
#define RTSIG_MAX               8
68
#define SEM_NSEMS_MAX           256
69
#define SEM_VALUE_MAX           32767
70
#define SIGQUEUE_MAX            32
71
#define STREAM_MAX              8
72
#define TIMER_MAX               32
73
#define TZNAME_MAX              3
74
 
75
/*
76
 *  Pathname Variables
77
 */
78
 
79
#define LINK_MAX                8
80
#define MAX_CANON               255
81
#define MAX_INPUT               255
82
#define NAME_MAX                255
83
#define PATH_MAX                255
84
#define PIPE_BUF                512
85
 
86
/*
87
 *  Invariant values
88
 */
89
 
90
#define SSIZE_MAX               32767
91
 
92
/*
93
 *  Maximum Values
94
 */
95
 
96
#define _POSIX_CLOCKRES_MIN      0   /* in nanoseconds */
97
 
98
/****************************************************************************
99
 ****************************************************************************
100
 *                                                                          *
101
 *         P1003.1c/D10 defines the constants below this comment.           *
102
 *
103
 *  XXX: doc seems to have printing problems in this table :(
104
 *                                                                          *
105
 ****************************************************************************
106
 ****************************************************************************/
107
 
108
#define _POSIX_LOGIN_NAME_MAX                9
109
#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS  4
110
#define _POSIX_THREAD_KEYS_MAX               28
111
#define _POSIX_THREAD_THREADS_MAX            64
112
#define _POSIX_TTY_NAME_MAX                  9
113
 
114
/*
115
 *  Definitions of the following may be omitted if the value is >= stated
116
 *  minimum but is indeterminate.
117
 *
118
 *  NOTE:  LOGIN_NAME_MAX is named LOGNAME_MAX under Solaris 2.x.  Perhaps
119
 *         the draft specification will be changing.  jrs 05/24/96
120
 */
121
 
122
#define LOGIN_NAME_MAX                      _POSIX_LOGIN_NAME_MAX
123
#define TTY_NAME_MAX                        _POSIX_TTY_NAME_MAX
124
#define PTHREAD_DESTRUCTOR_ITERATIONS       _POSIX_THREAD_DESTRUCTOR_ITERATIONS
125
 
126
/*
127
 *  RTEMS is smart enough to give us the minimum stack size if we ask
128
 *  for too little.  Because the real RTEMS limit for this is cpu dependent
129
 *  AND rtems header files are not installed yet, we cannot use the cpu
130
 *  dependent constant CPU_STACK_MINIMUM_SIZE.  Moreover, we do not want
131
 *  to duplicate that information here so we will just let RTEMS magically
132
 *  give us its minimum stack size.
133
 *
134
 *  NOTE:  The other alternative is to have this be a macro for a
135
 *         routine in RTEMS which returns the constant.
136
 */
137
 
138
#define PTHREAD_STACK_MIN                   0
139
 
140
/*
141
 *  The maximum number of keys (PTHREAD_KEYS_MAX) and threads
142
 *  (PTHREAD_THREADS_MAX) are configurable and may exceed the minimum.
143
 *
144
#define PTHREAD_KEYS_MAX                    _POSIX_THREAD_KEYS_MAX
145
#define PTHREAD_THREADS_MAX                 _POSIX_THREAD_THREADS_MAX
146
*/
147
 
148
 
149
/****************************************************************************
150
 ****************************************************************************
151
 *                                                                          *
152
 *         P1003.4b/D8 defines the constants below this comment.            *
153
 *                                                                          *
154
 ****************************************************************************
155
 ****************************************************************************/
156
 
157
#define _POSIX_INTERRUPT_OVERRUN_MAX        32
158
 
159
/*
160
 *  Definitions of the following may be omitted if the value is >= stated
161
 *  minimum but is indeterminate.
162
 */
163
 
164
#define INTERRUPT_OVERRUN_MAX               32
165
 
166
/*
167
 *  Pathname Variables
168
 */
169
 
170
#define MIN_ALLOC_SIZE      
171
#define REC_MIN_XFER_SIZE   
172
#define REC_MAX_XFER_SIZE   
173
#define REC_INCR_XFER_SIZE  
174
#define REC_XFER_ALIGN      
175
#define MAX_ATOMIC_SIZE     
176
 
177
#endif
178
/* end of include file */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.