aboutsummaryrefslogtreecommitdiffstats
path: root/man3/queue.3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2015-02-07 08:08:17 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2015-07-16 19:29:35 +0200
commitd20b994c378c3e29c65b865e241a31fd86b0f004 (patch)
tree25a094636a6acbb9acbf650ac3019a8788f84b49 /man3/queue.3
parent6559169cac523e2bdd3f7593d4b9ae468ffcd572 (diff)
downloadman-pages-d20b994c378c3e29c65b865e241a31fd86b0f004.tar.gz
queue.3: Use subsections in DESCRIPTION
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3/queue.3')
-rw-r--r--man3/queue.316
1 files changed, 8 insertions, 8 deletions
diff --git a/man3/queue.3 b/man3/queue.3
index b7b4a940ab..81d519a59c 100644
--- a/man3/queue.3
+++ b/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);