summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2002-06-16 18:40:16 +0000
committerwollman <wollman@FreeBSD.org>2002-06-16 18:40:16 +0000
commit66987638357fac47e421b9ad8c3baafdcd9cff29 (patch)
tree76b587332498d139f073d41a9459cdebde1a896c /sys/sys
parent19108fc03207dfb4cae9dc044f06ec6e728f9d25 (diff)
downloadFreeBSD-src-66987638357fac47e421b9ad8c3baafdcd9cff29.zip
FreeBSD-src-66987638357fac47e421b9ad8c3baafdcd9cff29.tar.gz
Now that we have a separate header file for sigset_t, use it and avoid
the full pollution of <signal.h>.
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/select.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/sys/select.h b/sys/sys/select.h
index e033eea..396edae 100644
--- a/sys/sys/select.h
+++ b/sys/sys/select.h
@@ -39,23 +39,27 @@
#include <sys/cdefs.h>
#include <sys/_types.h>
+#include <sys/_sigset.h>
#include <sys/timespec.h>
/*
* Other things required for this header which we do not presently implement:
*
* struct timeval (with suseconds_t)
- * sigset_t
- * fd_set (but we assume that it is defined)
+ * fd_set
* FD_* macros
+ *
+ * Temporarily get all of these things from <sys/types.h>, which has too
+ * much pollution to be used here but will do for now. (Eventually, the
+ * latter two will move to this file and be included *from* <sys/types.h>
+ * in the BSD namespace.)
*/
-#include <signal.h> /* XXX allowed but unnecessary pollution */
#include <sys/types.h> /* XXX dependency reversed */
#ifndef _KERNEL
__BEGIN_DECLS
int pselect(int, fd_set *__restrict, fd_set *__restrict, fd_set *__restrict,
- const struct timespec *__restrict, const struct __sigset *__restrict);
+ const struct timespec *__restrict, const sigset_t *__restrict);
__END_DECLS
#endif /* !_KERNEL */
OpenPOWER on IntegriCloud