mirror of https://github.com/mkerrisk/man-pages
queue.3: Use subsections in DESCRIPTION
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
6559169cac
commit
d20b994c37
16
man3/queue.3
16
man3/queue.3
|
@ -321,7 +321,7 @@ or
|
|||
.Li TAILQ_HEAD .
|
||||
See the examples below for further explanation of how these
|
||||
macros are used.
|
||||
.Sh SINGLY-LINKED LISTS
|
||||
.Ss Singly-linked lists
|
||||
A singly-linked list is headed by a structure defined by the
|
||||
.Nm SLIST_HEAD
|
||||
macro.
|
||||
|
@ -474,7 +474,7 @@ from the list.
|
|||
.\" .Fa head1
|
||||
.\" and
|
||||
.\" .Fa head2 .
|
||||
.Sh SINGLY-LINKED LIST EXAMPLE
|
||||
.Ss Singly-linked list example
|
||||
.Bd -literal
|
||||
SLIST_HEAD(slisthead, entry) head =
|
||||
SLIST_HEAD_INITIALIZER(head);
|
||||
|
@ -516,7 +516,7 @@ while (!SLIST_EMPTY(&head)) { /* List Deletion. */
|
|||
free(n1);
|
||||
}
|
||||
.Ed
|
||||
.Sh SINGLY-LINKED TAIL QUEUES
|
||||
.Ss Singly-linked tail queues
|
||||
A singly-linked tail queue is headed by a structure defined by the
|
||||
.Nm STAILQ_HEAD
|
||||
macro.
|
||||
|
@ -690,7 +690,7 @@ from the tail queue.
|
|||
.\" .Fa head1
|
||||
.\" and
|
||||
.\" .Fa head2 .
|
||||
.Sh SINGLY-LINKED TAIL QUEUE EXAMPLE
|
||||
.Ss Singly-linked tail queue example
|
||||
.Bd -literal
|
||||
STAILQ_HEAD(stailhead, entry) head =
|
||||
STAILQ_HEAD_INITIALIZER(head);
|
||||
|
@ -743,7 +743,7 @@ while (n1 != NULL) {
|
|||
}
|
||||
STAILQ_INIT(&head);
|
||||
.Ed
|
||||
.Sh LISTS
|
||||
.Ss Lists
|
||||
A list is headed by a structure defined by the
|
||||
.Nm LIST_HEAD
|
||||
macro.
|
||||
|
@ -890,7 +890,7 @@ from the list.
|
|||
.\" .Fa head1
|
||||
.\" and
|
||||
.\" .Fa head2 .
|
||||
.Sh LIST EXAMPLE
|
||||
.Ss List example
|
||||
.Bd -literal
|
||||
LIST_HEAD(listhead, entry) head =
|
||||
LIST_HEAD_INITIALIZER(head);
|
||||
|
@ -940,7 +940,7 @@ while (n1 != NULL) {
|
|||
}
|
||||
LIST_INIT(&head);
|
||||
.Ed
|
||||
.Sh TAIL QUEUES
|
||||
.Ss Tail queues
|
||||
A tail queue is headed by a structure defined by the
|
||||
.Nm TAILQ_HEAD
|
||||
macro.
|
||||
|
@ -1148,7 +1148,7 @@ swaps the contents of
|
|||
.Fa head1
|
||||
and
|
||||
.Fa head2 .
|
||||
.Sh TAIL QUEUE EXAMPLE
|
||||
.Ss Tail queue example
|
||||
.Bd -literal
|
||||
TAILQ_HEAD(tailhead, entry) head =
|
||||
TAILQ_HEAD_INITIALIZER(head);
|
||||
|
|
Loading…
Reference in New Issue