Opened 2 weeks ago

#69890 new enhancement

legacysupport: add SLIST_REMOVE_AFTER

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc: mascguy (Christopher Nielsen), fhgwright (Fred Wright), catap (Kirill A. Korinsky)
Port: legacy-support

Description

Could we add support for SLIST_REMOVE_AFTER, which is missing from sys/queue.h in some older OS?

Perhaps, from Apple code:

#ifndef SLIST_REMOVE_AFTER
#define SLIST_REMOVE_AFTER(elm, field) do {             \
        SLIST_NEXT(elm, field) =                        \
            SLIST_NEXT(SLIST_NEXT(elm, field), field);  \
} while (0)
#endif

https://opensource.apple.com/source/Libc/Libc-997.1.1/gen/FreeBSD/popen.c.auto.html

Change History (0)

Note: See TracTickets for help on using tickets.