From 15d5bbf2b6bbb32370bf40f0fc0442de8f28a92b Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Sat, 15 Jun 2002 23:39:10 +0000 Subject: [PATCH] Add some (but not all) of the things POSIX expects to be declared in . --- sys/sys/select.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/sys/sys/select.h b/sys/sys/select.h index 363dbb0f04ac..e033eea2dde6 100644 --- a/sys/sys/select.h +++ b/sys/sys/select.h @@ -36,4 +36,27 @@ #ifndef _SYS_SELECT_H_ #define _SYS_SELECT_H_ +#include +#include + +#include + +/* + * 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_* macros + */ +#include /* XXX allowed but unnecessary pollution */ +#include /* 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); +__END_DECLS +#endif /* !_KERNEL */ + #endif /* _SYS_SELECT_H_ */