mirror of https://github.com/mkerrisk/man-pages
simpleq.3, stailq.3, queue.7, SIMPLEQ_*.3: Document SIMPLEQ_*() as an alias to STAILQ_*() macros
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
de85f9235d
commit
9f80f9e34a
|
@ -0,0 +1 @@
|
||||||
|
.so man3/stailq.3
|
|
@ -0,0 +1 @@
|
||||||
|
.so man3/stailq.3
|
|
@ -0,0 +1 @@
|
||||||
|
.so man3/stailq.3
|
|
@ -0,0 +1 @@
|
||||||
|
.so man3/stailq.3
|
|
@ -0,0 +1 @@
|
||||||
|
.so man3/stailq.3
|
|
@ -0,0 +1 @@
|
||||||
|
.so man3/stailq.3
|
|
@ -0,0 +1 @@
|
||||||
|
.so man3/stailq.3
|
|
@ -0,0 +1 @@
|
||||||
|
.so man3/stailq.3
|
|
@ -0,0 +1 @@
|
||||||
|
.so man3/stailq.3
|
|
@ -0,0 +1 @@
|
||||||
|
.so man3/stailq.3
|
|
@ -0,0 +1 @@
|
||||||
|
.so man3/stailq.3
|
|
@ -0,0 +1 @@
|
||||||
|
.so man3/stailq.3
|
|
@ -0,0 +1 @@
|
||||||
|
.so man3/stailq.3
|
|
@ -0,0 +1 @@
|
||||||
|
.so man3/stailq.3
|
|
@ -31,6 +31,26 @@
|
||||||
.\"
|
.\"
|
||||||
.TH STAILQ 3 2020-10-21 "GNU" "Linux Programmer's Manual"
|
.TH STAILQ 3 2020-10-21 "GNU" "Linux Programmer's Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
|
.\"SIMPLEQ_CONCAT,
|
||||||
|
SIMPLEQ_EMPTY,
|
||||||
|
SIMPLEQ_ENTRY,
|
||||||
|
SIMPLEQ_FIRST,
|
||||||
|
SIMPLEQ_FOREACH,
|
||||||
|
.\"SIMPLEQ_FOREACH_FROM,
|
||||||
|
.\"SIMPLEQ_FOREACH_FROM_SAFE,
|
||||||
|
.\"SIMPLEQ_FOREACH_SAFE,
|
||||||
|
SIMPLEQ_HEAD,
|
||||||
|
SIMPLEQ_HEAD_INITIALIZER,
|
||||||
|
SIMPLEQ_INIT,
|
||||||
|
SIMPLEQ_INSERT_AFTER,
|
||||||
|
SIMPLEQ_INSERT_HEAD,
|
||||||
|
SIMPLEQ_INSERT_TAIL,
|
||||||
|
.\"SIMPLEQ_LAST,
|
||||||
|
SIMPLEQ_NEXT,
|
||||||
|
SIMPLEQ_REMOVE,
|
||||||
|
.\"SIMPLEQ_REMOVE_AFTER,
|
||||||
|
SIMPLEQ_REMOVE_HEAD,
|
||||||
|
.\"SIMPLEQ_SWAP,
|
||||||
STAILQ_CONCAT,
|
STAILQ_CONCAT,
|
||||||
STAILQ_EMPTY,
|
STAILQ_EMPTY,
|
||||||
STAILQ_ENTRY,
|
STAILQ_ENTRY,
|
||||||
|
@ -96,6 +116,8 @@ STAILQ_REMOVE_HEAD,
|
||||||
.\" .BI "void STAILQ_SWAP(STAILQ_HEAD *" head1 ", STAILQ_HEAD *" head2 ,
|
.\" .BI "void STAILQ_SWAP(STAILQ_HEAD *" head1 ", STAILQ_HEAD *" head2 ,
|
||||||
.\" .BI " STAILQ_ENTRY " NAME );
|
.\" .BI " STAILQ_ENTRY " NAME );
|
||||||
.fi
|
.fi
|
||||||
|
.IR Note :
|
||||||
|
Identical macros prefixed with SIMPLEQ instead of STAILQ exist; see NOTES.
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
These macros define and operate on singly linked tail queues.
|
These macros define and operate on singly linked tail queues.
|
||||||
.PP
|
.PP
|
||||||
|
@ -299,6 +321,15 @@ fixes this limitation by allowing
|
||||||
.I var
|
.I var
|
||||||
to safely be removed from the list and freed from within the loop
|
to safely be removed from the list and freed from within the loop
|
||||||
without interfering with the traversal.
|
without interfering with the traversal.
|
||||||
|
.SH NOTES
|
||||||
|
Some BSDs provide SIMPLEQ instead of STAILQ.
|
||||||
|
They are identical, but for historical reasons
|
||||||
|
they were named differently on different BSDs.
|
||||||
|
STAILQ originated on FreeBSD, and SIMPLEQ originated on NetBSD.
|
||||||
|
For compatibility reasons, some systems provide both sets of macros.
|
||||||
|
Glibc provides both STAILQ and SIMPLEQ,
|
||||||
|
which are identical except for a missing SIMPLEQ equivalent to
|
||||||
|
.BR STAILQ_CONCAT ().
|
||||||
.SH EXAMPLES
|
.SH EXAMPLES
|
||||||
.EX
|
.EX
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
|
@ -138,6 +138,15 @@ Not in POSIX.1, POSIX.1-2001, or POSIX.1-2008.
|
||||||
Present on the BSDs.
|
Present on the BSDs.
|
||||||
.I <sys/queue.h>
|
.I <sys/queue.h>
|
||||||
macros first appeared in 4.4BSD.
|
macros first appeared in 4.4BSD.
|
||||||
|
.SH NOTES
|
||||||
|
Some BSDs provide SIMPLEQ instead of STAILQ.
|
||||||
|
They are identical, but for historical reasons
|
||||||
|
they were named differently on different BSDs.
|
||||||
|
STAILQ originated on FreeBSD, and SIMPLEQ originated on NetBSD.
|
||||||
|
For compatibility reasons, some systems provide both sets of macros.
|
||||||
|
Glibc provides both STAILQ and SIMPLEQ,
|
||||||
|
which are identical except for a missing SIMPLEQ equivalent to
|
||||||
|
.BR STAILQ_CONCAT ().
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR circleq (3),
|
.BR circleq (3),
|
||||||
.BR insque (3),
|
.BR insque (3),
|
||||||
|
|
Loading…
Reference in New Issue