Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-03-27 06:31:33 +0400
committerChristopher Faylor <me@cgf.cx>2005-03-27 06:31:33 +0400
commit255557f8c3bcc39467cd02a234d2a544f17d22c9 (patch)
treee152f9b0f349b6351d12563c0f14718775204142 /winsup/cygwin/include/search.h
parentec98d19a08c2e4678e8a6f40fea0c9bbeaa4a2c7 (diff)
* timer.cc (nanosleep): Treat tv_sec < 0 as invalid.
* include/search.h: Make declarations consistent with newlib.
Diffstat (limited to 'winsup/cygwin/include/search.h')
-rw-r--r--winsup/cygwin/include/search.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/winsup/cygwin/include/search.h b/winsup/cygwin/include/search.h
index fedfc8cf6..a1ccfe2aa 100644
--- a/winsup/cygwin/include/search.h
+++ b/winsup/cygwin/include/search.h
@@ -45,20 +45,29 @@ struct que_elem
};
#endif
+struct hsearch_data
+{
+ struct internal_head *htable;
+ size_t htablesize;
+};
+
__BEGIN_DECLS
int hcreate (size_t);
void hdestroy (void);
ENTRY *hsearch (ENTRY, ACTION);
-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 *));
+int hcreate_r (size_t, struct hsearch_data *);
+void hdestroy_r (struct hsearch_data *);
void *tdelete (const void * __restrict, void ** __restrict,
int (*) (const void *, const void *));
-void *tfind (const void *, void * const *,
+void tdestroy (void *, void (*)(void *));
+void *tfind (const void *, void **,
int (*) (const void *, const void *));
void *tsearch (const void *, void **, int (*) (const void *, const void *));
void twalk (const void *, void (*) (const void *, VISIT, int));
+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 *));
__END_DECLS
#endif /* !_SEARCH_H_ */