diff options
author | wollman <wollman@FreeBSD.org> | 2002-06-15 23:39:10 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 2002-06-15 23:39:10 +0000 |
commit | 756a1d4e888382fdcff6687ff856d6be958739ca (patch) | |
tree | 3a669c96b5bf4e562fe6ef76e7f0d45a280dd0c4 /sys/sys | |
parent | 5999218fab19244759e4a857051bf615da16e9e0 (diff) | |
download | FreeBSD-src-756a1d4e888382fdcff6687ff856d6be958739ca.zip FreeBSD-src-756a1d4e888382fdcff6687ff856d6be958739ca.tar.gz |
Add some (but not all) of the things POSIX expects to be declared in
<sys/select.h>.
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/select.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sys/sys/select.h b/sys/sys/select.h index 363dbb0..e033eea 100644 --- a/sys/sys/select.h +++ b/sys/sys/select.h @@ -36,4 +36,27 @@ #ifndef _SYS_SELECT_H_ #define _SYS_SELECT_H_ +#include <sys/cdefs.h> +#include <sys/_types.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_* macros + */ +#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); +__END_DECLS +#endif /* !_KERNEL */ + #endif /* _SYS_SELECT_H_ */ |