Open mkroening opened 1 year ago
In https://github.com/rust-lang/rust/pull/113358, I tried to add a check for poll returning ENOSYS to the runtime initialization path of Linux.
poll
ENOSYS
The use-case was adding a target for the Unikraft Unikernel Development Kit, which does not support poll, in its most basic configuration and instead stubs it, returning ENOSYS.
@workingjubilee proposed in https://github.com/rust-lang/rust/pull/113358#issuecomment-1622441912 that we might want to make sys easier to configure according to different target's capabilities (even from target-spec.json).
sys
target-spec.json
@rustbot label: +A-technical-debt
I just opened https://github.com/rust-lang/rust/pull/113411, where I added a Unikraft-specific cfg.
cfg
In https://github.com/rust-lang/rust/pull/113358, I tried to add a check for
poll
returningENOSYS
to the runtime initialization path of Linux.The use-case was adding a target for the Unikraft Unikernel Development Kit, which does not support
poll
, in its most basic configuration and instead stubs it, returningENOSYS
.@workingjubilee proposed in https://github.com/rust-lang/rust/pull/113358#issuecomment-1622441912 that we might want to make
sys
easier to configure according to different target's capabilities (even fromtarget-spec.json
).@rustbot label: +A-technical-debt