]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
tailq.3: Copy and adapt code from queue.3
authorAlejandro Colomar <colomar.6.4.3@gmail.com>
Sun, 25 Oct 2020 09:36:48 +0000 (10:36 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 25 Oct 2020 09:42:35 +0000 (10:42 +0100)
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/tailq.3

index 28a7ac509fa24b02ebd4dc571958ad211ef4411f..6f2466cbf025ba6041fd38aa122c17f981151b9c 100644 (file)
@@ -89,26 +89,14 @@ In the macro definitions,
 .Fa TYPE
 is the name of a user defined structure,
 that must contain a field of type
-.Li SLIST_ENTRY ,
-.Li STAILQ_ENTRY ,
-.Li LIST_ENTRY ,
 .Li TAILQ_ENTRY ,
-or
-.Li CIRCLEQ_ENTRY ,
 named
 .Fa NAME .
 The argument
 .Fa HEADNAME
 is the name of a user defined structure that must be declared
-using the macros
-.Li SLIST_HEAD ,
-.Li STAILQ_HEAD ,
-.Li LIST_HEAD ,
-.Li TAILQ_HEAD ,
-or
-.Li CIRCLEQ_HEAD .
-See the examples below for further explanation of how these
-macros are used.
+using the macro
+.Li TAILQ_HEAD .
 .Ss Tail queues
 A tail queue is headed by a structure defined by the
 .Nm TAILQ_HEAD
@@ -317,10 +305,12 @@ from the tail queue.
 .\" .Fa head1
 .\" and
 .\" .Fa head2 .
-.Pp
-See the EXAMPLES section below for an example program using a tail queue.
 .SH RETURN VALUE
 .SH CONFORMING TO
+Not in POSIX.1, POSIX.1-2001 or POSIX.1-2008.
+Present on the BSDs.
+(TAILQ functions first appeared in
+.Bx 4.4 ).
 .SH BUGS
 .SH EXAMPLES
 .Ss Tail queue example
@@ -340,9 +330,9 @@ TAILQ_HEAD(tailhead, entry);
 int
 main(void)
 {
-    struct entry    *n1, *n2, *n3, *np;
+    struct entry *n1, *n2, *n3, *np;
     struct tailhead head;                   /* Tail queue head. */
-    int     i;
+    int i;
 
     TAILQ_INIT(&head);                      /* Initialize the queue. */