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);
These interfaces are available from the compatibility library, libcompat.
insque() and remque() manipulate queues built from doubly linked lists.
Each element in the queue must begin with a "struct qelem".
These functions are not atomic unless that machine architecture allows
it.
These are derived from the insque and remque instructions on a VAX.
BSD August 12, 1993 BSD
[ Back ] |