HomeFreeBSD

Change kqueue1() to be compatible with NetBSD

Description

Change kqueue1() to be compatible with NetBSD

by making it accept some open(2) flags. More precisely, only
O_CLOEXEC is supported, the flag is translated into the KQUEUE_CLOEXEC flag
for kqueuex(2), and O_NONBLOCK is silently ignored.

Reported and tested by: vishwin
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D39377

Details

Provenance
kibAuthored on Mar 31 2023, 10:31 PM
Differential Revision
D39377: kqueue1: fix compatibility with NetBSD
Parents
rG84b42df8345b: rack: fix build on powerpc
Branches
Unknown
Tags
Unknown