Skip to content

Support kqueue on macOS #4007

Open
Open
@danielsn

Description

@danielsn

I was trying to run Miri on this test, and got the following error message:

--- STDERR:              data-pipeline trace_exporter::tests::new_defaults ---
error: unsupported operation: can't call foreign function `kqueue` on OS `macos`
   --> /Users/daniel.schwartznarbonne/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.11/src/sys/unix/selector/kqueue.rs:73:18
    |
73  |         let kq = syscall!(kqueue())?;
    |                  ^^^^^^^^^^^^^^^^^^ can't call foreign function `kqueue` on OS `macos`
    |
    = help: if this is a basic API commonly used on this target, please report an issue with Miri
    = help: however, note that Miri does not aim to support every FFI function out there; for instance, we will not support APIs for things such as GUIs, scripting languages, or databases

I would argue that kqueue is a sufficiently common API that Miri should consider supporting it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macArea: Affects only macOS targetsA-shimsArea: This affects the external function shimsC-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions