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