xref: /original-bsd/lib/libcompat/4.3/remque.c (revision c3e32dec)
1 /*
2  * Copyright (c) 1987, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  */
7 
8 #if defined(LIBC_SCCS) && !defined(lint)
9 static char sccsid[] = "@(#)remque.c	8.1 (Berkeley) 06/04/93";
10 #endif /* LIBC_SCCS and not lint */
11 
12 /*
13  * remque -- vax remque instruction
14  *
15  * NOTE: this implementation is non-atomic!!
16  */
17 
18 struct vaxque {		/* queue format expected by VAX queue instructions */
19 	struct vaxque	*vq_next;
20 	struct vaxque	*vq_prev;
21 };
22 
23 remque(e)
24 	register struct vaxque *e;
25 {
26 	e->vq_prev->vq_next = e->vq_next;
27 	e->vq_next->vq_prev = e->vq_prev;
28 }
29