[PATCH] posix: Remove unused OBJECTS_POSIX_INTERRUPTS

Joel Sherrill joel at rtems.org
Fri May 17 19:38:31 UTC 2019


Hi

I have no idea where POSIX Interrupts came from. That doesn't match
anything in the POSIX standard or any draft I have seen.

I assume you intentionally left the gap in numbering of POSIX API classes
for historical consistency. But it does leave a gap in the
_Objects_Information_Table and wastes a tiny bit of RAM.

--joel

On Fri, May 17, 2019 at 2:21 AM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> ---
>  cpukit/include/rtems/score/objectdata.h       | 1 -
>  cpukit/rtems/src/rtemsobjectgetapiclassname.c | 3 ---
>  2 files changed, 4 deletions(-)
>
> diff --git a/cpukit/include/rtems/score/objectdata.h
> b/cpukit/include/rtems/score/objectdata.h
> index f6ece16c0e..ce6e3c63a4 100644
> --- a/cpukit/include/rtems/score/objectdata.h
> +++ b/cpukit/include/rtems/score/objectdata.h
> @@ -80,7 +80,6 @@ typedef enum {
>    OBJECTS_POSIX_NO_CLASS            = 0,
>    OBJECTS_POSIX_THREADS             = 1,
>    OBJECTS_POSIX_KEYS                = 2,
> -  OBJECTS_POSIX_INTERRUPTS          = 3,
>    OBJECTS_POSIX_MESSAGE_QUEUES      = 5,
>    OBJECTS_POSIX_SEMAPHORES          = 7,
>    OBJECTS_POSIX_TIMERS              = 9,
> diff --git a/cpukit/rtems/src/rtemsobjectgetapiclassname.c
> b/cpukit/rtems/src/rtemsobjectgetapiclassname.c
> index a00b06b990..1f2952765d 100644
> --- a/cpukit/rtems/src/rtemsobjectgetapiclassname.c
> +++ b/cpukit/rtems/src/rtemsobjectgetapiclassname.c
> @@ -45,9 +45,6 @@ static const rtems_assoc_t
> rtems_object_api_classic_assoc[] = {
>  static const rtems_assoc_t rtems_object_api_posix_assoc[] = {
>    { "Thread",                  OBJECTS_POSIX_THREADS, 0},
>    { "Key",                     OBJECTS_POSIX_KEYS, 0},
> -#ifdef RTEMS_POSIX_API
> -  { "Interrupt",               OBJECTS_POSIX_INTERRUPTS, 0},
> -#endif
>    { "Message Queue",           OBJECTS_POSIX_MESSAGE_QUEUES, 0},
>    { "Semaphore",               OBJECTS_POSIX_SEMAPHORES, 0},
>  #ifdef RTEMS_POSIX_API
> --
> 2.16.4
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190517/a18867d5/attachment-0002.html>


More information about the devel mailing list