Re: native inotify implementation
- In reply to: Jake Freeland: "Re: native inotify implementation"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 17 May 2025 15:35:49 UTC
On Fri, May 16, 2025 at 7:02 PM Jake Freeland <jfree@freebsd.org> wrote: > > Projects that use libinotify likely already specify -I/usr/local/include > so the C preprocessor can find /usr/local/include/sys/inotify.h. I > imagine they'd need to remove that include or uninstall the package to > pick up your new system header. We're actually already playing this game for example with iconv functions. Headers of libiconv from Ports can act as our native iconv.h when compiled with -DLIBICONV_PLUG. See https://github.com/freebsd/freebsd-ports/blob/4f1440897063b1e390df60a755aa7375e2d7c253/Mk/Uses/iconv.mk#L47 In the same vein, we can teach libinotify-kqueue headers to forward calls to the native implementation.