source: rtems/testsuites/psxtests/psxchroot01/main.c @ ba74ebde

5
Last change on this file since ba74ebde was ba74ebde, checked in by Sebastian Huber <sebastian.huber@…>, on 02/14/20 at 18:09:56

libio: Add POSIX user environment pointer to TCB

The IO library used a POSIX key to store an optional POSIX user
environment pointer. This pulled in the POSIX keys support in every
application configuration. Add a user environment pointer to the thread
control block (TCB) instead. Applications which do not need the POSIX
user environment will just get an overhead of one pointer per thread.

Close #3882.

  • Property mode set to 100644
File size: 837 bytes
Line 
1/*
2 *  Simple test program -- simplified version of sample test hello.
3 */
4
5
6#ifdef HAVE_CONFIG_H
7#include "config.h"
8#endif
9
10#include <bsp.h>
11#include <pmacros.h>
12
13/* forward declarations to avoid warnings */
14rtems_task Init(rtems_task_argument argument);
15int test_main(void);
16
17rtems_task Init(
18  rtems_task_argument ignored
19)
20{
21  test_main();
22  rtems_test_exit( 0 );
23}
24
25/* configuration information */
26
27/* NOTICE: the clock driver is explicitly disabled */
28#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
29#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
30
31#define CONFIGURE_MAXIMUM_FILE_DESCRIPTORS 10
32
33#define CONFIGURE_MAXIMUM_TASKS 1
34
35#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
36
37#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
38
39#define CONFIGURE_INIT
40
41#include <rtems/confdefs.h>
42
43/* end of file */
Note: See TracBrowser for help on using the repository browser.