mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
Add copyright notice, remove _KERNEL stuff.
This commit is contained in:
parent
35220ca0ad
commit
52379166ef
1 changed files with 11 additions and 45 deletions
|
|
@ -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
|
* Copyright (c) 1991, 1993
|
||||||
* The Regents of the University of California. All rights reserved.
|
* The Regents of the University of California. All rights reserved.
|
||||||
|
|
@ -499,49 +510,4 @@ struct { \
|
||||||
(elm)->field.cqe_next; \
|
(elm)->field.cqe_next; \
|
||||||
} while (0)
|
} 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_ */
|
#endif /* !_SYS_QUEUE_H_ */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue