xref: /original-bsd/lib/libcompat/4.3/remque.c (revision 4ec22e22)
1 /*
2  * Copyright (c) 1987 Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  */
7 
8 #if defined(LIBC_SCCS) && !defined(lint)
9 static char sccsid[] = "@(#)remque.c	5.3 (Berkeley) 06/01/90";
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