[ntp:hackers] singly-linked list template macros for NTP

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Jul 14 06:27:26 UTC 2009

In message <20090714043636.A1D2639FFF at mail1.ntp.org>, Harlan Stenn writes:

>Just to be clear, I gather one reason Dave is looking at this as there
>are more than one linked-list implementations in the code, and this will
>put all of them into a single place.

I can *highly* recommond the BSD <sys/queue.h> macros.

They provide a full set of all relevant kinds of list types, and comes
with a manual page.

See the files:

on a FreeBSD or NetBSD system.

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

More information about the hackers mailing list