mirror of
https://github.com/aydencharles/onionHEN.git
synced 2026-10-22 11:53:07 -05:00
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.
25 lines
577 B
C
25 lines
577 B
C
/* 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
|