[net.unix-wizards] 4.1cBSD insque

hawker (04/14/83)

I have some code I need to upgrade from 4.1BSD to 4.1c/4.2,
and this stuff uses a look-alike for the insque() function.
Specifically, I need the semantics of the code.  Given:

	struct queue { struct queue *succ, *pred; } h;

If I want to insert an element at the "tail", do I use:

	insque(h.pred, &element.links);
- or -
	insque(&h, &element.links);


Please send replies to:

	Thomas S. (Tom) Hawker
	TRW DSG, Bldg R2/2009
	Redondo Beach, CA  90278
	    (213) 535-6166

	...!{ucbvax,decvax,sdcvax}!trw-unix!trwspp!hawker