source: rtems/testsuites/fstests/imfs_support/fs_support.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: 1.1 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-2011.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.org/license/LICENSE.
8 */
9#ifdef HAVE_CONFIG_H
10#include "config.h"
11#endif
12#include <tmacros.h>
13
14#include <sys/stat.h>
15
16#include "fstest.h"
17#include "fstest_support.h"
18
19void
20test_initialize_filesystem (void)
21{
22  int rc = 0;
23  rc = mkdir (BASE_FOR_TEST,S_IRWXU|S_IRWXG|S_IRWXO);
24  rtems_test_assert (rc == 0);
25}
26
27void
28test_shutdown_filesystem (void)
29{
30}
31
32/* configuration information */
33#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
34#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
35
36#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
37
38#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
39
40#define CONFIGURE_MAXIMUM_TASKS                  10
41#define CONFIGURE_MAXIMUM_FILE_DESCRIPTORS 40
42#define CONFIGURE_INIT_TASK_STACK_SIZE (16 * 1024)
43#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT
44
45#define CONFIGURE_INIT
46#include <rtems/confdefs.h>
Note: See TracBrowser for help on using the repository browser.