kqueue: Implement EV_RECEIPT.
Tested with a modified FreeBSD test. Also fix EVFILT_READ + EVFILT_WRITE failing to select only returning one error, and not two as it's supposed to.
This commit is contained in:
@@ -91,6 +91,7 @@ struct kevent {
|
||||
/* flags */
|
||||
#define EV_ONESHOT 0x0010 /* only report one occurrence */
|
||||
#define EV_CLEAR 0x0020 /* clear event state after reporting */
|
||||
#define EV_RECEIPT 0x0040 /* force EV_ERROR on success, data=0 */
|
||||
|
||||
/* returned values */
|
||||
#define EV_EOF 0x8000 /* EOF detected */
|
||||
|
||||
Reference in New Issue
Block a user