Files
Hexwell aad2cdaabc refactor: rebrand OrionHEN to OnionHEN
Rename product, namespaces, libraries, paths, and assets from Orion/orion
to Onion/onion across the tree. TCP stack-shutdown magic is now ONIO
(0x4F4E494F) to match the corrected branding.
2026-07-15 18:23:16 +08:00

25 lines
577 B
C
Raw Permalink 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 / OnionHEN
*
* Util-facing ptrace API. Implementation: libonion_elfldr (no per-call authid).
* Process is elevated once with set_ucred_to_ptrace() (PTRACE_AUTHID) at util
* main; cave map uses shared pt_*.
*/
#pragma once
#include <onion/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