Files
xiaozhou233 d31e43af31 Refactor: Vendor ptrace-inject-cpp into includes
- ptrace-inject-cpp: remove the submodule, its .gitmodules entry and config section
- includes/ptrace-inject-cpp: add the injection library sources, public header and LICENSE
- includes/ptrace-inject-cpp: add CMakeLists defining the ptrace_inject static library
- cmake: build includes/ptrace-inject-cpp on non-Windows instead of the submodule
- docs: list the vendored library in the AGENTS.md layout
2026-10-24 23:02:50 +08:00

10 lines
223 B
C++

#pragma once
#include <sys/types.h>
#include <string>
// Return the PID of the first process whose executable path or file name is
// `name`, or -1 if no process matches.
pid_t find_pid_by_name(const std::string& name);