X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/b0d623f7f2ae71ed96e60569f61f9a9a27016e80..d190cdc3f5544636abb56dc1874be391d3e1b148:/bsd/sys/select.h diff --git a/bsd/sys/select.h b/bsd/sys/select.h index 79237174b..1fa3f7605 100644 --- a/bsd/sys/select.h +++ b/bsd/sys/select.h @@ -72,30 +72,18 @@ * The timespec structure shall be defined as described in * The header shall define the timeval structure. */ -#define __need_fd_set -#define __need_struct_timespec -#define __need_struct_timeval -#include +#include +#include +#include /* * The time_t and suseconds_t types shall be defined as described in * * The sigset_t type shall be defined as described in */ -#ifndef _TIME_T -#define _TIME_T -typedef __darwin_time_t time_t; -#endif - -#ifndef _SUSECONDS_T -#define _SUSECONDS_T -typedef __darwin_suseconds_t suseconds_t; -#endif - -#ifndef _SIGSET_T -#define _SIGSET_T -typedef __darwin_sigset_t sigset_t; -#endif +#include +#include +#include /* * [XSI] FD_CLR, FD_ISSET, FD_SET, FD_ZERO may be declared as a function, or @@ -109,33 +97,19 @@ typedef __darwin_sigset_t sigset_t; * extra protection here is to permit application redefinition above * the default size. */ -#ifndef FD_SETSIZE -#define FD_SETSIZE __DARWIN_FD_SETSIZE -#endif /* FD_SETSIZE */ -#ifndef FD_SET -#define FD_SET(n, p) __DARWIN_FD_SET(n, p) -#endif /* FD_SET */ -#ifndef FD_CLR -#define FD_CLR(n, p) __DARWIN_FD_CLR(n, p) -#endif /* FD_CLR */ -#ifndef FD_ISSET -#define FD_ISSET(n, p) __DARWIN_FD_ISSET(n, p) -#endif /* FD_ISSET */ -#ifndef FD_ZERO -#define FD_ZERO(p) __DARWIN_FD_ZERO(p) -#endif /* FD_ZERO */ +#include +#include +#include +#include +#include + #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE) -#ifndef FD_COPY -#define FD_COPY(f, t) __DARWIN_FD_COPY(f, t) -#endif /* FD_COPY */ +#include #endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */ #ifdef KERNEL -#ifdef KERNEL_PRIVATE -#include -#endif #include - +#include #include /* @@ -144,8 +118,8 @@ typedef __darwin_sigset_t sigset_t; */ #ifdef KERNEL_PRIVATE struct selinfo { - struct wait_queue si_wait_queue; /* wait_queue for wait/wakeup */ - struct klist si_note; /* JMM - temporary separation */ + struct waitq si_waitq; /* waitq for wait/wakeup */ + struct klist si_note; /* JMM - temporary separation */ u_int si_flags; /* see below */ };