Home
last modified time | relevance | path

Searched refs:as_raw_nonzero (Results 1 – 10 of 10) sorted by relevance

/third_party/rust/crates/rustix/tests/process/
Did.rs44 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/
Dprocess.rs11 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/
Dprctl.rs917 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/
Dprocctl.rs37 Some((idtype, id)) => (idtype, id.as_raw_nonzero().get()), in proc_selector_to_raw()
Did.rs150 pub const fn as_raw_nonzero(self) -> RawNonZeroPid { in as_raw_nonzero() method
Dprctl.rs793 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/
Dsyscalls.rs424 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/
Dsyscalls.rs41 unsafe { ret(c::tcsetpgrp(borrowed_fd(fd), pid.as_raw_nonzero().get())) } in tcsetpgrp()
/third_party/rust/crates/rustix/src/backend/linux_raw/
Dconv.rs521 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/
Dprocfs.rs251 let proc_self = proc_opendirat(proc, DecInt::new(pid.as_raw_nonzero().get()))?; in proc_self()