diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-06-12 15:24:46 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-06-12 15:24:46 +0000 |
commit | ead5b131e0755ed69f0b67def2fa8c8fefca5d55 (patch) | |
tree | 9666c823cf14fea91b7912fbbbf1658e1981b661 /winsup/cygwin/include/sys/queue.h | |
parent | 5ef61dd044112b2c37d580b83d912a301d4f82e7 (diff) | |
download | cygnal-ead5b131e0755ed69f0b67def2fa8c8fefca5d55.tar.gz cygnal-ead5b131e0755ed69f0b67def2fa8c8fefca5d55.tar.bz2 cygnal-ead5b131e0755ed69f0b67def2fa8c8fefca5d55.zip |
* Makefile.in (DLL_OFILES): Add xsique.o.
* cygwin.din (confstr): Make NOSIGFE.
(insque): Export.
(remque): Export.
* lsearch.cc: Remove superfluous _SEARCH_PRIVATE define.
* posix.sgml: Move insque to defined SUSv3 interfaces. Remove
comment for remque.
* include/search.h: Remove _SEARCH_PRIVATE guarded definitions.
Add struct qelem definition. Add insque and remque declarations.
* include/cygwin/version.h: Bump API minor number.
* include/sys/queue.h: Remove insque/remque definitions so as not
to collide with SUSv3 compatible declaration in search.h.
* libc/xsique.cc: New file implementing insque and remque.
Diffstat (limited to 'winsup/cygwin/include/sys/queue.h')
-rw-r--r-- | winsup/cygwin/include/sys/queue.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/winsup/cygwin/include/sys/queue.h b/winsup/cygwin/include/sys/queue.h index 92fa56b2f..a62d82a2e 100644 --- a/winsup/cygwin/include/sys/queue.h +++ b/winsup/cygwin/include/sys/queue.h @@ -509,50 +509,4 @@ struct { \ QMD_TRACE_ELEM(&(elm)->field); \ } 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(void *a, void *b); -void remque(void *a); - -#endif /* __GNUC__ */ - -#endif /* _KERNEL */ - #endif /* !_SYS_QUEUE_H_ */ |