Mercurial > minori
comparison dep/animia/include/linux.h @ 56:6ff7aabeb9d7
deps: add animia for open files detection
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Thu, 28 Sep 2023 12:35:21 -0400 |
| parents | |
| children | eab9e623eb84 |
comparison
equal
deleted
inserted
replaced
| 54:466ac9870df9 | 56:6ff7aabeb9d7 |
|---|---|
| 1 #ifndef __animia__linux_h | |
| 2 #define __animia__linux_h | |
| 3 #include <vector> | |
| 4 #include <string> | |
| 5 #include <unordered_map> | |
| 6 | |
| 7 namespace Animia::Linux { | |
| 8 | |
| 9 std::vector<int> get_all_pids(); | |
| 10 std::string get_process_name(int pid); | |
| 11 std::vector<std::string> get_open_files(int pid); | |
| 12 std::unordered_map<int, std::vector<std::string>> get_all_open_files(); | |
| 13 | |
| 14 } | |
| 15 | |
| 16 #endif // __animia__linux_h |
