Skip to content

enhanced renameat2 to support raw syscalls #2657

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hz2
Copy link

@hz2 hz2 commented Aug 3, 2025

What does this PR do

  • replace libc::renameat2() withlibc::syscall() for broader compatibility
  • define syscall numbers manually for multiple architectures
  • update conditional compilation to support all Linux environments
  • expand test coverage for additional architectures

context: uutils/coreutils#8391

Checklist:

  • I have read CONTRIBUTING.md
  • I have written necessary tests and rustdoc comments
  • A change log has been added if this PR modifies nix's API

- replace libc::renameat2() with libc::syscall() for broader compatibility
- define syscall numbers manually for multiple architectures
- update conditional compilation to support all Linux environments
- expand test coverage for additional architectures

added changelog entry for renameat2 support

rust fmt

handle all linux archs instead of explictly defining them
@hz2 hz2 force-pushed the enhance-renameat2-portability branch from be76b59 to c841902 Compare August 4, 2025 13:58
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