1 | /** |
---|
2 | * @file rtems/posix/config.h |
---|
3 | * |
---|
4 | * This include file contains the table of user defined configuration |
---|
5 | * parameters specific for the POSIX API. |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * COPYRIGHT (c) 1989-2008. |
---|
10 | * On-Line Applications Research Corporation (OAR). |
---|
11 | * |
---|
12 | * The license and distribution terms for this file may be |
---|
13 | * found in the file LICENSE in this distribution or at |
---|
14 | * http://www.rtems.com/license/LICENSE. |
---|
15 | * |
---|
16 | * $Id$ |
---|
17 | */ |
---|
18 | |
---|
19 | #ifndef _RTEMS_POSIX_CONFIG_H |
---|
20 | #define _RTEMS_POSIX_CONFIG_H |
---|
21 | |
---|
22 | #ifdef __cplusplus |
---|
23 | extern "C" { |
---|
24 | #endif |
---|
25 | |
---|
26 | /* |
---|
27 | * XXX |
---|
28 | * |
---|
29 | * The following records define the Configuration Table. The |
---|
30 | * information contained in this table is required in all |
---|
31 | * RTEMS systems, whether single or multiprocessor. This |
---|
32 | * table primarily defines the following: |
---|
33 | * |
---|
34 | * + required number of each object type |
---|
35 | */ |
---|
36 | |
---|
37 | /* |
---|
38 | * For now, we are only allowing the user to specify the entry point |
---|
39 | * and stack size for POSIX initialization threads. |
---|
40 | */ |
---|
41 | |
---|
42 | typedef struct { |
---|
43 | void *(*thread_entry)(void *); |
---|
44 | int stack_size; |
---|
45 | } posix_initialization_threads_table; |
---|
46 | |
---|
47 | typedef struct { |
---|
48 | int maximum_threads; |
---|
49 | int maximum_mutexes; |
---|
50 | int maximum_condition_variables; |
---|
51 | int maximum_keys; |
---|
52 | int maximum_timers; |
---|
53 | int maximum_queued_signals; |
---|
54 | int maximum_message_queues; |
---|
55 | int maximum_semaphores; |
---|
56 | int maximum_barriers; |
---|
57 | int maximum_rwlocks; |
---|
58 | int maximum_spinlocks; |
---|
59 | int number_of_initialization_threads; |
---|
60 | posix_initialization_threads_table *User_initialization_threads_table; |
---|
61 | } posix_api_configuration_table; |
---|
62 | |
---|
63 | /** |
---|
64 | * @brief POSIX API Configuration Table |
---|
65 | * |
---|
66 | * This is the POSIX API Configuration Table expected to be generated |
---|
67 | * by confdefs.h. |
---|
68 | */ |
---|
69 | extern posix_api_configuration_table Configuration_POSIX_API; |
---|
70 | |
---|
71 | #ifdef __cplusplus |
---|
72 | } |
---|
73 | #endif |
---|
74 | |
---|
75 | #endif |
---|
76 | /* end of include file */ |
---|