summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/libio_init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-14 19:09:56 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-25 07:18:26 +0100
commitba74ebde7461b28bf0261523d4e91e7c0e17b622 (patch)
tree0929ec50a724db8418a8d1f1b6a5d8d4c847f1dd /cpukit/libcsupport/src/libio_init.c
parentconfig: Add _SMP_Is_enabled (diff)
downloadrtems-ba74ebde7461b28bf0261523d4e91e7c0e17b622.tar.bz2
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.
Diffstat (limited to '')
-rw-r--r--cpukit/libcsupport/src/libio_init.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/cpukit/libcsupport/src/libio_init.c b/cpukit/libcsupport/src/libio_init.c
index 5b951ef2be..eccd5b2cd7 100644
--- a/cpukit/libcsupport/src/libio_init.c
+++ b/cpukit/libcsupport/src/libio_init.c
@@ -49,7 +49,6 @@ static void rtems_libio_init( void )
{
uint32_t i;
rtems_libio_t *iop;
- int eno;
if (rtems_libio_number_iops > 0)
{
@@ -59,17 +58,6 @@ static void rtems_libio_init( void )
iop->data1 = NULL;
rtems_libio_iop_free_tail = &iop->data1;
}
-
- /*
- * Create the posix key for user environment.
- */
- eno = pthread_key_create(
- &rtems_current_user_env_key,
- rtems_libio_free_user_env
- );
- if (eno != 0) {
- _Internal_error( INTERNAL_ERROR_LIBIO_USER_ENV_KEY_CREATE_FAILED );
- }
}
RTEMS_SYSINIT_ITEM(