forked from Imagelibrary/rtems
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:
@@ -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>
|
2007-12-19 Jennifer Averett <jennifer.averett@OARcorp.com>
|
||||||
|
|
||||||
* posix/src/psignalunblockthread.c: Remove source that
|
* posix/src/psignalunblockthread.c: Remove source that
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Extension Manager
|
* Extension Manager
|
||||||
*
|
*
|
||||||
*
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* COPYRIGHT (c) 1989-2002.
|
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
* The license and distribution terms for this file may be
|
* The license and distribution terms for this file may be
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Extension Manager -- rtems_extension_create
|
* Extension Manager -- rtems_extension_create
|
||||||
*
|
*
|
||||||
*
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* COPYRIGHT (c) 1989-2002.
|
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
* The license and distribution terms for this file may be
|
* The license and distribution terms for this file may be
|
||||||
@@ -47,6 +46,9 @@ rtems_status_code rtems_extension_create(
|
|||||||
{
|
{
|
||||||
Extension_Control *the_extension;
|
Extension_Control *the_extension;
|
||||||
|
|
||||||
|
if ( !id )
|
||||||
|
return RTEMS_INVALID_ADDRESS;
|
||||||
|
|
||||||
if ( !rtems_is_name_valid( name ) )
|
if ( !rtems_is_name_valid( name ) )
|
||||||
return RTEMS_INVALID_NAME;
|
return RTEMS_INVALID_NAME;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Extension Manager -- rtems_extension_delete
|
* Extension Manager -- rtems_extension_delete
|
||||||
*
|
*
|
||||||
*
|
|
||||||
* COPYRIGHT (c) 1989-2007.
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
@@ -45,18 +44,19 @@ rtems_status_code rtems_extension_delete(
|
|||||||
|
|
||||||
the_extension = _Extension_Get( id, &location );
|
the_extension = _Extension_Get( id, &location );
|
||||||
switch ( 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:
|
case OBJECTS_LOCAL:
|
||||||
_User_extensions_Remove_set( &the_extension->Extension );
|
_User_extensions_Remove_set( &the_extension->Extension );
|
||||||
_Objects_Close( &_Extension_Information, &the_extension->Object );
|
_Objects_Close( &_Extension_Information, &the_extension->Object );
|
||||||
_Extension_Free( the_extension );
|
_Extension_Free( the_extension );
|
||||||
_Thread_Enable_dispatch();
|
_Thread_Enable_dispatch();
|
||||||
return RTEMS_SUCCESSFUL;
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Extension Manager -- rtems_extension_ident
|
* Extension Manager -- rtems_extension_ident
|
||||||
*
|
*
|
||||||
*
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* COPYRIGHT (c) 1989-2002.
|
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
* The license and distribution terms for this file may be
|
* The license and distribution terms for this file may be
|
||||||
|
|||||||
Reference in New Issue
Block a user