Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ insque(3C) — DG/UX 5.4R3.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

reentrant(3)



insque(3C)                     DG/UX 5.4R3.00                     insque(3C)


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
       insque and remque manipulate queues built from doubly linked lists.
       Each element in the queue must be in the following form:
              struct qelem {
                   struct    qelem *qforw;
                   struct    qelem *qback;
                   char qdata[];
              };

       insque inserts elem in a queue immediately after pred.  remque
       removes an entry elem from a queue.


   Considerations for Threads Programming
                     +---------+-----------------------------+
                     |         |                      async- |
                     |function | reentrant   cancel   cancel |
                     |         |              point    safe  |
                     +---------+-----------------------------+
                     |insque   |     Y          N        N   |
                     |remque   |     Y          N        N   |
                     +---------+-----------------------------+


SEE ALSO
       reentrant(3).





















Licensed material--property of copyright holder(s)                         1


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026