Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Use Darwin and FreeBSD overflow errno values for synthetic std errors

Đang mở Phù hợp với người mới
#1,005 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
76/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
operating-systems

Hướng nghiên cứu

Đọc std/sys/errors.wave bắt đầu từ dòng 12 để tìm các hằng số SYS_ERR_OVERFLOW được chọn theo mục tiêu cho Darwin và FreeBSD. Chỉ cập nhật các giá trị bị ảnh hưởng để cả hai tổng hợp -84, trong khi Linux, Windows và WASI vẫn không thay đổi. Xác nhận các nhà cung cấp lựa chọn mục tiêu và hồi quy kiểm tra tràn sleep/duration, sau đó dùng CI gốc cho macOS và FreeBSD.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
56
Fork
21
Merge trung bình
8 giờ 24 phút
Pull request đã merge (30 ngày)
52

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của wavefnd/Wave

Tất cả issue của wavefnd/Wave

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.