Add an EV_SET() convenience macro for initializing struct kevent prior
to the call to kevent(). Update the copyright notices as well.
This commit is contained in:
parent
da403b9df8
commit
24607d88ed
@ -1,5 +1,5 @@
|
||||
/*-
|
||||
* Copyright (c) 1999,2000 Jonathan Lemon <jlemon@FreeBSD.org>
|
||||
* Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*-
|
||||
* Copyright (c) 1999,2000 Jonathan Lemon <jlemon@FreeBSD.org>
|
||||
* Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@ -38,6 +38,15 @@
|
||||
|
||||
#define EVFILT_SYSCOUNT 6
|
||||
|
||||
#define EV_SET(kevp, a, b, c, d, e, f) do { \
|
||||
(kevp)->ident = (a); \
|
||||
(kevp)->filter = (b); \
|
||||
(kevp)->flags = (c); \
|
||||
(kevp)->fflags = (d); \
|
||||
(kevp)->data = (e); \
|
||||
(kevp)->udata = (f); \
|
||||
} while(0)
|
||||
|
||||
struct kevent {
|
||||
uintptr_t ident; /* identifier for this event */
|
||||
short filter; /* filter for event */
|
||||
|
Loading…
x
Reference in New Issue
Block a user