Lines Matching full:process
11 use crate::backend::process::syscalls;
12 use crate::backend::process::types::{RawId, Signal};
14 use crate::process::{Pid, RawPid};
23 /// Process id.
25 /// Process group id.
29 /// A process selector for use with the `procctl` interface.
31 /// `None` represents the current process. `Some((IdType::Pid, pid))` represents the process
33 /// the process group with id `pgid`.
45 process: ProcSelector, in procctl()
48 let (idtype, id) = proc_selector_to_raw(process); in procctl()
55 process: ProcSelector, in procctl_set()
58 procctl(option, process, (data as *const P as *mut P).cast()) in procctl_set()
64 process: ProcSelector, in procctl_get_optional()
67 procctl(option, process, value.as_mut_ptr().cast())?; in procctl_get_optional()
77 /// Get the current value of the parent process death signal.
92 /// Set the parent-death signal of the calling process.
128 /// Set the state of the `dumpable` attribute for the process indicated by `idtype` and `id`.
129 /// This determines whether the process can be traced and whether core dumps are produced for
130 /// the process upon delivery of a signal whose default behavior is to produce a core dump.
133 /// there is an extra argument `process`. When `process` is set to `None`, the operation is
134 /// performed for the current process, like on Linux.
141 pub fn set_dumpable_behavior(process: ProcSelector, config: DumpableBehavior) -> io::Result<()> { in set_dumpable_behavior()
142 unsafe { procctl(PROC_TRACE_CTL, process, config as usize as *mut _) } in set_dumpable_behavior()
154 /// Tracing is disabled for the process.
156 /// Tracing is not disabled for the process, but not debugger/tracer is attached.
158 /// The process is being traced by the process whose pid is stored in the first
163 /// Get the tracing status of the process indicated by `idtype` and `id`.
170 pub fn trace_status(process: ProcSelector) -> io::Result<TracingStatus> { in trace_status()
171 let val = unsafe { procctl_get_optional::<c_int>(PROC_TRACE_STATUS, process) }?; in trace_status()