Searched refs:as_raw_nonzero (Results 1 – 10 of 10) sorted by relevance
/third_party/rust/crates/rustix/tests/process/ |
D | id.rs | 44 process::getpid().as_raw_nonzero().get() as libc::pid_t, in test_getpid() 76 process::getpgid(None).unwrap().as_raw_nonzero().get() as libc::pid_t, in test_getpgid() 86 .as_raw_nonzero() in test_getpgid() 98 process::getpgrp().as_raw_nonzero().get() as libc::pid_t, in test_getpgrp()
|
/third_party/rust/crates/rustix/examples/ |
D | process.rs | 11 println!("Pid: {}", getpid().as_raw_nonzero()); in main() 13 println!("Group Pid: {}", getpgrp().as_raw_nonzero()); in main() 17 getpgid(Some(ppid)).unwrap().as_raw_nonzero() in main()
|
/third_party/rust/crates/rustix/src/thread/ |
D | prctl.rs | 917 pid.as_raw_nonzero().get() as usize as *mut _, in core_scheduling_cookie() 939 pid.as_raw_nonzero().get() as usize as *mut _, in create_core_scheduling_cookie() 961 pid.as_raw_nonzero().get() as usize as *mut _, in push_core_scheduling_cookie() 983 pid.as_raw_nonzero().get() as usize as *mut _, in pull_core_scheduling_cookie()
|
/third_party/rust/crates/rustix/src/process/ |
D | procctl.rs | 37 Some((idtype, id)) => (idtype, id.as_raw_nonzero().get()), in proc_selector_to_raw()
|
D | id.rs | 150 pub const fn as_raw_nonzero(self) -> RawNonZeroPid { in as_raw_nonzero() method
|
D | prctl.rs | 793 PTracer::ProcessID(pid) => pid.as_raw_nonzero().get() as usize as *mut _, in set_ptracer() 829 let pid = pid.map_or(0_usize, |pid| pid.as_raw_nonzero().get() as usize); in set_child_subreaper()
|
/third_party/rust/crates/rustix/src/backend/libc/process/ |
D | syscalls.rs | 424 unsafe { ret(c::kill(pid.as_raw_nonzero().get(), sig as i32)) } in kill_process() 432 pid.as_raw_nonzero().get().wrapping_neg(), in kill_process_group()
|
/third_party/rust/crates/rustix/src/backend/libc/termios/ |
D | syscalls.rs | 41 unsafe { ret(c::tcsetpgrp(borrowed_fd(fd), pid.as_raw_nonzero().get())) } in tcsetpgrp()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/ |
D | conv.rs | 521 pass_usize(pid.as_raw_nonzero().get() as usize) in from() 527 pass_usize(pid.as_raw_nonzero().get().wrapping_neg() as usize) in negative_pid()
|
/third_party/rust/crates/rustix/src/io/ |
D | procfs.rs | 251 let proc_self = proc_opendirat(proc, DecInt::new(pid.as_raw_nonzero().get()))?; in proc_self()
|