From 52379166ef7533ddfb7deecaade076e56b32e899 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 6 Dec 2001 16:11:04 +0000 Subject: [PATCH] Add copyright notice, remove _KERNEL stuff. --- include/queue-compat.h | 56 +++++++++--------------------------------- 1 file changed, 11 insertions(+), 45 deletions(-) diff --git a/include/queue-compat.h b/include/queue-compat.h index f68deb2224..1ba68a7262 100644 --- a/include/queue-compat.h +++ b/include/queue-compat.h @@ -1,3 +1,14 @@ +/* + * Copyright 2001 The OpenLDAP Foundation, Redwood City, California, USA + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted only as authorized by the OpenLDAP + * Public License. A copy of this license is available at + * http://www.OpenLDAP.org/license.html or in file LICENSE in the + * top-level directory of the distribution. + */ +/* stolen from FreeBSD for use in OpenLDAP */ /* * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. @@ -499,49 +510,4 @@ struct { \ (elm)->field.cqe_next; \ } while (0) -#ifdef _KERNEL - -/* - * XXX insque() and remque() are an old way of handling certain queues. - * They bogusly assumes that all queue heads look alike. - */ - -struct quehead { - struct quehead *qh_link; - struct quehead *qh_rlink; -}; - -#ifdef __GNUC__ - -static __inline void -insque(void *a, void *b) -{ - struct quehead *element = (struct quehead *)a, - *head = (struct quehead *)b; - - element->qh_link = head->qh_link; - element->qh_rlink = head; - head->qh_link = element; - element->qh_link->qh_rlink = element; -} - -static __inline void -remque(void *a) -{ - struct quehead *element = (struct quehead *)a; - - element->qh_link->qh_rlink = element->qh_rlink; - element->qh_rlink->qh_link = element->qh_link; - element->qh_rlink = 0; -} - -#else /* !__GNUC__ */ - -void insque __P((void *a, void *b)); -void remque __P((void *a)); - -#endif /* __GNUC__ */ - -#endif /* _KERNEL */ - #endif /* !_SYS_QUEUE_H_ */ -- 2.39.5