forked from Imagelibrary/rtems
sys/event.h: Update to FreeBSD head 2017-02-13
This commit is contained in:
@@ -23,13 +23,14 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD: head/sys/sys/event.h 311055 2017-01-02 09:02:39Z kib $
|
||||
* $FreeBSD: head/sys/sys/event.h 313704 2017-02-13 19:00:09Z ed $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_EVENT_H_
|
||||
#define _SYS_EVENT_H_
|
||||
|
||||
#include <sys/queue.h>
|
||||
#include <sys/_types.h>
|
||||
#include <sys/queue.h>
|
||||
|
||||
#define EVFILT_READ (-1)
|
||||
#define EVFILT_WRITE (-2)
|
||||
@@ -43,7 +44,8 @@
|
||||
#define EVFILT_LIO (-10) /* attached to lio requests */
|
||||
#define EVFILT_USER (-11) /* User events */
|
||||
#define EVFILT_SENDFILE (-12) /* attached to sendfile requests */
|
||||
#define EVFILT_SYSCOUNT 12
|
||||
#define EVFILT_EMPTY (-13) /* empty send socket buf */
|
||||
#define EVFILT_SYSCOUNT 13
|
||||
|
||||
#define EV_SET(kevp_, a, b, c, d, e, f) do { \
|
||||
struct kevent *kevp = (kevp_); \
|
||||
@@ -56,11 +58,11 @@
|
||||
} while(0)
|
||||
|
||||
struct kevent {
|
||||
uintptr_t ident; /* identifier for this event */
|
||||
__uintptr_t ident; /* identifier for this event */
|
||||
short filter; /* filter for event */
|
||||
u_short flags;
|
||||
u_int fflags;
|
||||
intptr_t data;
|
||||
unsigned short flags;
|
||||
unsigned int fflags;
|
||||
__intptr_t data;
|
||||
void *udata; /* opaque user data identifier */
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user