Use Darwin and FreeBSD overflow errno values for synthetic std errors
维护者通常 1 天内回复
评估
- 难度
- 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 内容生成。
描述
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
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
wavefnd/Wave 的其他 Issue
-
Reject unrepresentable POSIX listener descriptors before Unix-domain accept可能已有人在做 @ShahadatTest 于 2 天前认领。 未关闭bug good first issue
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
bug help wanted
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
-
bug help wanted
难度 4/5 3-5 天 新手友好度 53/100
维护者通常 1 天内回复
-
bug build help wanted
难度 4/5 3-5 天 新手友好度 56/100
维护者通常 1 天内回复
-
bug ci help wanted
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
nervosnetwork/fiber#1723 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 69/100
维护者通常 1 天内回复
-
needs triage
难度 2/5 1-3 小时 新手友好度 71/100
pbakaus/impeccable#1314 ·
维护者通常 1 天内回复
-
marmite skill: `curl ... | sh` is the first install method, bypassing review and integrity checks未关闭
难度 1/5 1-3 小时 新手友好度 78/100
rochacbruno/marmite#565 ·