all: split reusable components into workspace crates
This commit is contained in:
parent
2a079ed800
commit
657e7ce2f7
225 changed files with 7422 additions and 17602 deletions
8
utils/src/process_name.rs
Normal file
8
utils/src/process_name.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
use uapi::{IntoUstr, c};
|
||||
|
||||
pub fn set_process_name(name: &str) {
|
||||
unsafe {
|
||||
let name = name.into_ustr();
|
||||
c::prctl(c::PR_SET_NAME, name.as_ptr());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue