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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [ecos-2.0/] [packages/] [compat/] [posix/] [v2_0/] [include/] [limits.h] - Blame information for rev 1254

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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