History log of /netbsd-current/share/man/man3/queue.3
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.61 20-Oct-2020 kamil

Remove the CIRCLEQ API from queue(3)

It was marked deprecated in NetBSD 7 and already removed from
FreeBSD in 2000 and OpenBSD in 2015.

Proposed on tech-kern@.


Revision tags: netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625
# 1.60 18-Jun-2018 eadler

queue.3: deduplicate deduplicate a a word word


Revision tags: pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.59 02-Oct-2017 pgoyette

branches: 1.59.2;
Update for new signature for LIST_MOVE()


# 1.58 08-Aug-2017 isaki

s/tail queue/simple queue/ in SIMPLE QUEUES section.


Revision tags: perseant-stdc-iso10646-base
# 1.57 03-Jul-2017 wiz

Remove workaround for ancient HTML generation code.


Revision tags: netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426
# 1.56 25-Apr-2017 abhinav

branches: 1.56.4;
Use Fn instead of Nm to refer the macros in the body of the man page.

Thanks to wiz@ for reviewing.


# 1.55 22-Apr-2017 abhinav

Remove comma after the last Nm entry.


Revision tags: bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.54 15-Oct-2016 jdolecek

fix tyop


Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.53 31-May-2016 wiz

branches: 1.53.2;
Remove trailing whitespace.


# 1.52 31-May-2016 pgoyette

Correct list of operations to note that SLISTs and SIMPLEQs cannot insert
entries before existing entries. This can only be done for LISTs and
TAILQs.

Fixes PR kern/50845


# 1.51 02-Feb-2016 ryoon

Fix layout for comments. Bump date.


# 1.50 03-Dec-2014 snj

Fix some grammar and punctuation issues. Remove a pasto.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.49 18-May-2014 wiz

branches: 1.49.2;
Whitespace and punctuation.


# 1.48 17-May-2014 rmind

Rename LIST_CONCAT() to LIST_MOVE() as that is what it actually does (and
there is no point to implement LIST_CONCAT() which would iterate). Update
the queue(3) manpage.


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.47 28-Nov-2013 wiz

branches: 1.47.2;
Very slightly more consistency in ordering in SYNOPSIS.
Fix a few typos. Remove superfluous Pp.


# 1.46 27-Nov-2013 christos

Sync queue man pages with queue.h.


# 1.45 23-Nov-2013 wiz

Remove extra comma.


# 1.44 23-Nov-2013 christos

remove documentation for CIRCLEQ to discourage its use.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6
# 1.43 08-Oct-2012 njoly

Remove a tab character in non-literal context.
While here, replace all sp macros with Pp.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.42 20-Apr-2009 mschuett

branches: 1.42.6; 1.42.12;
Add queue macros SLIST_FOREACH_SAFE, STAILQ_FOREACH_SAFE, STAILQ_LAST,
SIMPLEQ_CONCAT, and SIMPLEQ_LAST.

Remove seperate definitions outside of queue.h.


# 1.41 11-Mar-2009 wiz

Do not mark up "and". Bump date for previous.


# 1.40 11-Mar-2009 mrg

add a SIMPLEQ_FOREACH_SAFE() macro.

document it, and the TAILQ versions.


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2
# 1.39 07-Oct-2008 apb

branches: 1.39.4;
Add a NOTE saying that invalid usage leads to undefined behaviour.
Inspired by PR 39684.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 wrstuden-revivesa-base mjf-devfs2-base
# 1.38 02-May-2008 martin

Move TNF licenses to 2 clause form


Revision tags: yamt-pf42-baseX yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.37 11-Dec-2007 elad

branches: 1.37.6; 1.37.8;
Add TAILQ_CONCAT() and STAILQ_CONCAT(), from FreeBSD.


# 1.36 22-Oct-2007 pooka

Note that CIRCLEQ_LOOP first appeared in NetBSD 4.0.


# 1.35 29-Aug-2007 pooka

bump date

Wrath of wizd avoided because of quick tip from Juan RP.


# 1.34 29-Aug-2007 pooka

Add table which summarizes operations supported by each queue type.

from Stathis Kamperis in PR misc/36857


Revision tags: netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-mips64-base abandoned-netbsd-4-base netbsd-4-base chap-midi-nbase chap-midi-base
# 1.33 07-Mar-2006 pooka

branches: 1.33.6; 1.33.8; 1.33.12;
document CIRCLEQ_LOOP


# 1.32 15-Dec-2005 pooka

* CICRLEQ -> CIRCLEQ in some places (it's much easier to pronounce)
* be more explicit that CIRCLEQ_FOREACH{,_REVERSE) traverse the queue
exactly once


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.31 13-Jan-2005 ragge

Fix CIRCLEQ example bug, from Peter A Jonsson.


# 1.30 18-Apr-2004 lukem

Reorder macros within a queue type to match queue.h definition order.
Document STAILQ_* as compatibility macros for SIMPLEQ_*.
Document TAILQ_LAST and TAILQ_PREV.


# 1.29 13-Apr-2004 wiz

Bump date for pooka.


# 1.28 13-Apr-2004 pooka

Note that SLISTs came from FreeBSD to give people an idea that
they're not necessarily a part of 4.4BSD derived implementations.


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.27 07-Aug-2003 agc

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22309, verified by myself.


# 1.26 20-May-2003 wiz

Grammar fix, from jmc@openbsd.


# 1.25 16-Apr-2003 wiz

Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.


Revision tags: fvdl_fs64_base
# 1.24 01-Jun-2002 lukem

SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups


# 1.23 01-Jun-2002 lukem

correct descriptions of SLIST_REMOVE_HEAD() and SIMPLEQ_REMOVE_HEAD()


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.22 13-Feb-2002 ross

Generate <>& symbolically. I'm avoiding .../dist/... directories for now.


# 1.21 07-Feb-2002 wiz

s/All four/All five/


# 1.20 11-Sep-2001 wiz

Drop unneeded empty line.


# 1.19 24-Jun-2001 wiz

Typo/whitespace fix.


# 1.18 12-May-2001 wiz

Fix description of simple queue. misc/12917 by Witold J. Wnuk with an
additional 'of '.


# 1.17 11-Feb-2001 enami

Subst head.cqh_first with CIRCLEQ_FIRST(&head) instead of CIRCLEQ_HEAD.
Pointed out by Tim on icb sometimes ago (iirc).


# 1.16 20-Jul-2000 deberg

document the singly-linked list macros brought in last year. also
document FOREACH_*{,_REVERSE}, to be added to queue.h shortly.

random cleanups and clarifications, mostly from the freebsd queue.3


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.15 27-May-2000 mycroft

One more formatting nit. *sigh*


# 1.14 27-May-2000 mycroft

Update the date.


# 1.13 27-May-2000 mycroft

Fix formatting error.


# 1.12 27-May-2000 mycroft

Document *_EMPTY().


Revision tags: minoura-xpg4dl-base wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.11 19-Nov-1999 enami

branches: 1.11.2;
Don't pass so many args to .Nd macro. It just overflows.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 comdex-fall-1999-base netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.10 15-Mar-1999 garbled

branches: 1.10.6;
First round of .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.


# 1.9 06-Feb-1998 perry

macroize BSD, NetBSD, FreeBSD and misc cleanup


# 1.8 05-Jan-1998 thorpej

Document new queue access methods.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.7 30-Sep-1997 christos

PR/4126: Luke Mewburn: queue(3) doesn't document SIMPLEQ_*


# 1.6 29-May-1997 cgd

Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
.Dd "month day, year"
which is what these pages did.


# 1.5 01-Oct-1996 cgd

add and document *_HEAD_INITIALIZER macros, which provide structure
initializers which can be used to initialize list/queue heads at
compile time.


Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.4 03-Jul-1995 mycroft

Document {LIST,TAILQ}_INSERT_BEFORE().


# 1.3 03-Jul-1995 mycroft

Document {LIST,TAILQ}_INSERT_BEFORE().


# 1.2 30-Nov-1994 jtc

Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.1 21-Dec-1993 cgd

branches: 1.1.1;
queue.h from 4.4, from Bostic


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625
# 1.60 18-Jun-2018 eadler

queue.3: deduplicate deduplicate a a word word


Revision tags: pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.59 02-Oct-2017 pgoyette

branches: 1.59.2;
Update for new signature for LIST_MOVE()


# 1.58 08-Aug-2017 isaki

s/tail queue/simple queue/ in SIMPLE QUEUES section.


Revision tags: perseant-stdc-iso10646-base
# 1.57 03-Jul-2017 wiz

Remove workaround for ancient HTML generation code.


Revision tags: netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426
# 1.56 25-Apr-2017 abhinav

branches: 1.56.4;
Use Fn instead of Nm to refer the macros in the body of the man page.

Thanks to wiz@ for reviewing.


# 1.55 22-Apr-2017 abhinav

Remove comma after the last Nm entry.


Revision tags: bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.54 15-Oct-2016 jdolecek

fix tyop


Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.53 31-May-2016 wiz

branches: 1.53.2;
Remove trailing whitespace.


# 1.52 31-May-2016 pgoyette

Correct list of operations to note that SLISTs and SIMPLEQs cannot insert
entries before existing entries. This can only be done for LISTs and
TAILQs.

Fixes PR kern/50845


# 1.51 02-Feb-2016 ryoon

Fix layout for comments. Bump date.


# 1.50 03-Dec-2014 snj

Fix some grammar and punctuation issues. Remove a pasto.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.49 18-May-2014 wiz

branches: 1.49.2;
Whitespace and punctuation.


# 1.48 17-May-2014 rmind

Rename LIST_CONCAT() to LIST_MOVE() as that is what it actually does (and
there is no point to implement LIST_CONCAT() which would iterate). Update
the queue(3) manpage.


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.47 28-Nov-2013 wiz

branches: 1.47.2;
Very slightly more consistency in ordering in SYNOPSIS.
Fix a few typos. Remove superfluous Pp.


# 1.46 27-Nov-2013 christos

Sync queue man pages with queue.h.


# 1.45 23-Nov-2013 wiz

Remove extra comma.


# 1.44 23-Nov-2013 christos

remove documentation for CIRCLEQ to discourage its use.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6
# 1.43 08-Oct-2012 njoly

Remove a tab character in non-literal context.
While here, replace all sp macros with Pp.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.42 20-Apr-2009 mschuett

branches: 1.42.6; 1.42.12;
Add queue macros SLIST_FOREACH_SAFE, STAILQ_FOREACH_SAFE, STAILQ_LAST,
SIMPLEQ_CONCAT, and SIMPLEQ_LAST.

Remove seperate definitions outside of queue.h.


# 1.41 11-Mar-2009 wiz

Do not mark up "and". Bump date for previous.


# 1.40 11-Mar-2009 mrg

add a SIMPLEQ_FOREACH_SAFE() macro.

document it, and the TAILQ versions.


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2
# 1.39 07-Oct-2008 apb

branches: 1.39.4;
Add a NOTE saying that invalid usage leads to undefined behaviour.
Inspired by PR 39684.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 wrstuden-revivesa-base mjf-devfs2-base
# 1.38 02-May-2008 martin

Move TNF licenses to 2 clause form


Revision tags: yamt-pf42-baseX yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.37 11-Dec-2007 elad

branches: 1.37.6; 1.37.8;
Add TAILQ_CONCAT() and STAILQ_CONCAT(), from FreeBSD.


# 1.36 22-Oct-2007 pooka

Note that CIRCLEQ_LOOP first appeared in NetBSD 4.0.


# 1.35 29-Aug-2007 pooka

bump date

Wrath of wizd avoided because of quick tip from Juan RP.


# 1.34 29-Aug-2007 pooka

Add table which summarizes operations supported by each queue type.

from Stathis Kamperis in PR misc/36857


Revision tags: netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-mips64-base abandoned-netbsd-4-base netbsd-4-base chap-midi-nbase chap-midi-base
# 1.33 07-Mar-2006 pooka

branches: 1.33.6; 1.33.8; 1.33.12;
document CIRCLEQ_LOOP


# 1.32 15-Dec-2005 pooka

* CICRLEQ -> CIRCLEQ in some places (it's much easier to pronounce)
* be more explicit that CIRCLEQ_FOREACH{,_REVERSE) traverse the queue
exactly once


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.31 13-Jan-2005 ragge

Fix CIRCLEQ example bug, from Peter A Jonsson.


# 1.30 18-Apr-2004 lukem

Reorder macros within a queue type to match queue.h definition order.
Document STAILQ_* as compatibility macros for SIMPLEQ_*.
Document TAILQ_LAST and TAILQ_PREV.


# 1.29 13-Apr-2004 wiz

Bump date for pooka.


# 1.28 13-Apr-2004 pooka

Note that SLISTs came from FreeBSD to give people an idea that
they're not necessarily a part of 4.4BSD derived implementations.


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.27 07-Aug-2003 agc

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22309, verified by myself.


# 1.26 20-May-2003 wiz

Grammar fix, from jmc@openbsd.


# 1.25 16-Apr-2003 wiz

Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.


Revision tags: fvdl_fs64_base
# 1.24 01-Jun-2002 lukem

SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups


# 1.23 01-Jun-2002 lukem

correct descriptions of SLIST_REMOVE_HEAD() and SIMPLEQ_REMOVE_HEAD()


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.22 13-Feb-2002 ross

Generate <>& symbolically. I'm avoiding .../dist/... directories for now.


# 1.21 07-Feb-2002 wiz

s/All four/All five/


# 1.20 11-Sep-2001 wiz

Drop unneeded empty line.


# 1.19 24-Jun-2001 wiz

Typo/whitespace fix.


# 1.18 12-May-2001 wiz

Fix description of simple queue. misc/12917 by Witold J. Wnuk with an
additional 'of '.


# 1.17 11-Feb-2001 enami

Subst head.cqh_first with CIRCLEQ_FIRST(&head) instead of CIRCLEQ_HEAD.
Pointed out by Tim on icb sometimes ago (iirc).


# 1.16 20-Jul-2000 deberg

document the singly-linked list macros brought in last year. also
document FOREACH_*{,_REVERSE}, to be added to queue.h shortly.

random cleanups and clarifications, mostly from the freebsd queue.3


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.15 27-May-2000 mycroft

One more formatting nit. *sigh*


# 1.14 27-May-2000 mycroft

Update the date.


# 1.13 27-May-2000 mycroft

Fix formatting error.


# 1.12 27-May-2000 mycroft

Document *_EMPTY().


Revision tags: minoura-xpg4dl-base wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.11 19-Nov-1999 enami

branches: 1.11.2;
Don't pass so many args to .Nd macro. It just overflows.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 comdex-fall-1999-base netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.10 15-Mar-1999 garbled

branches: 1.10.6;
First round of .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.


# 1.9 06-Feb-1998 perry

macroize BSD, NetBSD, FreeBSD and misc cleanup


# 1.8 05-Jan-1998 thorpej

Document new queue access methods.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.7 30-Sep-1997 christos

PR/4126: Luke Mewburn: queue(3) doesn't document SIMPLEQ_*


# 1.6 29-May-1997 cgd

Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
.Dd "month day, year"
which is what these pages did.


# 1.5 01-Oct-1996 cgd

add and document *_HEAD_INITIALIZER macros, which provide structure
initializers which can be used to initialize list/queue heads at
compile time.


Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.4 03-Jul-1995 mycroft

Document {LIST,TAILQ}_INSERT_BEFORE().


# 1.3 03-Jul-1995 mycroft

Document {LIST,TAILQ}_INSERT_BEFORE().


# 1.2 30-Nov-1994 jtc

Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.1 21-Dec-1993 cgd

branches: 1.1.1;
queue.h from 4.4, from Bostic


# 1.59 02-Oct-2017 pgoyette

Update for new signature for LIST_MOVE()


# 1.58 08-Aug-2017 isaki

s/tail queue/simple queue/ in SIMPLE QUEUES section.


Revision tags: perseant-stdc-iso10646-base
# 1.57 03-Jul-2017 wiz

Remove workaround for ancient HTML generation code.


Revision tags: netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426
# 1.56 25-Apr-2017 abhinav

branches: 1.56.4;
Use Fn instead of Nm to refer the macros in the body of the man page.

Thanks to wiz@ for reviewing.


# 1.55 22-Apr-2017 abhinav

Remove comma after the last Nm entry.


Revision tags: bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.54 15-Oct-2016 jdolecek

fix tyop


Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.53 31-May-2016 wiz

branches: 1.53.2;
Remove trailing whitespace.


# 1.52 31-May-2016 pgoyette

Correct list of operations to note that SLISTs and SIMPLEQs cannot insert
entries before existing entries. This can only be done for LISTs and
TAILQs.

Fixes PR kern/50845


# 1.51 02-Feb-2016 ryoon

Fix layout for comments. Bump date.


# 1.50 03-Dec-2014 snj

Fix some grammar and punctuation issues. Remove a pasto.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.49 18-May-2014 wiz

branches: 1.49.2;
Whitespace and punctuation.


# 1.48 17-May-2014 rmind

Rename LIST_CONCAT() to LIST_MOVE() as that is what it actually does (and
there is no point to implement LIST_CONCAT() which would iterate). Update
the queue(3) manpage.


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.47 28-Nov-2013 wiz

branches: 1.47.2;
Very slightly more consistency in ordering in SYNOPSIS.
Fix a few typos. Remove superfluous Pp.


# 1.46 27-Nov-2013 christos

Sync queue man pages with queue.h.


# 1.45 23-Nov-2013 wiz

Remove extra comma.


# 1.44 23-Nov-2013 christos

remove documentation for CIRCLEQ to discourage its use.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6
# 1.43 08-Oct-2012 njoly

Remove a tab character in non-literal context.
While here, replace all sp macros with Pp.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.42 20-Apr-2009 mschuett

branches: 1.42.6; 1.42.12;
Add queue macros SLIST_FOREACH_SAFE, STAILQ_FOREACH_SAFE, STAILQ_LAST,
SIMPLEQ_CONCAT, and SIMPLEQ_LAST.

Remove seperate definitions outside of queue.h.


# 1.41 11-Mar-2009 wiz

Do not mark up "and". Bump date for previous.


# 1.40 11-Mar-2009 mrg

add a SIMPLEQ_FOREACH_SAFE() macro.

document it, and the TAILQ versions.


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2
# 1.39 07-Oct-2008 apb

branches: 1.39.4;
Add a NOTE saying that invalid usage leads to undefined behaviour.
Inspired by PR 39684.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 wrstuden-revivesa-base mjf-devfs2-base
# 1.38 02-May-2008 martin

Move TNF licenses to 2 clause form


Revision tags: yamt-pf42-baseX yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.37 11-Dec-2007 elad

branches: 1.37.6; 1.37.8;
Add TAILQ_CONCAT() and STAILQ_CONCAT(), from FreeBSD.


# 1.36 22-Oct-2007 pooka

Note that CIRCLEQ_LOOP first appeared in NetBSD 4.0.


# 1.35 29-Aug-2007 pooka

bump date

Wrath of wizd avoided because of quick tip from Juan RP.


# 1.34 29-Aug-2007 pooka

Add table which summarizes operations supported by each queue type.

from Stathis Kamperis in PR misc/36857


Revision tags: netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-mips64-base abandoned-netbsd-4-base netbsd-4-base chap-midi-nbase chap-midi-base
# 1.33 07-Mar-2006 pooka

branches: 1.33.6; 1.33.8; 1.33.12;
document CIRCLEQ_LOOP


# 1.32 15-Dec-2005 pooka

* CICRLEQ -> CIRCLEQ in some places (it's much easier to pronounce)
* be more explicit that CIRCLEQ_FOREACH{,_REVERSE) traverse the queue
exactly once


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.31 13-Jan-2005 ragge

Fix CIRCLEQ example bug, from Peter A Jonsson.


# 1.30 18-Apr-2004 lukem

Reorder macros within a queue type to match queue.h definition order.
Document STAILQ_* as compatibility macros for SIMPLEQ_*.
Document TAILQ_LAST and TAILQ_PREV.


# 1.29 13-Apr-2004 wiz

Bump date for pooka.


# 1.28 13-Apr-2004 pooka

Note that SLISTs came from FreeBSD to give people an idea that
they're not necessarily a part of 4.4BSD derived implementations.


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.27 07-Aug-2003 agc

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22309, verified by myself.


# 1.26 20-May-2003 wiz

Grammar fix, from jmc@openbsd.


# 1.25 16-Apr-2003 wiz

Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.


Revision tags: fvdl_fs64_base
# 1.24 01-Jun-2002 lukem

SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups


# 1.23 01-Jun-2002 lukem

correct descriptions of SLIST_REMOVE_HEAD() and SIMPLEQ_REMOVE_HEAD()


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.22 13-Feb-2002 ross

Generate <>& symbolically. I'm avoiding .../dist/... directories for now.


# 1.21 07-Feb-2002 wiz

s/All four/All five/


# 1.20 11-Sep-2001 wiz

Drop unneeded empty line.


# 1.19 24-Jun-2001 wiz

Typo/whitespace fix.


# 1.18 12-May-2001 wiz

Fix description of simple queue. misc/12917 by Witold J. Wnuk with an
additional 'of '.


# 1.17 11-Feb-2001 enami

Subst head.cqh_first with CIRCLEQ_FIRST(&head) instead of CIRCLEQ_HEAD.
Pointed out by Tim on icb sometimes ago (iirc).


# 1.16 20-Jul-2000 deberg

document the singly-linked list macros brought in last year. also
document FOREACH_*{,_REVERSE}, to be added to queue.h shortly.

random cleanups and clarifications, mostly from the freebsd queue.3


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.15 27-May-2000 mycroft

One more formatting nit. *sigh*


# 1.14 27-May-2000 mycroft

Update the date.


# 1.13 27-May-2000 mycroft

Fix formatting error.


# 1.12 27-May-2000 mycroft

Document *_EMPTY().


Revision tags: minoura-xpg4dl-base wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.11 19-Nov-1999 enami

branches: 1.11.2;
Don't pass so many args to .Nd macro. It just overflows.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 comdex-fall-1999-base netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.10 15-Mar-1999 garbled

branches: 1.10.6;
First round of .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.


# 1.9 06-Feb-1998 perry

macroize BSD, NetBSD, FreeBSD and misc cleanup


# 1.8 05-Jan-1998 thorpej

Document new queue access methods.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.7 30-Sep-1997 christos

PR/4126: Luke Mewburn: queue(3) doesn't document SIMPLEQ_*


# 1.6 29-May-1997 cgd

Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
.Dd "month day, year"
which is what these pages did.


# 1.5 01-Oct-1996 cgd

add and document *_HEAD_INITIALIZER macros, which provide structure
initializers which can be used to initialize list/queue heads at
compile time.


Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.4 03-Jul-1995 mycroft

Document {LIST,TAILQ}_INSERT_BEFORE().


# 1.3 03-Jul-1995 mycroft

Document {LIST,TAILQ}_INSERT_BEFORE().


# 1.2 30-Nov-1994 jtc

Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.1 21-Dec-1993 cgd

branches: 1.1.1;
queue.h from 4.4, from Bostic


# 1.58 08-Aug-2017 isaki

s/tail queue/simple queue/ in SIMPLE QUEUES section.


Revision tags: perseant-stdc-iso10646-base
# 1.57 03-Jul-2017 wiz

Remove workaround for ancient HTML generation code.


Revision tags: netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426
# 1.56 25-Apr-2017 abhinav

Use Fn instead of Nm to refer the macros in the body of the man page.

Thanks to wiz@ for reviewing.


# 1.55 22-Apr-2017 abhinav

Remove comma after the last Nm entry.


Revision tags: bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.54 15-Oct-2016 jdolecek

fix tyop


Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.53 31-May-2016 wiz

branches: 1.53.2;
Remove trailing whitespace.


# 1.52 31-May-2016 pgoyette

Correct list of operations to note that SLISTs and SIMPLEQs cannot insert
entries before existing entries. This can only be done for LISTs and
TAILQs.

Fixes PR kern/50845


# 1.51 02-Feb-2016 ryoon

Fix layout for comments. Bump date.


# 1.50 03-Dec-2014 snj

Fix some grammar and punctuation issues. Remove a pasto.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.49 18-May-2014 wiz

branches: 1.49.2;
Whitespace and punctuation.


# 1.48 17-May-2014 rmind

Rename LIST_CONCAT() to LIST_MOVE() as that is what it actually does (and
there is no point to implement LIST_CONCAT() which would iterate). Update
the queue(3) manpage.


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.47 28-Nov-2013 wiz

branches: 1.47.2;
Very slightly more consistency in ordering in SYNOPSIS.
Fix a few typos. Remove superfluous Pp.


# 1.46 27-Nov-2013 christos

Sync queue man pages with queue.h.


# 1.45 23-Nov-2013 wiz

Remove extra comma.


# 1.44 23-Nov-2013 christos

remove documentation for CIRCLEQ to discourage its use.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6
# 1.43 08-Oct-2012 njoly

Remove a tab character in non-literal context.
While here, replace all sp macros with Pp.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.42 20-Apr-2009 mschuett

branches: 1.42.6; 1.42.12;
Add queue macros SLIST_FOREACH_SAFE, STAILQ_FOREACH_SAFE, STAILQ_LAST,
SIMPLEQ_CONCAT, and SIMPLEQ_LAST.

Remove seperate definitions outside of queue.h.


# 1.41 11-Mar-2009 wiz

Do not mark up "and". Bump date for previous.


# 1.40 11-Mar-2009 mrg

add a SIMPLEQ_FOREACH_SAFE() macro.

document it, and the TAILQ versions.


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2
# 1.39 07-Oct-2008 apb

branches: 1.39.4;
Add a NOTE saying that invalid usage leads to undefined behaviour.
Inspired by PR 39684.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 wrstuden-revivesa-base mjf-devfs2-base
# 1.38 02-May-2008 martin

Move TNF licenses to 2 clause form


Revision tags: yamt-pf42-baseX yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.37 11-Dec-2007 elad

branches: 1.37.6; 1.37.8;
Add TAILQ_CONCAT() and STAILQ_CONCAT(), from FreeBSD.


# 1.36 22-Oct-2007 pooka

Note that CIRCLEQ_LOOP first appeared in NetBSD 4.0.


# 1.35 29-Aug-2007 pooka

bump date

Wrath of wizd avoided because of quick tip from Juan RP.


# 1.34 29-Aug-2007 pooka

Add table which summarizes operations supported by each queue type.

from Stathis Kamperis in PR misc/36857


Revision tags: netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-mips64-base abandoned-netbsd-4-base netbsd-4-base chap-midi-nbase chap-midi-base
# 1.33 07-Mar-2006 pooka

branches: 1.33.6; 1.33.8; 1.33.12;
document CIRCLEQ_LOOP


# 1.32 15-Dec-2005 pooka

* CICRLEQ -> CIRCLEQ in some places (it's much easier to pronounce)
* be more explicit that CIRCLEQ_FOREACH{,_REVERSE) traverse the queue
exactly once


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.31 13-Jan-2005 ragge

Fix CIRCLEQ example bug, from Peter A Jonsson.


# 1.30 18-Apr-2004 lukem

Reorder macros within a queue type to match queue.h definition order.
Document STAILQ_* as compatibility macros for SIMPLEQ_*.
Document TAILQ_LAST and TAILQ_PREV.


# 1.29 13-Apr-2004 wiz

Bump date for pooka.


# 1.28 13-Apr-2004 pooka

Note that SLISTs came from FreeBSD to give people an idea that
they're not necessarily a part of 4.4BSD derived implementations.


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.27 07-Aug-2003 agc

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22309, verified by myself.


# 1.26 20-May-2003 wiz

Grammar fix, from jmc@openbsd.


# 1.25 16-Apr-2003 wiz

Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.


Revision tags: fvdl_fs64_base
# 1.24 01-Jun-2002 lukem

SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups


# 1.23 01-Jun-2002 lukem

correct descriptions of SLIST_REMOVE_HEAD() and SIMPLEQ_REMOVE_HEAD()


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.22 13-Feb-2002 ross

Generate <>& symbolically. I'm avoiding .../dist/... directories for now.


# 1.21 07-Feb-2002 wiz

s/All four/All five/


# 1.20 11-Sep-2001 wiz

Drop unneeded empty line.


# 1.19 24-Jun-2001 wiz

Typo/whitespace fix.


# 1.18 12-May-2001 wiz

Fix description of simple queue. misc/12917 by Witold J. Wnuk with an
additional 'of '.


# 1.17 11-Feb-2001 enami

Subst head.cqh_first with CIRCLEQ_FIRST(&head) instead of CIRCLEQ_HEAD.
Pointed out by Tim on icb sometimes ago (iirc).


# 1.16 20-Jul-2000 deberg

document the singly-linked list macros brought in last year. also
document FOREACH_*{,_REVERSE}, to be added to queue.h shortly.

random cleanups and clarifications, mostly from the freebsd queue.3


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.15 27-May-2000 mycroft

One more formatting nit. *sigh*


# 1.14 27-May-2000 mycroft

Update the date.


# 1.13 27-May-2000 mycroft

Fix formatting error.


# 1.12 27-May-2000 mycroft

Document *_EMPTY().


Revision tags: minoura-xpg4dl-base wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.11 19-Nov-1999 enami

branches: 1.11.2;
Don't pass so many args to .Nd macro. It just overflows.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 comdex-fall-1999-base netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.10 15-Mar-1999 garbled

branches: 1.10.6;
First round of .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.


# 1.9 06-Feb-1998 perry

macroize BSD, NetBSD, FreeBSD and misc cleanup


# 1.8 05-Jan-1998 thorpej

Document new queue access methods.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.7 30-Sep-1997 christos

PR/4126: Luke Mewburn: queue(3) doesn't document SIMPLEQ_*


# 1.6 29-May-1997 cgd

Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
.Dd "month day, year"
which is what these pages did.


# 1.5 01-Oct-1996 cgd

add and document *_HEAD_INITIALIZER macros, which provide structure
initializers which can be used to initialize list/queue heads at
compile time.


Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.4 03-Jul-1995 mycroft

Document {LIST,TAILQ}_INSERT_BEFORE().


# 1.3 03-Jul-1995 mycroft

Document {LIST,TAILQ}_INSERT_BEFORE().


# 1.2 30-Nov-1994 jtc

Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.1 21-Dec-1993 cgd

branches: 1.1.1;
queue.h from 4.4, from Bostic


# 1.57 03-Jul-2017 wiz

Remove workaround for ancient HTML generation code.


Revision tags: netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426
# 1.56 25-Apr-2017 abhinav

Use Fn instead of Nm to refer the macros in the body of the man page.

Thanks to wiz@ for reviewing.


# 1.55 22-Apr-2017 abhinav

Remove comma after the last Nm entry.


Revision tags: bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.54 15-Oct-2016 jdolecek

fix tyop


Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.53 31-May-2016 wiz

branches: 1.53.2;
Remove trailing whitespace.


# 1.52 31-May-2016 pgoyette

Correct list of operations to note that SLISTs and SIMPLEQs cannot insert
entries before existing entries. This can only be done for LISTs and
TAILQs.

Fixes PR kern/50845


# 1.51 02-Feb-2016 ryoon

Fix layout for comments. Bump date.


# 1.50 03-Dec-2014 snj

Fix some grammar and punctuation issues. Remove a pasto.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.49 18-May-2014 wiz

branches: 1.49.2;
Whitespace and punctuation.


# 1.48 17-May-2014 rmind

Rename LIST_CONCAT() to LIST_MOVE() as that is what it actually does (and
there is no point to implement LIST_CONCAT() which would iterate). Update
the queue(3) manpage.


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.47 28-Nov-2013 wiz

branches: 1.47.2;
Very slightly more consistency in ordering in SYNOPSIS.
Fix a few typos. Remove superfluous Pp.


# 1.46 27-Nov-2013 christos

Sync queue man pages with queue.h.


# 1.45 23-Nov-2013 wiz

Remove extra comma.


# 1.44 23-Nov-2013 christos

remove documentation for CIRCLEQ to discourage its use.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6
# 1.43 08-Oct-2012 njoly

Remove a tab character in non-literal context.
While here, replace all sp macros with Pp.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.42 20-Apr-2009 mschuett

branches: 1.42.6; 1.42.12;
Add queue macros SLIST_FOREACH_SAFE, STAILQ_FOREACH_SAFE, STAILQ_LAST,
SIMPLEQ_CONCAT, and SIMPLEQ_LAST.

Remove seperate definitions outside of queue.h.


# 1.41 11-Mar-2009 wiz

Do not mark up "and". Bump date for previous.


# 1.40 11-Mar-2009 mrg

add a SIMPLEQ_FOREACH_SAFE() macro.

document it, and the TAILQ versions.


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2
# 1.39 07-Oct-2008 apb

branches: 1.39.4;
Add a NOTE saying that invalid usage leads to undefined behaviour.
Inspired by PR 39684.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 wrstuden-revivesa-base mjf-devfs2-base
# 1.38 02-May-2008 martin

Move TNF licenses to 2 clause form


Revision tags: yamt-pf42-baseX yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.37 11-Dec-2007 elad

branches: 1.37.6; 1.37.8;
Add TAILQ_CONCAT() and STAILQ_CONCAT(), from FreeBSD.


# 1.36 22-Oct-2007 pooka

Note that CIRCLEQ_LOOP first appeared in NetBSD 4.0.


# 1.35 29-Aug-2007 pooka

bump date

Wrath of wizd avoided because of quick tip from Juan RP.


# 1.34 29-Aug-2007 pooka

Add table which summarizes operations supported by each queue type.

from Stathis Kamperis in PR misc/36857


Revision tags: netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-mips64-base abandoned-netbsd-4-base netbsd-4-base chap-midi-nbase chap-midi-base
# 1.33 07-Mar-2006 pooka

branches: 1.33.6; 1.33.8; 1.33.12;
document CIRCLEQ_LOOP


# 1.32 15-Dec-2005 pooka

* CICRLEQ -> CIRCLEQ in some places (it's much easier to pronounce)
* be more explicit that CIRCLEQ_FOREACH{,_REVERSE) traverse the queue
exactly once


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.31 13-Jan-2005 ragge

Fix CIRCLEQ example bug, from Peter A Jonsson.


# 1.30 18-Apr-2004 lukem

Reorder macros within a queue type to match queue.h definition order.
Document STAILQ_* as compatibility macros for SIMPLEQ_*.
Document TAILQ_LAST and TAILQ_PREV.


# 1.29 13-Apr-2004 wiz

Bump date for pooka.


# 1.28 13-Apr-2004 pooka

Note that SLISTs came from FreeBSD to give people an idea that
they're not necessarily a part of 4.4BSD derived implementations.


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.27 07-Aug-2003 agc

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22309, verified by myself.


# 1.26 20-May-2003 wiz

Grammar fix, from jmc@openbsd.


# 1.25 16-Apr-2003 wiz

Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.


Revision tags: fvdl_fs64_base
# 1.24 01-Jun-2002 lukem

SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups


# 1.23 01-Jun-2002 lukem

correct descriptions of SLIST_REMOVE_HEAD() and SIMPLEQ_REMOVE_HEAD()


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.22 13-Feb-2002 ross

Generate <>& symbolically. I'm avoiding .../dist/... directories for now.


# 1.21 07-Feb-2002 wiz

s/All four/All five/


# 1.20 11-Sep-2001 wiz

Drop unneeded empty line.


# 1.19 24-Jun-2001 wiz

Typo/whitespace fix.


# 1.18 12-May-2001 wiz

Fix description of simple queue. misc/12917 by Witold J. Wnuk with an
additional 'of '.


# 1.17 11-Feb-2001 enami

Subst head.cqh_first with CIRCLEQ_FIRST(&head) instead of CIRCLEQ_HEAD.
Pointed out by Tim on icb sometimes ago (iirc).


# 1.16 20-Jul-2000 deberg

document the singly-linked list macros brought in last year. also
document FOREACH_*{,_REVERSE}, to be added to queue.h shortly.

random cleanups and clarifications, mostly from the freebsd queue.3


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.15 27-May-2000 mycroft

One more formatting nit. *sigh*


# 1.14 27-May-2000 mycroft

Update the date.


# 1.13 27-May-2000 mycroft

Fix formatting error.


# 1.12 27-May-2000 mycroft

Document *_EMPTY().


Revision tags: minoura-xpg4dl-base wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.11 19-Nov-1999 enami

branches: 1.11.2;
Don't pass so many args to .Nd macro. It just overflows.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 comdex-fall-1999-base netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.10 15-Mar-1999 garbled

branches: 1.10.6;
First round of .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.


# 1.9 06-Feb-1998 perry

macroize BSD, NetBSD, FreeBSD and misc cleanup


# 1.8 05-Jan-1998 thorpej

Document new queue access methods.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.7 30-Sep-1997 christos

PR/4126: Luke Mewburn: queue(3) doesn't document SIMPLEQ_*


# 1.6 29-May-1997 cgd

Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
.Dd "month day, year"
which is what these pages did.


# 1.5 01-Oct-1996 cgd

add and document *_HEAD_INITIALIZER macros, which provide structure
initializers which can be used to initialize list/queue heads at
compile time.


Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.4 03-Jul-1995 mycroft

Document {LIST,TAILQ}_INSERT_BEFORE().


# 1.3 03-Jul-1995 mycroft

Document {LIST,TAILQ}_INSERT_BEFORE().


# 1.2 30-Nov-1994 jtc

Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.1 21-Dec-1993 cgd

branches: 1.1.1;
queue.h from 4.4, from Bostic


Revision tags: prg-localcount2-base pgoyette-localcount-20170426
# 1.56 25-Apr-2017 abhinav

Use Fn instead of Nm to refer the macros in the body of the man page.

Thanks to wiz@ for reviewing.


# 1.55 22-Apr-2017 abhinav

Remove comma after the last Nm entry.


Revision tags: bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
# 1.54 15-Oct-2016 jdolecek

fix tyop


Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.53 31-May-2016 wiz

branches: 1.53.2;
Remove trailing whitespace.


# 1.52 31-May-2016 pgoyette

Correct list of operations to note that SLISTs and SIMPLEQs cannot insert
entries before existing entries. This can only be done for LISTs and
TAILQs.

Fixes PR kern/50845


# 1.51 02-Feb-2016 ryoon

Fix layout for comments. Bump date.


# 1.50 03-Dec-2014 snj

Fix some grammar and punctuation issues. Remove a pasto.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.49 18-May-2014 wiz

branches: 1.49.2;
Whitespace and punctuation.


# 1.48 17-May-2014 rmind

Rename LIST_CONCAT() to LIST_MOVE() as that is what it actually does (and
there is no point to implement LIST_CONCAT() which would iterate). Update
the queue(3) manpage.


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.47 28-Nov-2013 wiz

branches: 1.47.2;
Very slightly more consistency in ordering in SYNOPSIS.
Fix a few typos. Remove superfluous Pp.


# 1.46 27-Nov-2013 christos

Sync queue man pages with queue.h.


# 1.45 23-Nov-2013 wiz

Remove extra comma.


# 1.44 23-Nov-2013 christos

remove documentation for CIRCLEQ to discourage its use.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6
# 1.43 08-Oct-2012 njoly

Remove a tab character in non-literal context.
While here, replace all sp macros with Pp.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.42 20-Apr-2009 mschuett

branches: 1.42.6; 1.42.12;
Add queue macros SLIST_FOREACH_SAFE, STAILQ_FOREACH_SAFE, STAILQ_LAST,
SIMPLEQ_CONCAT, and SIMPLEQ_LAST.

Remove seperate definitions outside of queue.h.


# 1.41 11-Mar-2009 wiz

Do not mark up "and". Bump date for previous.


# 1.40 11-Mar-2009 mrg

add a SIMPLEQ_FOREACH_SAFE() macro.

document it, and the TAILQ versions.


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2
# 1.39 07-Oct-2008 apb

branches: 1.39.4;
Add a NOTE saying that invalid usage leads to undefined behaviour.
Inspired by PR 39684.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 wrstuden-revivesa-base mjf-devfs2-base
# 1.38 02-May-2008 martin

Move TNF licenses to 2 clause form


Revision tags: yamt-pf42-baseX yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.37 11-Dec-2007 elad

branches: 1.37.6; 1.37.8;
Add TAILQ_CONCAT() and STAILQ_CONCAT(), from FreeBSD.


# 1.36 22-Oct-2007 pooka

Note that CIRCLEQ_LOOP first appeared in NetBSD 4.0.


# 1.35 29-Aug-2007 pooka

bump date

Wrath of wizd avoided because of quick tip from Juan RP.


# 1.34 29-Aug-2007 pooka

Add table which summarizes operations supported by each queue type.

from Stathis Kamperis in PR misc/36857


Revision tags: netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-mips64-base abandoned-netbsd-4-base netbsd-4-base chap-midi-nbase chap-midi-base
# 1.33 07-Mar-2006 pooka

branches: 1.33.6; 1.33.8; 1.33.12;
document CIRCLEQ_LOOP


# 1.32 15-Dec-2005 pooka

* CICRLEQ -> CIRCLEQ in some places (it's much easier to pronounce)
* be more explicit that CIRCLEQ_FOREACH{,_REVERSE) traverse the queue
exactly once


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.31 13-Jan-2005 ragge

Fix CIRCLEQ example bug, from Peter A Jonsson.


# 1.30 18-Apr-2004 lukem

Reorder macros within a queue type to match queue.h definition order.
Document STAILQ_* as compatibility macros for SIMPLEQ_*.
Document TAILQ_LAST and TAILQ_PREV.


# 1.29 13-Apr-2004 wiz

Bump date for pooka.


# 1.28 13-Apr-2004 pooka

Note that SLISTs came from FreeBSD to give people an idea that
they're not necessarily a part of 4.4BSD derived implementations.


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.27 07-Aug-2003 agc

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22309, verified by myself.


# 1.26 20-May-2003 wiz

Grammar fix, from jmc@openbsd.


# 1.25 16-Apr-2003 wiz

Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.


Revision tags: fvdl_fs64_base
# 1.24 01-Jun-2002 lukem

SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups


# 1.23 01-Jun-2002 lukem

correct descriptions of SLIST_REMOVE_HEAD() and SIMPLEQ_REMOVE_HEAD()


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.22 13-Feb-2002 ross

Generate <>& symbolically. I'm avoiding .../dist/... directories for now.


# 1.21 07-Feb-2002 wiz

s/All four/All five/


# 1.20 11-Sep-2001 wiz

Drop unneeded empty line.


# 1.19 24-Jun-2001 wiz

Typo/whitespace fix.


# 1.18 12-May-2001 wiz

Fix description of simple queue. misc/12917 by Witold J. Wnuk with an
additional 'of '.


# 1.17 11-Feb-2001 enami

Subst head.cqh_first with CIRCLEQ_FIRST(&head) instead of CIRCLEQ_HEAD.
Pointed out by Tim on icb sometimes ago (iirc).


# 1.16 20-Jul-2000 deberg

document the singly-linked list macros brought in last year. also
document FOREACH_*{,_REVERSE}, to be added to queue.h shortly.

random cleanups and clarifications, mostly from the freebsd queue.3


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.15 27-May-2000 mycroft

One more formatting nit. *sigh*


# 1.14 27-May-2000 mycroft

Update the date.


# 1.13 27-May-2000 mycroft

Fix formatting error.


# 1.12 27-May-2000 mycroft

Document *_EMPTY().


Revision tags: minoura-xpg4dl-base wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.11 19-Nov-1999 enami

branches: 1.11.2;
Don't pass so many args to .Nd macro. It just overflows.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 comdex-fall-1999-base netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.10 15-Mar-1999 garbled

branches: 1.10.6;
First round of .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.


# 1.9 06-Feb-1998 perry

macroize BSD, NetBSD, FreeBSD and misc cleanup


# 1.8 05-Jan-1998 thorpej

Document new queue access methods.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.7 30-Sep-1997 christos

PR/4126: Luke Mewburn: queue(3) doesn't document SIMPLEQ_*


# 1.6 29-May-1997 cgd

Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
.Dd "month day, year"
which is what these pages did.


# 1.5 01-Oct-1996 cgd

add and document *_HEAD_INITIALIZER macros, which provide structure
initializers which can be used to initialize list/queue heads at
compile time.


Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.4 03-Jul-1995 mycroft

Document {LIST,TAILQ}_INSERT_BEFORE().


# 1.3 03-Jul-1995 mycroft

Document {LIST,TAILQ}_INSERT_BEFORE().


# 1.2 30-Nov-1994 jtc

Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.1 21-Dec-1993 cgd

branches: 1.1.1;
queue.h from 4.4, from Bostic


Revision tags: pgoyette-localcount-20161104
# 1.54 15-Oct-2016 jdolecek

fix tyop


Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.53 31-May-2016 wiz

branches: 1.53.2;
Remove trailing whitespace.


# 1.52 31-May-2016 pgoyette

Correct list of operations to note that SLISTs and SIMPLEQs cannot insert
entries before existing entries. This can only be done for LISTs and
TAILQs.

Fixes PR kern/50845


# 1.51 02-Feb-2016 ryoon

Fix layout for comments. Bump date.


# 1.50 03-Dec-2014 snj

Fix some grammar and punctuation issues. Remove a pasto.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.49 18-May-2014 wiz

branches: 1.49.2;
Whitespace and punctuation.


# 1.48 17-May-2014 rmind

Rename LIST_CONCAT() to LIST_MOVE() as that is what it actually does (and
there is no point to implement LIST_CONCAT() which would iterate). Update
the queue(3) manpage.


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.47 28-Nov-2013 wiz

branches: 1.47.2;
Very slightly more consistency in ordering in SYNOPSIS.
Fix a few typos. Remove superfluous Pp.


# 1.46 27-Nov-2013 christos

Sync queue man pages with queue.h.


# 1.45 23-Nov-2013 wiz

Remove extra comma.


# 1.44 23-Nov-2013 christos

remove documentation for CIRCLEQ to discourage its use.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6
# 1.43 08-Oct-2012 njoly

Remove a tab character in non-literal context.
While here, replace all sp macros with Pp.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
# 1.42 20-Apr-2009 mschuett

branches: 1.42.6; 1.42.12;
Add queue macros SLIST_FOREACH_SAFE, STAILQ_FOREACH_SAFE, STAILQ_LAST,
SIMPLEQ_CONCAT, and SIMPLEQ_LAST.

Remove seperate definitions outside of queue.h.


# 1.41 11-Mar-2009 wiz

Do not mark up "and". Bump date for previous.


# 1.40 11-Mar-2009 mrg

add a SIMPLEQ_FOREACH_SAFE() macro.

document it, and the TAILQ versions.


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2
# 1.39 07-Oct-2008 apb

branches: 1.39.4;
Add a NOTE saying that invalid usage leads to undefined behaviour.
Inspired by PR 39684.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 wrstuden-revivesa-base mjf-devfs2-base
# 1.38 02-May-2008 martin

Move TNF licenses to 2 clause form


Revision tags: yamt-pf42-baseX yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
# 1.37 11-Dec-2007 elad

branches: 1.37.6; 1.37.8;
Add TAILQ_CONCAT() and STAILQ_CONCAT(), from FreeBSD.


# 1.36 22-Oct-2007 pooka

Note that CIRCLEQ_LOOP first appeared in NetBSD 4.0.


# 1.35 29-Aug-2007 pooka

bump date

Wrath of wizd avoided because of quick tip from Juan RP.


# 1.34 29-Aug-2007 pooka

Add table which summarizes operations supported by each queue type.

from Stathis Kamperis in PR misc/36857


Revision tags: netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-mips64-base abandoned-netbsd-4-base netbsd-4-base chap-midi-nbase chap-midi-base
# 1.33 07-Mar-2006 pooka

branches: 1.33.6; 1.33.8; 1.33.12;
document CIRCLEQ_LOOP


# 1.32 15-Dec-2005 pooka

* CICRLEQ -> CIRCLEQ in some places (it's much easier to pronounce)
* be more explicit that CIRCLEQ_FOREACH{,_REVERSE) traverse the queue
exactly once


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.31 13-Jan-2005 ragge

Fix CIRCLEQ example bug, from Peter A Jonsson.


# 1.30 18-Apr-2004 lukem

Reorder macros within a queue type to match queue.h definition order.
Document STAILQ_* as compatibility macros for SIMPLEQ_*.
Document TAILQ_LAST and TAILQ_PREV.


# 1.29 13-Apr-2004 wiz

Bump date for pooka.


# 1.28 13-Apr-2004 pooka

Note that SLISTs came from FreeBSD to give people an idea that
they're not necessarily a part of 4.4BSD derived implementations.


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.27 07-Aug-2003 agc

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22309, verified by myself.


# 1.26 20-May-2003 wiz

Grammar fix, from jmc@openbsd.


# 1.25 16-Apr-2003 wiz

Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.


Revision tags: fvdl_fs64_base
# 1.24 01-Jun-2002 lukem

SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups


# 1.23 01-Jun-2002 lukem

correct descriptions of SLIST_REMOVE_HEAD() and SIMPLEQ_REMOVE_HEAD()


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.22 13-Feb-2002 ross

Generate <>& symbolically. I'm avoiding .../dist/... directories for now.


# 1.21 07-Feb-2002 wiz

s/All four/All five/


# 1.20 11-Sep-2001 wiz

Drop unneeded empty line.


# 1.19 24-Jun-2001 wiz

Typo/whitespace fix.


# 1.18 12-May-2001 wiz

Fix description of simple queue. misc/12917 by Witold J. Wnuk with an
additional 'of '.


# 1.17 11-Feb-2001 enami

Subst head.cqh_first with CIRCLEQ_FIRST(&head) instead of CIRCLEQ_HEAD.
Pointed out by Tim on icb sometimes ago (iirc).


# 1.16 20-Jul-2000 deberg

document the singly-linked list macros brought in last year. also
document FOREACH_*{,_REVERSE}, to be added to queue.h shortly.

random cleanups and clarifications, mostly from the freebsd queue.3


Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.15 27-May-2000 mycroft

One more formatting nit. *sigh*


# 1.14 27-May-2000 mycroft

Update the date.


# 1.13 27-May-2000 mycroft

Fix formatting error.


# 1.12 27-May-2000 mycroft

Document *_EMPTY().


Revision tags: minoura-xpg4dl-base wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.11 19-Nov-1999 enami

branches: 1.11.2;
Don't pass so many args to .Nd macro. It just overflows.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 comdex-fall-1999-base netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.10 15-Mar-1999 garbled

branches: 1.10.6;
First round of .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.


# 1.9 06-Feb-1998 perry

macroize BSD, NetBSD, FreeBSD and misc cleanup


# 1.8 05-Jan-1998 thorpej

Document new queue access methods.


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.7 30-Sep-1997 christos

PR/4126: Luke Mewburn: queue(3) doesn't document SIMPLEQ_*


# 1.6 29-May-1997 cgd

Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
.Dd "month day, year"
which is what these pages did.


# 1.5 01-Oct-1996 cgd

add and document *_HEAD_INITIALIZER macros, which provide structure
initializers which can be used to initialize list/queue heads at
compile time.


Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.4 03-Jul-1995 mycroft

Document {LIST,TAILQ}_INSERT_BEFORE().


# 1.3 03-Jul-1995 mycroft

Document {LIST,TAILQ}_INSERT_BEFORE().


# 1.2 30-Nov-1994 jtc

Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.1 21-Dec-1993 cgd

branches: 1.1.1;
queue.h from 4.4, from Bostic