mheily / libkqueue

kqueue(2) compatibility library
Other
236 stars 77 forks source link

Missing support for macOS #152

Closed barracuda156 closed 1 year ago

barracuda156 commented 1 year ago

Possible to add?

jpereira commented 1 year ago

@barracuda156 well, the kqueue is native for OSX as can be seen in https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/kqueue.2.html

barracuda156 commented 1 year ago

Yes, it has some implementation, but incomplete on older systems. I am looking for a way to build libdispatch for PPC. Some of libdispatch implementations rely on kqueue. So far none worked :)

arr2036 commented 1 year ago

The native kernel kqueue is more feature-full than libkqueue. We have tests that run against libkqueue, FreeBSD and MacOS to ensure compatibility. The native kqueue and libkqueue should have near identical APIs and ABIs, so you can simply build libdispatch against the native kqueue. We will not be adding full support for macOS as there's very little sense in doing so beyond your use case of supporting PPC hardware. If you require this functionality you should be able to implement it yourself as another platform in a fork of libkqueue.