aboutsummaryrefslogtreecommitdiffstats
path: root/man3/queue.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/queue.3')
-rw-r--r--man3/queue.324
1 files changed, 13 insertions, 11 deletions
diff --git a/man3/queue.3 b/man3/queue.3
index a6ba2b454f..f3f25b0881 100644
--- a/man3/queue.3
+++ b/man3/queue.3
@@ -155,20 +155,20 @@ In the macro definitions,
.I TYPE
is the name of a user-defined structure,
that must contain a field of type
-.IR "LIST_ENTRY" ,
-.IR "TAILQ_ENTRY" ,
+.BR "LIST_ENTRY" ,
+.BR "TAILQ_ENTRY" ,
or
-.IR "CIRCLEQ_ENTRY" ,
+.BR "CIRCLEQ_ENTRY" ,
named
.IR NAME .
The argument
.I HEADNAME
is the name of a user-defined structure that must be declared
using the macros
-.IR "LIST_HEAD" ,
-.IR "TAILQ_HEAD" ,
+.BR "LIST_HEAD" ,
+.BR "TAILQ_HEAD" ,
or
-.IR "CIRCLEQ_HEAD" .
+.BR "CIRCLEQ_HEAD" .
See the examples below for further explanation of how these
macros are used.
.SS Lists
@@ -181,7 +181,7 @@ removed without traversing the list.
New elements can be added to the list after an existing element or
at the head of the list.
A
-.I LIST_HEAD
+.B LIST_HEAD
structure is declared as follows:
.in +4n
.nf
@@ -263,7 +263,8 @@ while (head.lh_first != NULL) /* Delete. */
.fi
.SS Tail Queues
A tail queue is headed by a structure defined by the
-TAILQ_HEAD macro.
+.B TAILQ_HEAD
+macro.
This structure contains a pair of pointers,
one to the first element in the tail queue and the other to
the last element in the tail queue.
@@ -272,7 +273,7 @@ removed without traversing the tail queue.
New elements can be added to the tail queue after an existing element,
at the head of the tail queue, or at the end of the tail queue.
A
-.I TAILQ_HEAD
+.B TAILQ_HEAD
structure is declared as follows:
.in +4n
.nf
@@ -363,7 +364,8 @@ while (head.tqh_first != NULL)
.fi
.SS Circular Queues
A circular queue is headed by a structure defined by the
-CIRCLEQ_HEAD macro.
+.B CIRCLEQ_HEAD
+macro.
This structure contains a pair of pointers,
one to the first element in the circular queue and the other to the
last element in the circular queue.
@@ -373,7 +375,7 @@ New elements can be added to the queue after an existing element,
before an existing element, at the head of the queue, or at the end
of the queue.
A
-.I CIRCLEQ_HEAD
+.B CIRCLEQ_HEAD
structure is declared as follows:
.in +4n
.nf