mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
- 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
10 lines
223 B
C++
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);
|