Files
onionHEN/source/util/include/pt.h
T
Hexwell 5880505d16 refactor: unify pt/elfldr into liborion_elfldr and deepen proc/platform seams
Merge the three pt/elfldr clones (bootstrapper, libNineS, unpacker) into a
single liborion_elfldr with one authid policy (elevate once at inject entry,
never per ptrace). Wire consumers through shared headers; drop dead unpacker
loader sources. Route shellui if_exists through orion/platform and daemon
ShellUI/BigApp pid lookup through orion_proc. Document the layout and audit
status in docs/arch.md and docs/architecture-audit.md.
2026-07-10 17:35:49 +08:00

24 lines
546 B
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* Copyright (C) 2024–2025 John Törnblom / OrionHEN
*
* Util-facing ptrace API. Implementation: liborion_elfldr (no per-call authid).
* Process is elevated once (DEBUG_AUTHID) at util main; cave map uses shared pt_*.
*/
#pragma once
#include <orion/pt.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Historical util names → shared attach/detach. */
static inline int pt_attach_proc(pid_t pid) { return pt_attach(pid); }
static inline int pt_detach_proc(pid_t pid, int sig) {
return pt_detach(pid, sig);
}
#ifdef __cplusplus
}
#endif