This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix sys/queue.h


Hi!

There are many undefined leftover QUEUEDEBUG_* macros in sys/queue.h,
which render the header unusable.
The BSD header defines them using:
#if defined(_KERNEL) && defined(QUEUEDEBUG)
#define QUEUEDEBUG_LIST_INSERT_HEAD(head, elm, field)                   \
        if ((head)->lh_first &&						\
            (head)->lh_first->field.le_prev != &(head)->lh_first)	\
	  panic("LIST_INSERT_HEAD %p %s:%d", (head), __FILE__, __LINE__);
...
#else
#define QUEUEDEBUG_LIST_INSERT_HEAD(head, elm, field)
...
#endif
etc.
Attached are two alternative patches, one removes all traces of the debug
macros (my preference), one defines the macros as empty.

	Jakub

Attachment: P
Description: Text document

Attachment: P2
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]