insque, remque - insert/remove element from a queue
Compatibility Library (libcompat, -lcompat)
#include <search.h>
struct qelem {
struct qelem *q_forw;
struct qelem *q_back;
char q_data[];
};
void
insque(struct qelem *elem, struct qelem *pred);
void
remque(struct qelem *elem);
The insque(3) and remque(3) functions manipulate
queues built from doubly linked lists. Each element in the queue
must begin with a struct qelem
. The function
insque(3) inserts elem in a queue immediately after
pred; remque(3) removes an entry elem from a
queue.
VAX Architecture Handbook
The insque(3) and remque(3) functions appeared in 4.2BSD.