Skip to content

Add file and memory mapping syscalls to macOS shim - #1392

Merged
Sangho Lee (sangho2) merged 1 commit into
uliteboxfrom
sanghle/ulitebox/mmap_syscalls
Sep 18, 2026
Merged

Sangho Lee (sangho2) merged 1 commit into
uliteboxfrom
sanghle/ulitebox/mmap_syscalls

Conversation

@sangho2

Copy link
Copy Markdown
Contributor

This PR adds file and memory mapping syscalls to the macOS shim.

@sangho2
Sangho Lee (sangho2) force-pushed the sanghle/ulitebox/mmap_syscalls branch from 2cb6980 to 47f527f Compare September 18, 2026 00:59
@sangho2
Sangho Lee (sangho2) force-pushed the sanghle/ulitebox/mmap_syscalls branch from 47f527f to 020a239 Compare September 18, 2026 01:02
@sangho2
Sangho Lee (sangho2) added this pull request to the merge queue Sep 18, 2026
@github-actions

Copy link
Copy Markdown

🤖 SemverChecks 🤖 ⚠️ Potential breaking API changes detected ⚠️

Click for details
--- failure enum_no_repr_variant_discriminant_changed: enum variant had its discriminant change value ---

Description:
The enum's variant had its discriminant value change. This breaks downstream code that used its value via a numeric cast like `as isize`.
        ref: https://doc.rust-lang.org/reference/items/enumerations.html#assigning-discriminant-values
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.50.0/src/lints/enum_no_repr_variant_discriminant_changed.ron

Failed in:
  variant SyscallRequest::Close 3 -> 4 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:84
  variant SyscallRequest::Dup 4 -> 5 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:87
  variant SyscallRequest::Getpid 5 -> 9 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:107
  variant SyscallRequest::Getppid 6 -> 10 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:108
  variant SyscallRequest::Getuid 7 -> 11 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:109
  variant SyscallRequest::Geteuid 8 -> 12 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:110
  variant SyscallRequest::Getgid 9 -> 13 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:111
  variant SyscallRequest::Getegid 10 -> 14 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:112
  variant SyscallRequest::MachAbsoluteTime 11 -> 15 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:113
  variant SyscallRequest::MachTimebaseInfo 12 -> 16 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:114
  variant SyscallRequest::MachWaitUntil 13 -> 17 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:117
  variant SyscallRequest::Close 3 -> 4 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:84
  variant SyscallRequest::Dup 4 -> 5 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:87
  variant SyscallRequest::Getpid 5 -> 9 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:107
  variant SyscallRequest::Getppid 6 -> 10 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:108
  variant SyscallRequest::Getuid 7 -> 11 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:109
  variant SyscallRequest::Geteuid 8 -> 12 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:110
  variant SyscallRequest::Getgid 9 -> 13 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:111
  variant SyscallRequest::Getegid 10 -> 14 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:112
  variant SyscallRequest::MachAbsoluteTime 11 -> 15 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:113
  variant SyscallRequest::MachTimebaseInfo 12 -> 16 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:114
  variant SyscallRequest::MachWaitUntil 13 -> 17 in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:117

--- failure enum_variant_added: enum variant added on exhaustive enum ---

Description:
A publicly-visible enum without #[non_exhaustive] has a new variant.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#enum-variant-new
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.50.0/src/lints/enum_variant_added.ron

Failed in:
  variant Errno:ENAMETOOLONG in /home/runner/work/litebox/litebox/litebox_common_macos/src/errno.rs:66
  variant SyscallRequest:Open in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:79
  variant SyscallRequest:Mmap in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:90
  variant SyscallRequest:Munmap in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:98
  variant SyscallRequest:Mprotect in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:102
  variant SyscallRequest:Open in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:79
  variant SyscallRequest:Mmap in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:90
  variant SyscallRequest:Munmap in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:98
  variant SyscallRequest:Mprotect in /home/runner/work/litebox/litebox/litebox_common_macos/src/syscall.rs:102

--- failure feature_missing: package feature removed or renamed ---

Description:
A feature has been removed from this package's Cargo.toml. This will break downstream crates which enable that feature.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#cargo-feature-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.50.0/src/lints/feature_missing.ron

Failed in:
  feature test-stdio in the package's Cargo.toml

Merged via the queue into ulitebox with commit 45a4f3e Sep 18, 2026
10 checks passed
@sangho2
Sangho Lee (sangho2) deleted the sanghle/ulitebox/mmap_syscalls branch September 18, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant