2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>

* sapi/src/extension.c, sapi/src/extensioncreate.c,
	sapi/src/extensiondelete.c, sapi/src/extensionident.c: Extension
	Manager clean up. Update object id switches to new pattern. Catch
	some NULL parameter errors.
This commit is contained in:
Joel Sherrill
2007-12-19 20:55:55 +00:00
parent 79542d7a8b
commit 30cd539354
5 changed files with 20 additions and 13 deletions

View File

@@ -1,3 +1,10 @@
2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* sapi/src/extension.c, sapi/src/extensioncreate.c,
sapi/src/extensiondelete.c, sapi/src/extensionident.c: Extension
Manager clean up. Update object id switches to new pattern. Catch
some NULL parameter errors.
2007-12-19 Jennifer Averett <jennifer.averett@OARcorp.com>
* posix/src/psignalunblockthread.c: Remove source that

View File

@@ -1,8 +1,7 @@
/*
* Extension Manager
*
*
* COPYRIGHT (c) 1989-2002.
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be

View File

@@ -1,8 +1,7 @@
/*
* Extension Manager -- rtems_extension_create
*
*
* COPYRIGHT (c) 1989-2002.
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -47,6 +46,9 @@ rtems_status_code rtems_extension_create(
{
Extension_Control *the_extension;
if ( !id )
return RTEMS_INVALID_ADDRESS;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;

View File

@@ -1,7 +1,6 @@
/*
* Extension Manager -- rtems_extension_delete
*
*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
@@ -45,18 +44,19 @@ rtems_status_code rtems_extension_delete(
the_extension = _Extension_Get( id, &location );
switch ( location ) {
case OBJECTS_ERROR:
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* should never return this */
#endif
return RTEMS_INVALID_ID;
case OBJECTS_LOCAL:
_User_extensions_Remove_set( &the_extension->Extension );
_Objects_Close( &_Extension_Information, &the_extension->Object );
_Extension_Free( the_extension );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* should never return this */
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */
return RTEMS_INVALID_ID;
}

View File

@@ -1,8 +1,7 @@
/*
* Extension Manager -- rtems_extension_ident
*
*
* COPYRIGHT (c) 1989-2002.
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be