Use Darwin and FreeBSD overflow errno values for synthetic std errors

已关闭 适合新手
#1,005 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@LunaStev 已经在做这个了。

开始于 2026年10月30日。

  • #1058 来自 @LunaStev —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
76/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
rust

调研方向

从第 12 行开始阅读 std/sys/errors.wave,查找为 Darwin 和 FreeBSD 目标选择的 SYS_ERR_OVERFLOW 常量。仅更新受影响的值,使二者都合成 -84,同时保持 Linux、Windows 和 WASI 不变。确认目标选择提供方以及已检查的 sleep/duration 溢出回归测试,然后对 macOS 和 FreeBSD 使用原生 CI。

由索引模型根据 Issue 内容生成。

描述

bug good first issue

Problem

SYS_ERR_OVERFLOW is -75 on both macOS and FreeBSD, while their errno headers define EOVERFLOW as 84. Checked time/sleep helpers therefore synthesize an error in the Linux domain on those targets. Windows normalization is intentional and separate.

Starting point: std/sys/errors.wave:12.

Validation

Audited canonical Wave 540728c2eb6cc12f5c69c3fb3fdb96e07ba059a4 (0.0.1-alpha-dev), whose tree matches the local checkout. Validation: Source-to-official-header comparison; no native Darwin/FreeBSD run. Executed compiler probes use the matching checkout-built compiler and std on Linux amd64 (Rust 1.89.0 / LLVM 21.1.8). Source/header or mocked checks are not native execution on another OS.

Header references: XNU errno.h, FreeBSD 14.4 errno.h.

Scope

Correct only the affected target-selected constants and their observable synthetic results. Preserve Linux, Windows and WASI conventions.

Related: #945. These links do not claim those broader or completed scopes are unfinished.

Completion criteria

  • macOS and FreeBSD synthetic overflow returns -84.
  • Target-selection tests cover both affected providers and unchanged other targets.
  • Checked sleep/duration overflow regression and native CI confirm the result.

This is a bounded, unassigned task with the starting point and focused checks above. Keep unrelated refactoring out of the change.

主要语言
Rust
星标
56
派生
21
平均合并
20 小时 49 分钟
30 天内合并 PR
45

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

wavefnd/Wave 的其他 Issue

查看 wavefnd/Wave 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。