[Bug 2112] New: <sys/queue.h> is broken

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Wed Apr 3 12:56:49 UTC 2013


https://www.rtems.org/bugzilla/show_bug.cgi?id=2112

             Bug #: 2112
           Summary: <sys/queue.h> is broken
    Classification: Unclassified
           Product: Tools
           Version: unspecified
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Newlib
        AssignedTo: ralf.corsepius at rtems.org
        ReportedBy: sebastian.huber at embedded-brains.de


The STAILQ_LAST() macro uses __offsetof() which is undefined.

In Newlib with have:

libc/sys/rtems/sys/queue.h
libc/include/sys/queue.h

Why do we have a RTEMS specific queue.h?

If nobody objects I will propose to the Newlib list:

1. An updated "libc/include/sys/queue.h" based on the latest FreeBSD version. 
I will replace __offsetof with offsetof from <stddef.h>.

2. Remove the RTEMS specific "libc/sys/rtems/sys/queue.h".

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list