xref: /illumos-gate/usr/src/man/man3c/insque.3c (revision c4140c56306ad2a74081dd949618b4f3162dd06b)
te
Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved. Copyright 1989 AT&T Copyright (c) 1983 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
INSQUE 3C "Jul 24, 2002"
NAME
insque, remque - insert/remove element from a queue
SYNOPSIS

include <search.h>

void insque(struct qelem *elem, struct qelem *pred);

void remque(struct qelem *elem);
DESCRIPTION

The insque() and remque() functions manipulate queues built from doubly linked lists. Each element in the queue must be in the following form:

struct qelem {
 struct qelem *q_forw;
 struct qelem *q_back;
 char q_data[\|];
};

The insque() function inserts elem in a queue immediately after pred. The remque() function removes an entry elem from a queue.

ATTRIBUTES

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Interface Stability Standard
MT-Level Unsafe
SEE ALSO

attributes (7), standards (7)