-
Notifications
You must be signed in to change notification settings - Fork 36
pgrep: remove libc in pgrep #626
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
base: main
Are you sure you want to change the base?
Conversation
|
clippy is sad |
f06e910 to
36feec4
Compare
Thanks, it compiles successfully on Ubuntu. It seems to be a multi-system compatibility issue. I'm currently modifying the check error. |
|
failed tests has nothing to do with you; you can just blame about the complexity of SYSTEM DEVELOPMEN. XD these tests have now been successfully completed. |
b34da15 to
53516e6
Compare
Use rustix instead of libc and unsafe functions such as getpgrp, getsid, flock, gettid, getppid, getpgid, and getsid.
53516e6 to
b5d03a8
Compare
| @@ -445,17 +429,32 @@ pub fn grp2gid(_name: &str) -> io::Result<u32> { | |||
| /// # Safety | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this function is no longer unsafe, the Safety comment is useless now.
| } | ||
| } | ||
|
|
||
| /// # Safety |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
Use rustix instead of libc and unsafe functions such as getpgrp, getsid, flock, gettid, getppid, getpgid, and getsid.
Closes: #595