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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [compat/] [posix/] [current/] [include/] [limits.h] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
#ifndef CYGONCE_LIMITS_H
2
#define CYGONCE_LIMITS_H
3
//=============================================================================
4
//
5
//      limits.h
6
//
7
//      POSIX limits header
8
//
9
//=============================================================================
10
// ####ECOSGPLCOPYRIGHTBEGIN####                                            
11
// -------------------------------------------                              
12
// This file is part of eCos, the Embedded Configurable Operating System.   
13
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
14
//
15
// eCos is free software; you can redistribute it and/or modify it under    
16
// the terms of the GNU General Public License as published by the Free     
17
// Software Foundation; either version 2 or (at your option) any later      
18
// version.                                                                 
19
//
20
// eCos is distributed in the hope that it will be useful, but WITHOUT      
21
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or    
22
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License    
23
// for more details.                                                        
24
//
25
// You should have received a copy of the GNU General Public License        
26
// along with eCos; if not, write to the Free Software Foundation, Inc.,    
27
// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.            
28
//
29
// As a special exception, if other files instantiate templates or use      
30
// macros or inline functions from this file, or you compile this file      
31
// and link it with other works to produce a work based on this file,       
32
// this file does not by itself cause the resulting work to be covered by   
33
// the GNU General Public License. However the source code for this file    
34
// must still be made available in accordance with section (3) of the GNU   
35
// General Public License v2.                                               
36
//
37
// This exception does not invalidate any other reasons why a work based    
38
// on this file might be covered by the GNU General Public License.         
39
// -------------------------------------------                              
40
// ####ECOSGPLCOPYRIGHTEND####                                              
41
//=============================================================================
42
//#####DESCRIPTIONBEGIN####
43
//
44
// Author(s):     nickg
45
// Contributors:  nickg
46
// Date:          2000-03-17
47
// Purpose:       POSIX limits header
48
// Description:   This file contains the compile time definitions that describe
49
//                the minima and current values of various values and defined
50
//                in POSIX.1 section 2.8.
51
//              
52
// Usage:
53
//              #include <limits.h>
54
//              ...
55
//              
56
//
57
//####DESCRIPTIONEND####
58
//
59
//=============================================================================
60
 
61
#include <pkgconf/posix.h>
62
 
63
//-----------------------------------------------------------------------------
64
// Runtime invariants
65
// These are all equal to or greater than the minimum values defined above.
66
 
67
// From table 2-4
68
 
69
#define NGROUPS_MAX             _POSIX_NGROUPS_MAX
70
 
71
// From table 2-5
72
 
73
#define AIO_LISTIO_MAX          _POSIX_AIO_LISTIO_MAX
74
 
75
#define AIO_MAX                 _POSIX_AIO_MAX
76
 
77
#define AIO_PRIO_DELTA_MAX      0
78
 
79
#define ARG_MAX                 _POSIX_ARG_MAX
80
 
81
#define CHILD_MAX               _POSIX_CHILD_MAX
82
 
83
#define DELAYTIMER_MAX          _POSIX_DELAYTIMER_MAX
84
 
85
#define LOGIN_NAME_MAX          _POSIX_LOGIN_NAME_MAX
86
 
87
#define PAGESIZE                1
88
 
89
#define PTHREAD_DESTRUCTOR_ITERATIONS CYGNUM_POSIX_PTHREAD_DESTRUCTOR_ITERATIONS
90
 
91
#define PTHREAD_KEYS_MAX        CYGNUM_POSIX_PTHREAD_KEYS_MAX
92
 
93
// Minimum size needed on a pthread stack to contain its per-thread control
94
// structures and per-thread data. Since we cannot include all the headers
95
// necessary to calculate this value here, the following is a generous estimate.
96
#define PTHREAD_STACK_OVERHEAD  (0x180+(PTHREAD_KEYS_MAX*sizeof(void *)))
97
 
98
#define PTHREAD_STACK_MIN       (CYGNUM_HAL_STACK_SIZE_MINIMUM+PTHREAD_STACK_OVERHEAD)
99
 
100
#define PTHREAD_THREADS_MAX     CYGNUM_POSIX_PTHREAD_THREADS_MAX
101
 
102
#define RTSIG_MAX               _POSIX_RTSIG_MAX
103
 
104
#define SEM_NSEMS_MAX           _POSIX_SEM_NSEMS_MAX
105
 
106
#define SEM_VALUE_MAX           _POSIX_SEM_VALUE_MAX
107
 
108
#define SIGQUEUE_MAX            _POSIX_SIGQUEUE_MAX
109
 
110
#define STREAM_MAX              _POSIX_STREAM_MAX
111
 
112
#define TIMER_MAX               _POSIX_TIMER_MAX
113
 
114
#define TTY_NAME_MAX            _POSIX_TTY_NAME_MAX
115
 
116
#define TZNAME_MAX              _POSIX_TZNAME_MAX
117
 
118
 
119
// From table 2-6.
120
 
121
#define MAX_CANON               _POSIX_MAX_CANON
122
 
123
#define MAX_INPUT               _POSIX_MAX_INPUT
124
 
125
#define PIPE_BUF                _POSIX_PIPE_BUF
126
 
127
 
128
//-----------------------------------------------------------------------------
129
#endif // ifndef CYGONCE_LIMITS_H
130
// End of limits.h

powered by: WebSVN 2.1.0

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