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:
Augustin Cavalier
2026-07-09 15:36:05 -04:00
parent 1699186567
commit 53630a31a0
2 changed files with 66 additions and 20 deletions
+1
View File
@@ -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 */