Skip to content

Rustix/remove unsafe libc#11821

Draft
sylvestre wants to merge 5 commits intomainfrom
rustix/remove-unsafe-libc
Draft

Rustix/remove unsafe libc#11821
sylvestre wants to merge 5 commits intomainfrom
rustix/remove-unsafe-libc

Conversation

@sylvestre
Copy link
Copy Markdown
Contributor

No description provided.

@xtqqczze
Copy link
Copy Markdown
Contributor

It seems like this PR adds more unsafe than it removes...

Replace the single unsafe libc::kill() call with safe rustix
equivalents: kill_process, kill_process_group,
kill_current_process_group, and their test_kill_* variants for
signal 0.
Replace unsafe libc::mknod() with safe rustix::fs::mknodat(CWD, ...)
and unsafe libc::umask() with safe rustix::process::umask().
@sylvestre sylvestre force-pushed the rustix/remove-unsafe-libc branch from 93432cb to e6ac8dd Compare April 20, 2026 22:24
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.

2 participants