diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/hsearch.c | 6 | ||||
-rw-r--r-- | misc/sys/select.h | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/misc/hsearch.c b/misc/hsearch.c index f2739b8801..62f8ac9fee 100644 --- a/misc/hsearch.c +++ b/misc/hsearch.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1995, 1996 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1995, 1996, 1997 Free Software Foundation, Inc. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu> This file is part of the GNU C Library. @@ -50,3 +50,7 @@ hdestroy () { hdestroy_r (&htab); } + +/* Make sure the table is freed if we want to free everything before + exiting. */ +text_set_element (__libc_subfreeres, hdestroy); diff --git a/misc/sys/select.h b/misc/sys/select.h index a151570bc6..17edf820aa 100644 --- a/misc/sys/select.h +++ b/misc/sys/select.h @@ -52,7 +52,7 @@ typedef __fd_set fd_set; #ifdef __USE_MISC /* Number of bits per word of `fd_set' (some code assumes this is 32). */ -#define NFDBITS __NFDBITS +# define NFDBITS __NFDBITS #endif @@ -75,6 +75,7 @@ extern int select __P ((int __nfds, __fd_set *__readfds, __fd_set *__writefds, __fd_set *__exceptfds, struct timeval *__timeout)); +#ifdef __USE_POSIX /* Same as above only that the TIMEOUT value is given with higher resolution. This version should be used. */ extern int __pselect __P ((int __nfds, __fd_set *__readfds, @@ -83,6 +84,7 @@ extern int __pselect __P ((int __nfds, __fd_set *__readfds, extern int pselect __P ((int __nfds, __fd_set *__readfds, __fd_set *__writefds, __fd_set *__exceptfds, struct timespec *__timeout)); +#endif __END_DECLS |