diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-19 13:39:00 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-21 07:29:39 +0200 |
commit | f05eeb2091803b17f89045a685028e9e403f06eb (patch) | |
tree | 0773deca2b81089746cf1a4e7c8725ab0ab89ca8 /cpukit/posix/src | |
parent | score: Introduce _Thread_queue_Flush_critical() (diff) | |
download | rtems-f05eeb2091803b17f89045a685028e9e403f06eb.tar.bz2 |
score: Simplify _Objects_Initialize_information()
Remove unused supports_global parameter. Convert
_Objects_Initialize_information() to a macro to avoid use of
RTEMS_MULTIPROCESSING define for each caller.
Diffstat (limited to 'cpukit/posix/src')
-rw-r--r-- | cpukit/posix/src/cond.c | 6 | ||||
-rw-r--r-- | cpukit/posix/src/key.c | 6 | ||||
-rw-r--r-- | cpukit/posix/src/mqueue.c | 12 | ||||
-rw-r--r-- | cpukit/posix/src/mutex.c | 6 | ||||
-rw-r--r-- | cpukit/posix/src/pbarrier.c | 8 | ||||
-rw-r--r-- | cpukit/posix/src/prwlock.c | 8 | ||||
-rw-r--r-- | cpukit/posix/src/pspin.c | 6 | ||||
-rw-r--r-- | cpukit/posix/src/pthread.c | 4 | ||||
-rw-r--r-- | cpukit/posix/src/ptimer.c | 6 | ||||
-rw-r--r-- | cpukit/posix/src/semaphore.c | 6 |
10 files changed, 12 insertions, 56 deletions
diff --git a/cpukit/posix/src/cond.c b/cpukit/posix/src/cond.c index d0ce8a613a..8ee57d89fd 100644 --- a/cpukit/posix/src/cond.c +++ b/cpukit/posix/src/cond.c @@ -53,12 +53,8 @@ static void _POSIX_Condition_variables_Manager_initialization(void) sizeof( POSIX_Condition_variables_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 */ -#if defined(RTEMS_MULTIPROCESSING) - , - false, /* true if this is a global object class */ + _POSIX_PATH_MAX, /* maximum length of each object's name */ NULL /* Proxy extraction support callout */ -#endif ); } diff --git a/cpukit/posix/src/key.c b/cpukit/posix/src/key.c index 0bc88ae902..6b2dc3d2ab 100644 --- a/cpukit/posix/src/key.c +++ b/cpukit/posix/src/key.c @@ -141,12 +141,8 @@ static void _POSIX_Keys_Manager_initialization(void) 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 */ -#if defined(RTEMS_MULTIPROCESSING) - , - false, /* true if this is a global object class */ + _POSIX_PATH_MAX, /* maximum length of each object's name */ NULL /* Proxy extraction support callout */ -#endif ); _POSIX_Keys_Initialize_keypool(); diff --git a/cpukit/posix/src/mqueue.c b/cpukit/posix/src/mqueue.c index 0f261f6947..e5fc3a0b5d 100644 --- a/cpukit/posix/src/mqueue.c +++ b/cpukit/posix/src/mqueue.c @@ -58,12 +58,8 @@ static void _POSIX_Message_queue_Manager_initialization(void) sizeof( POSIX_Message_queue_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 */ -#if defined(RTEMS_MULTIPROCESSING) - , - false, /* true if this is a global object class */ + _POSIX_PATH_MAX, /* maximum length of each object's name */ NULL /* Proxy extraction support callout */ -#endif ); _Objects_Initialize_information( &_POSIX_Message_queue_Information_fds, @@ -73,12 +69,8 @@ static void _POSIX_Message_queue_Manager_initialization(void) sizeof( POSIX_Message_queue_Control_fd ), /* size of this object's control block */ true, /* true if names for this object are strings */ - NAME_MAX /* maximum length of each object's name */ -#if defined(RTEMS_MULTIPROCESSING) - , - false, /* true if this is a global object class */ + NAME_MAX, /* maximum length of each object's name */ NULL /* Proxy extraction support callout */ -#endif ); } diff --git a/cpukit/posix/src/mutex.c b/cpukit/posix/src/mutex.c index ef56d0a6b2..22b14c0001 100644 --- a/cpukit/posix/src/mutex.c +++ b/cpukit/posix/src/mutex.c @@ -74,12 +74,8 @@ static void _POSIX_Mutex_Manager_initialization(void) sizeof( POSIX_Mutex_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 */ -#if defined(RTEMS_MULTIPROCESSING) - , - false, /* true if this is a global object class */ + _POSIX_PATH_MAX, /* maximum length of each object's name */ NULL /* Proxy extraction support callout */ -#endif ); } diff --git a/cpukit/posix/src/pbarrier.c b/cpukit/posix/src/pbarrier.c index 1ae3115f80..8216a080b1 100644 --- a/cpukit/posix/src/pbarrier.c +++ b/cpukit/posix/src/pbarrier.c @@ -39,12 +39,8 @@ static void _POSIX_Barrier_Manager_initialization(void) /* maximum objects of this class */ sizeof( POSIX_Barrier_Control ),/* size of this object's control block */ true, /* true if the name is a string */ - _POSIX_PATH_MAX /* maximum length of each object's name */ -#if defined(RTEMS_MULTIPROCESSING) - , - false, /* true if this is a global object class */ - NULL /* Proxy extraction support callout */ -#endif + _POSIX_PATH_MAX, /* maximum length of each object's name */ + NULL /* Proxy extraction support callout */ ); } diff --git a/cpukit/posix/src/prwlock.c b/cpukit/posix/src/prwlock.c index 10c88d9bcf..963ad1fcd7 100644 --- a/cpukit/posix/src/prwlock.c +++ b/cpukit/posix/src/prwlock.c @@ -36,12 +36,8 @@ static void _POSIX_RWLock_Manager_initialization(void) /* maximum objects of this class */ sizeof( POSIX_RWLock_Control ), /* size of this object's control block */ true, /* true if the name is a string */ - _POSIX_PATH_MAX /* maximum length of each object's name */ -#if defined(RTEMS_MULTIPROCESSING) - , - false, /* true if this is a global object class */ - NULL /* Proxy extraction support callout */ -#endif + _POSIX_PATH_MAX, /* maximum length of each object's name */ + NULL /* Proxy extraction support callout */ ); } diff --git a/cpukit/posix/src/pspin.c b/cpukit/posix/src/pspin.c index 62e6f3ab1b..6c466bcab5 100644 --- a/cpukit/posix/src/pspin.c +++ b/cpukit/posix/src/pspin.c @@ -39,12 +39,8 @@ static void _POSIX_Spinlock_Manager_initialization(void) /* maximum objects of this class */ sizeof( POSIX_Spinlock_Control ),/* size of this object's control block */ true, /* true if the name is a string */ - _POSIX_PATH_MAX /* maximum length of each object's name */ -#if defined(RTEMS_MULTIPROCESSING) - , - false, /* true if this is a global object class */ + _POSIX_PATH_MAX, /* maximum length of each object's name */ NULL /* Proxy extraction support callout */ -#endif ); } diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c index cf4eab4cc5..61e498bce1 100644 --- a/cpukit/posix/src/pthread.c +++ b/cpukit/posix/src/pthread.c @@ -352,10 +352,6 @@ static void _POSIX_Threads_Manager_initialization(void) /* maximum objects of this class */ true, /* true if names for this object are strings */ _POSIX_PATH_MAX /* maximum length of each object's name */ -#if defined(RTEMS_MULTIPROCESSING) - , - false /* true if this is a global object class */ -#endif ); /* diff --git a/cpukit/posix/src/ptimer.c b/cpukit/posix/src/ptimer.c index 810112ac95..de3645cc14 100644 --- a/cpukit/posix/src/ptimer.c +++ b/cpukit/posix/src/ptimer.c @@ -67,12 +67,8 @@ static void _POSIX_Timer_Manager_initialization(void) 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 */ -#if defined(RTEMS_MULTIPROCESSING) - , - false, /* true if this is a global object class */ + _POSIX_PATH_MAX, /* maximum length of each object's name */ NULL /* Proxy extraction support callout */ -#endif ); } diff --git a/cpukit/posix/src/semaphore.c b/cpukit/posix/src/semaphore.c index db3ae0c2b5..661456c748 100644 --- a/cpukit/posix/src/semaphore.c +++ b/cpukit/posix/src/semaphore.c @@ -55,12 +55,8 @@ static void _POSIX_Semaphore_Manager_initialization(void) sizeof( POSIX_Semaphore_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 */ -#if defined(RTEMS_MULTIPROCESSING) - , - false, /* true if this is a global object class */ + _POSIX_PATH_MAX, /* maximum length of each object's name */ NULL /* Proxy extraction support callout */ -#endif ); } |