[09/22] list.3: DESCRIPTION: Copy description about naming of macros from queue.3

Message ID 20201020142146.61837-10-colomar.6.4.3@gmail.com
State Not applicable
Headers
Series list.3: New page forked from queue.3 |

Commit Message

Alejandro Colomar Oct. 20, 2020, 2:21 p.m. UTC
  Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
---
 man3/list.3 | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
  

Patch

diff --git a/man3/list.3 b/man3/list.3
index ae6590fdb..70f32a384 100644
--- a/man3/list.3
+++ b/man3/list.3
@@ -89,6 +89,31 @@  LIST_REMOVE
 .fi
 .SH DESCRIPTION
 These macros define and operate on doubly-linked lists.
+.Pp
+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.
 .SH RETURN VALUE
 .SH CONFORMING TO
 .SH BUGS