Subversion Repositories shark

Rev

Rev 2 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Paolo Gai           <pj@gandalf.sssup.it>
10
 *   Massimiliano Giorgi <massy@gandalf.sssup.it>
11
 *   Luca Abeni          <luca@gandalf.sssup.it>
12
 *   (see the web pages for full authors list)
13
 *
14
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
15
 *
16
 * http://www.sssup.it
17
 * http://retis.sssup.it
18
 * http://shark.sssup.it
19
 */
20
 
21
/**
22
 ------------
23
 CVS :        $Id: limits.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $
24
 
25
 File:        $File$
26
 Revision:    $Revision: 1.1.1.1 $
27
 Last update: $Date: 2002-03-29 14:12:51 $
28
 ------------
29
 
30
 limits.h
31
 
32
**/
33
 
34
/*
35
 * Copyright (C) 2000 Paolo Gai
36
 *
37
 * This program is free software; you can redistribute it and/or modify
38
 * it under the terms of the GNU General Public License as published by
39
 * the Free Software Foundation; either version 2 of the License, or
40
 * (at your option) any later version.
41
 *
42
 * This program is distributed in the hope that it will be useful,
43
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
44
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
45
 * GNU General Public License for more details.
46
 *
47
 * You should have received a copy of the GNU General Public License
48
 * along with this program; if not, write to the Free Software
49
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
50
 *
51
 */
52
#ifndef __LIMITS_H__
53
#define __LIMITS_H__
54
 
55
#include <endian.h>
56
#include <bits/limits.h>
57
#include <kernel/const.h>
58
 
59
// table 2-3
60
#define _POSIX_AIO_LISTIO_MAX                   2
61
#define _POSIX_AIO_MAX                          1
62
#define _POSIX_ARG_MAX                          4096
63
#define _POSIX_CHILD_MAX                        6
64
#define _POSIX_DELAYTIMER_MAX                   32
65
#define _POSIX_LINK_MAX                         1
66
#define _POSIX_LOGIN_NAME_MAX                   9
67
#define _POSIX_MAX_CANON                        255
68
#define _POSIX_MAX_INPUT                        255
69
#define _POSIX_MQ_OPEN_MAX                      8
70
#define _POSIX_MQ_PRIO_MAX                      32
71
#define _POSIX_NAME_MAX                         FILENAME_MAX
72
#define _POSIX_NGROUPS_MAX                      0
73
#define _POSIX_OPEN_MAX                         MAXOPENFILES
74
#define _POSIX_PATH_MAX                         MAXPATHNAMELEN
75
#define _POSIX_PIPE_BUF                         512
76
#define _POSIX_RTSIG_MAX                        8
77
 
78
// table 5-2
79
#define _POSIX_ASYNC_IO                         0
80
#define _POSIX_CHOWN_RESTRICTED                 0
81
#define _POSIX_NO_TRUNC                         1 
82
#define _POSIX_PRIO_IO                          0 
83
#define _POSIX_SYNC_IO                          0
84
#define _POSIX_VDISABLE                         0
85
 
86
// must be equal to MAX_SEM defined in modules/hartsem.h
87
#define _POSIX_SEM_NSEMS_MAX                    256
88
#define _POSIX_SEM_VALUE_MAX                    32767
89
#define _POSIX_SIGQUEUE_MAX                     32
90
#define _POSIX_SSIZE_MAX                        32767
91
#define _POSIX_STREAM_MAX                       8
92
#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS     4
93
#define _POSIX_THREAD_KEYS_MAX                  128
94
#define _POSIX_THREAD_THREADS_MAX               64
95
#define _POSIX_TTY_NAME_MAX                     9
96
#define _POSIX_TIMER_MAX                        32
97
#define _POSIX_TZNAME_MAX                       3
98
 
99
// table 2-4
100
#define NGROUPS_MAX                             _POSIX_NGROUPS_MAX
101
 
102
// table 2-5
103
#define AIO_LISTIO_MAX                          _POSIX_AIO_LISTIO_MAX
104
#define AIO_MAX                                 _POSIX_AIO_MAX
105
#define AIO_PRIO_DELTA_MAX                      0
106
#define ARG_MAX                                 _POSIX_ARG_MAX
107
#define CHILD_MAX                               _POSIX_CHILD_MAX
108
#define DELAYTIMER_MAX                          _POSIX_DELAYTIMER_MAX
109
#define LOGIN_NAME_MAX                          _POSIX_LOGIN_NAME_MAX
110
#define MQ_OPEN_MAX                             _POSIX_MQ_OPEN_MAX
111
#define MQ_PRIO_MAX                             _POSIX_MQ_PRIO_MAX
112
#ifndef OPEN_MAX
113
#define OPEN_MAX                                _POSIX_OPEN_MAX
114
#endif
115
#define PAGESIZE                                1
116
#define PTHREAD_DESTRUCTOR_ITERATIONS           _POSIX_THREAD_DESTRUCTOR_ITERATIONS
117
#define PTHREAD_KEYS_MAX                        _POSIX_THREAD_KEYS_MAX
118
#define PTHREAD_STACK_MIN                       STACK_SIZE
119
#define PTHREAD_THREADS_MAX                     MAX_PROC
120
#define RTSIG_MAX                               22UL
121
#define SEM_NSEMS_MAX                           _POSIX_SEM_NSEMS_MAX
122
#define SEM_VALUE_MAX                           _POSIX_SEM_VALUE_MAX
123
#define SIGQUEUE_MAX                            64
124
#define STREAM_MAX                              _POSIX_STREAM_MAX
125
#define TIMER_MAX                               _POSIX_TIMER_MAX
126
#define TTY_NAME_MAX                            _POSIX_TTY_NAME_MAX
127
#define TZNAME_MAX                              _POSIX_TZNAME_MAX
128
 
129
// table 2-6
130
#define LINK_MAX                                _POSIX_LINK_MAX
131
#define MAX_CANON                               _POSIX_MAX_CANON
132
#define MAX_INPUT                               _POSIX_MAX_INPUT
133
#ifndef NAME_MAX
134
#define NAME_MAX                                _POSIX_NAME_MAX
135
#endif
136
#ifndef PATH_MAX
137
#define PATH_MAX                                _POSIX_PATH_MAX
138
#endif
139
#define PIPE_BUF                                _POSIX_PIPE_BUF
140
 
141
// table 2-7
142
#define SSIZE_MAX                               _POSIX_SSIZE_MAX
143
 
144
// table 2-7a
145
#define _POSIX_CLOCKRES_MIN                     20000000L
146
 
147
#endif