diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-10-25 12:05:53 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-10-29 10:33:33 +0100 |
commit | 70382718450c6b5d83232188cc71b6c795048a27 (patch) | |
tree | 454cdea0181e12e183532d24cc7483fa28c9a09e /cpukit/posix/src | |
parent | score: Remove bogus thread object name support (diff) | |
download | rtems-70382718450c6b5d83232188cc71b6c795048a27.tar.bz2 |
Remove RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES
Enable support for string objects names unconditionally. Add const
qualifier throughout. Split _Objects_Namespace_remove() into
_Objects_Namespace_remove_u32() and _Objects_Namespace_remove_string()
to avoid an unnecessary dependency on _Workspace_Free().
Update #2514.
Diffstat (limited to 'cpukit/posix/src')
-rw-r--r-- | cpukit/posix/src/key.c | 4 | ||||
-rw-r--r-- | cpukit/posix/src/ptimer.c | 4 | ||||
-rw-r--r-- | cpukit/posix/src/semaphoredeletesupp.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/posix/src/key.c b/cpukit/posix/src/key.c index 48a52dfb34..71c202926e 100644 --- a/cpukit/posix/src/key.c +++ b/cpukit/posix/src/key.c @@ -142,8 +142,8 @@ static void _POSIX_Keys_Manager_initialization(void) /* maximum objects of this class */ sizeof( POSIX_Keys_Control ), /* size of this object's control block */ - true, /* true if names for this object are strings */ - _POSIX_PATH_MAX, /* maximum length of each object's name */ + false, /* true if names for this object are strings */ + 0, /* maximum length of each object's name */ NULL /* Proxy extraction support callout */ ); diff --git a/cpukit/posix/src/ptimer.c b/cpukit/posix/src/ptimer.c index de3645cc14..e938d50058 100644 --- a/cpukit/posix/src/ptimer.c +++ b/cpukit/posix/src/ptimer.c @@ -66,8 +66,8 @@ static void _POSIX_Timer_Manager_initialization(void) /* maximum objects of this class */ sizeof( POSIX_Timer_Control ), /* size of this object's control block */ - true, /* true if names for this object are strings */ - _POSIX_PATH_MAX, /* maximum length of each object's name */ + false, /* true if names for this object are strings */ + 0, /* maximum length of each object's name */ NULL /* Proxy extraction support callout */ ); } diff --git a/cpukit/posix/src/semaphoredeletesupp.c b/cpukit/posix/src/semaphoredeletesupp.c index dbcfebfd65..69452369fb 100644 --- a/cpukit/posix/src/semaphoredeletesupp.c +++ b/cpukit/posix/src/semaphoredeletesupp.c @@ -23,7 +23,7 @@ void _POSIX_Semaphore_Delete( POSIX_Semaphore_Control *the_semaphore ) { if ( !the_semaphore->linked && !the_semaphore->open_count ) { - _Objects_Close( &_POSIX_Semaphore_Information, &the_semaphore->Object ); + _Objects_Invalidate_Id( &_POSIX_Semaphore_Information, &the_semaphore->Object ); _POSIX_Semaphore_Destroy( &the_semaphore->Semaphore ); _POSIX_Semaphore_Free( the_semaphore ); } |