Mercurial > minori
view dep/animia/include/animia/fd/linux.h @ 139:478f3b366199
dep/animia: separate lots of things, use base class for OS stuff
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 12 Nov 2023 16:43:07 -0500 |
parents | 28842a8d0c6b |
children | 14626691d0e1 |
line wrap: on
line source
#ifndef __animia__animia__fd__linux_h #define __animia__animia__fd__linux_h #include <vector> #include <tuple> #include <string> #include <set> #include "animia/types.h" #include "animia/fd.h" namespace animia::internal::linux { class LinuxFdTools final : public BaseFdTools { public: bool GetAllPids(std::set<pid_t>& pids) override; bool GetProcessName(pid_t pid, std::string& result) override; bool EnumerateOpenFiles(const std::set<pid_t>& pids, std::vector<std::tuple<pid_t, std::string>>& files) override; }; } #endif // __animia__animia__fd__linux_h