diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-12-28 05:59:35 +0000 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-12-28 05:59:35 +0000 |
| commit | 415aed528e3f242a746232fd6d480b6a303560a9 (patch) | |
| tree | 67435d2bfe8889226b3b3a35420f7335dd5f6967 /man3/queue.3 | |
| parent | df3e4d6dc8e0d04b82676aab250a19ff52436e56 (diff) | |
| download | man-pages-415aed528e3f242a746232fd6d480b6a303560a9.tar.gz | |
ffix
Diffstat (limited to 'man3/queue.3')
| -rw-r--r-- | man3/queue.3 | 24 |
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 |
