#include <search.h> void insque(void *elem, void *prev); void remque(void *elem);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
insque(), remque(): _SVID_SOURCE || _XOPEN_SOURCE >= 500
insque() inserts the element pointed to by elem immediately after the element pointed to by prev, which must not be NULL.
remque() removes the element pointed to by elem from the doubly-linked list.
struct qelem { struct qelem *q_forw; struct qelem *q_back; char q_data[1]; };
This is still what you will get if _GNU_SOURCE is defined before including <search.h>.
The location of the prototypes for these functions differs among several versions of Unix. The above is the POSIX version. Some systems place them in <string.h>. Linux libc4 and libc 5 placed them in <stdlib.h>.