* 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.
This commit is contained in:
Corinna Vinschen
2007-06-12 15:24:46 +00:00
parent 5ef61dd044
commit ead5b131e0
9 changed files with 80 additions and 65 deletions

View File

@ -31,26 +31,18 @@ typedef enum
leaf
} VISIT;
#ifdef _SEARCH_PRIVATE
typedef struct node
{
char *key;
struct node *llink, *rlink;
} node_t;
struct que_elem
{
struct que_elem *next;
struct que_elem *prev;
};
#endif
struct hsearch_data
{
struct internal_head *htable;
size_t htablesize;
};
struct qelem
{
struct qelem *q_forw;
struct qelem *q_back;
};
__BEGIN_DECLS
int hcreate (size_t);
void hdestroy (void);
@ -69,6 +61,8 @@ void *lfind (const void *, const void *, size_t *, size_t,
int (*) (const void *, const void *));
void *lsearch (const void *, void *, size_t *, size_t,
int (*) (const void *, const void *));
void insque (void *, void *);
void remque (void *);
__END_DECLS
#endif /* !_SEARCH_H_ */