Closed RalfJung closed 2 months ago
@devnexen do you have a use-case where adding this function (always returning EINVAL) actually helps? If so, we should add a test, but otherwise I'd prefer to revert.
might be wiser to revert we can always add back if context changes.
Okay, thanks for clarifying! @bors r+
:pushpin: Commit ad60e8b6340ac72d51adaa175483e6379b6bbc57 has been approved by RalfJung
It is now in the queue for this repository.
:hourglass: Testing commit ad60e8b6340ac72d51adaa175483e6379b6bbc57 with merge 9a7c1240ce46b719f64611712fcfea0ac070eda4...
:sunny: Test successful - checks-actions Approved by: RalfJung Pushing 9a7c1240ce46b719f64611712fcfea0ac070eda4 to master...
This reverts commit c1a3f8576ea12b0bed68ad3dedf4069ca3d9816f. The shim isn't actually useful for anything, and it is untested on FreeBSD. On Linux it exists solely because std and num_cpus are trying this before falling back to
sysconf
, but on FreeBSD that's not how they work, so there's no reason I can see to have this stub shim on FreeBSD.