diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-01-31 16:15:34 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-01-31 16:15:34 +0000 |
commit | 74d0cb441aee70c3bc87032fbac23ea4b7437b8b (patch) | |
tree | 167bdb4ddccfb3a3c65b1b590348bde2af8dba0c /cpukit/posix | |
parent | 2008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-74d0cb441aee70c3bc87032fbac23ea4b7437b8b.tar.bz2 |
2008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/src/cond.c, posix/src/key.c, posix/src/mqueuenametoid.c,
posix/src/mutex.c, posix/src/pbarrier.c, posix/src/prwlock.c,
posix/src/pspin.c, posix/src/pthread.c, posix/src/ptimer.c,
posix/src/semaphorenametoid.c: Add option for all POSIX objects
whether named or unnamed to have a string name. If the API does
not directly support having a name, then the user must explicitly
assign it using rtems_object_set_name().
* rtems/src/rtemsobjectgetapiclassname.c: Improved testability.
* score/include/rtems/score/object.h,
score/src/objectgetnameasstring.c, score/src/objectnametoidstring.c,
score/src/objectsetname.c: Modifications required to pass testing of
recently modified object name operations. Also eliminated
multiprocessing related code that was not reachable.
Diffstat (limited to 'cpukit/posix')
-rw-r--r-- | cpukit/posix/src/cond.c | 4 | ||||
-rw-r--r-- | cpukit/posix/src/key.c | 4 | ||||
-rw-r--r-- | cpukit/posix/src/mqueuenametoid.c | 2 | ||||
-rw-r--r-- | cpukit/posix/src/mutex.c | 4 | ||||
-rw-r--r-- | cpukit/posix/src/pbarrier.c | 4 | ||||
-rw-r--r-- | cpukit/posix/src/prwlock.c | 4 | ||||
-rw-r--r-- | cpukit/posix/src/pspin.c | 4 | ||||
-rw-r--r-- | cpukit/posix/src/pthread.c | 4 | ||||
-rw-r--r-- | cpukit/posix/src/ptimer.c | 2 | ||||
-rw-r--r-- | cpukit/posix/src/semaphorenametoid.c | 2 |
10 files changed, 17 insertions, 17 deletions
diff --git a/cpukit/posix/src/cond.c b/cpukit/posix/src/cond.c index f99d617638..d120f4faf0 100644 --- a/cpukit/posix/src/cond.c +++ b/cpukit/posix/src/cond.c @@ -48,8 +48,8 @@ void _POSIX_Condition_variables_Manager_initialization( maximum_condition_variables, /* maximum objects of this class */ sizeof( POSIX_Condition_variables_Control ), /* size of this object's control block */ - FALSE, /* TRUE if names for this object are strings */ - 0 /* maximum length of each object's name */ + 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 */ diff --git a/cpukit/posix/src/key.c b/cpukit/posix/src/key.c index a5052127f2..3b4776817b 100644 --- a/cpukit/posix/src/key.c +++ b/cpukit/posix/src/key.c @@ -42,8 +42,8 @@ void _POSIX_Key_Manager_initialization( maximum_keys, /* maximum objects of this class */ sizeof( POSIX_Keys_Control ), /* size of this object's control block */ - FALSE, /* TRUE if names for this object are strings */ - 0 /* maximum length of each object's name */ + 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 */ diff --git a/cpukit/posix/src/mqueuenametoid.c b/cpukit/posix/src/mqueuenametoid.c index bc74e7d182..06b3964683 100644 --- a/cpukit/posix/src/mqueuenametoid.c +++ b/cpukit/posix/src/mqueuenametoid.c @@ -64,7 +64,7 @@ int _POSIX_Message_queue_Name_to_id( return ENAMETOOLONG; status = _Objects_Name_to_id_string( - &_POSIX_Message_queue_Information, name, 0, id ); + &_POSIX_Message_queue_Information, name, id ); if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) return 0; diff --git a/cpukit/posix/src/mutex.c b/cpukit/posix/src/mutex.c index de0d35e7d7..1e41e4f7f2 100644 --- a/cpukit/posix/src/mutex.c +++ b/cpukit/posix/src/mutex.c @@ -49,8 +49,8 @@ void _POSIX_Mutex_Manager_initialization( maximum_mutexes, /* maximum objects of this class */ sizeof( POSIX_Mutex_Control ), /* size of this object's control block */ - FALSE, /* TRUE if names for this object are strings */ - 0 /* maximum length of each object's name */ + 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 */ diff --git a/cpukit/posix/src/pbarrier.c b/cpukit/posix/src/pbarrier.c index 1b1c285b09..05b0f9d801 100644 --- a/cpukit/posix/src/pbarrier.c +++ b/cpukit/posix/src/pbarrier.c @@ -49,8 +49,8 @@ void _POSIX_Barrier_Manager_initialization( OBJECTS_POSIX_BARRIERS, /* object class */ maximum_barriers, /* maximum objects of this class */ sizeof( POSIX_Barrier_Control ),/* size of this object's control block */ - FALSE, /* TRUE if the name is a string */ - 0 /* maximum length of an object name */ + 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 */ diff --git a/cpukit/posix/src/prwlock.c b/cpukit/posix/src/prwlock.c index 37197a88b0..5d4cf0b474 100644 --- a/cpukit/posix/src/prwlock.c +++ b/cpukit/posix/src/prwlock.c @@ -37,8 +37,8 @@ void _POSIX_RWLock_Manager_initialization( OBJECTS_POSIX_SPINLOCKS, /* object class */ maximum_rwlocks, /* maximum objects of this class */ sizeof( POSIX_RWLock_Control ), /* size of this object's control block */ - FALSE, /* TRUE if the name is a string */ - 0 /* maximum length of an object name */ + 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 */ diff --git a/cpukit/posix/src/pspin.c b/cpukit/posix/src/pspin.c index 4a1379de27..fd2dfc51a8 100644 --- a/cpukit/posix/src/pspin.c +++ b/cpukit/posix/src/pspin.c @@ -49,8 +49,8 @@ void _POSIX_Spinlock_Manager_initialization( OBJECTS_POSIX_SPINLOCKS, /* object class */ maximum_spinlocks, /* maximum objects of this class */ sizeof( POSIX_Spinlock_Control ),/* size of this object's control block */ - FALSE, /* TRUE if the name is a string */ - 0 /* maximum length of an object name */ + 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 */ diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c index 4504a616a4..840aabc891 100644 --- a/cpukit/posix/src/pthread.c +++ b/cpukit/posix/src/pthread.c @@ -339,8 +339,8 @@ void _POSIX_Threads_Manager_initialization( maximum_pthreads, /* maximum objects of this class */ sizeof( Thread_Control ), /* size of this object's control block */ - FALSE, /* TRUE if names for this object are strings */ - 0 /* maximum length of each object's name */ + 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 */ diff --git a/cpukit/posix/src/ptimer.c b/cpukit/posix/src/ptimer.c index 70af834e67..570646e906 100644 --- a/cpukit/posix/src/ptimer.c +++ b/cpukit/posix/src/ptimer.c @@ -57,7 +57,7 @@ void _POSIX_Timer_Manager_initialization ( int maximum_timers ) maximum_timers, /* maximum objects of this class */ sizeof( POSIX_Timer_Control ), /* size of this object's control block */ - FALSE, /* TRUE if names for this object are strings */ + TRUE, /* TRUE if names for this object are strings */ _POSIX_PATH_MAX /* maximum length of each object's name */ #if defined(RTEMS_MULTIPROCESSING) , diff --git a/cpukit/posix/src/semaphorenametoid.c b/cpukit/posix/src/semaphorenametoid.c index 071745c3d5..4acee37ce6 100644 --- a/cpukit/posix/src/semaphorenametoid.c +++ b/cpukit/posix/src/semaphorenametoid.c @@ -49,7 +49,7 @@ int _POSIX_Semaphore_Name_to_id( return EINVAL; status = _Objects_Name_to_id_string( - &_POSIX_Semaphore_Information, name, 0, (Objects_Id*)id ); + &_POSIX_Semaphore_Information, name, (Objects_Id*)id ); if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) return 0; |