|
LIEF: Library to Instrument Executable Formats Version 1.0.0
|
This class exposes Linux-specific API for the current process. More...
#include <Process.hpp>


Static Public Member Functions | |
| static std::string | cmdline () |
| Return the content of /proc/cmdline. | |
| static std::string | glibc_version () |
| Return the version of the GNU C Library (glibc) loaded in the current process (e.g. 2.39). | |
| static constexpr bool | classof (const runtime::Process *) |
| Static Public Member Functions inherited from LIEF::runtime::Process | |
| static int32_t | pid () |
| Get the Process ID of the current process. | |
| static uint32_t | tid () |
| Get the Thread ID of the current thread. | |
| static constexpr ARCH | arch () |
| Return the target architecture of the current process. | |
| static constexpr PLATFORMS | platform () |
| Return the target platform of the current process. | |
| static uint32_t | page_size () |
| Return the number of bytes in a memory page. | |
| static optional< std::string > | get_env (const std::string &key) |
| Return the environment variable associated with the given key. | |
| static EnvVars | get_envs () |
| Return the environment variables present in the current process. | |
| static assembly::Engine * | default_engine () |
| Return the assembler/disassembler for the current process. | |
This class exposes Linux-specific API for the current process.
|
inlinestaticconstexpr |
References LIEF::runtime::LINUX, and LIEF::runtime::Process::platform().
|
static |
Return the content of /proc/cmdline.
|
static |
Return the version of the GNU C Library (glibc) loaded in the current process (e.g. 2.39).
Return an empty string if the version cannot be determined.