Mercurial > minori
comparison dep/animia/include/bsd.h @ 84:eab9e623eb84
dep/animia: update from upstream
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 25 Oct 2023 14:53:05 -0400 |
parents | 6ff7aabeb9d7 |
children | 18979b066284 |
comparison
equal
deleted
inserted
replaced
83:d02fdf1d6708 | 84:eab9e623eb84 |
---|---|
2 #define __animia__bsd_h | 2 #define __animia__bsd_h |
3 #include <vector> | 3 #include <vector> |
4 #include <string> | 4 #include <string> |
5 #include <unordered_map> | 5 #include <unordered_map> |
6 | 6 |
7 namespace Animia::Unix { | 7 namespace Animia { namespace Unix { |
8 | 8 |
9 std::vector<int> get_all_pids(); | 9 std::vector<int> get_all_pids(); |
10 std::string get_process_name(int pid); | 10 std::string get_process_name(int pid); |
11 std::vector<std::string> get_open_files(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(); | 12 std::unordered_map<int, std::vector<std::string>> get_all_open_files(); |
13 | 13 |
14 } | 14 } // namespace Unix |
15 } // namespace Animia | |
15 | 16 |
16 #endif // __animia__bsd_h | 17 #endif // __animia__bsd_h |