C bits modelled after <sys/queue.h>