1 #ifndef CYGONCE_LIMITS_H
2 #define CYGONCE_LIMITS_H
3 //=============================================================================
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.
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.
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
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.
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.
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.
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####
46 // Contributors: nickg
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.
54 // #include <limits.h>
58 //####DESCRIPTIONEND####
60 //=============================================================================
62 #include <pkgconf/posix.h>
64 //-----------------------------------------------------------------------------
66 // These are all equal to or greater than the minimum values defined above.
70 #define NGROUPS_MAX _POSIX_NGROUPS_MAX
74 #define AIO_LISTIO_MAX _POSIX_AIO_LISTIO_MAX
76 #define AIO_MAX _POSIX_AIO_MAX
78 #define AIO_PRIO_DELTA_MAX 0
80 #define ARG_MAX _POSIX_ARG_MAX
82 #define CHILD_MAX _POSIX_CHILD_MAX
84 #define DELAYTIMER_MAX _POSIX_DELAYTIMER_MAX
86 #define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX
90 #define PTHREAD_DESTRUCTOR_ITERATIONS CYGNUM_POSIX_PTHREAD_DESTRUCTOR_ITERATIONS
92 #define PTHREAD_KEYS_MAX CYGNUM_POSIX_PTHREAD_KEYS_MAX
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 *)))
99 #define PTHREAD_STACK_MIN (CYGNUM_HAL_STACK_SIZE_MINIMUM+PTHREAD_STACK_OVERHEAD)
101 #define PTHREAD_THREADS_MAX CYGNUM_POSIX_PTHREAD_THREADS_MAX
103 #define RTSIG_MAX _POSIX_RTSIG_MAX
105 #define SEM_NSEMS_MAX _POSIX_SEM_NSEMS_MAX
107 #define SEM_VALUE_MAX _POSIX_SEM_VALUE_MAX
109 #define SIGQUEUE_MAX _POSIX_SIGQUEUE_MAX
111 #define STREAM_MAX _POSIX_STREAM_MAX
113 #define TIMER_MAX _POSIX_TIMER_MAX
115 #define TTY_NAME_MAX _POSIX_TTY_NAME_MAX
117 #define TZNAME_MAX _POSIX_TZNAME_MAX
122 #define MAX_CANON _POSIX_MAX_CANON
124 #define MAX_INPUT _POSIX_MAX_INPUT
126 #define PIPE_BUF _POSIX_PIPE_BUF
129 //-----------------------------------------------------------------------------
130 #endif // ifndef CYGONCE_LIMITS_H