Mercurial > libanimone
comparison include/animone/fd/openbsd.h @ 22:bc22d57076e3
dep/animone: separate *BSD into separate files
they are wholly different operating systems with very different
kernels on the inside
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Wed, 19 Jun 2024 13:06:10 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 21:973734ebd2be | 22:bc22d57076e3 |
|---|---|
| 1 #ifndef ANIMONE_ANIMONE_FD_OPENBSD_H_ | |
| 2 #define ANIMONE_ANIMONE_FD_OPENBSD_H_ | |
| 3 | |
| 4 #include <set> | |
| 5 #include <string> | |
| 6 | |
| 7 #include "animone/fd.h" | |
| 8 #include "animone/types.h" | |
| 9 | |
| 10 namespace animone::internal::openbsd { | |
| 11 | |
| 12 bool GetProcessName(pid_t pid, std::string& name); | |
| 13 bool EnumerateOpenProcesses(process_proc_t process_proc); | |
| 14 bool EnumerateOpenFiles(const std::set<pid_t>& pids, open_file_proc_t open_file_proc); | |
| 15 | |
| 16 } // namespace animone::internal::openbsd | |
| 17 | |
| 18 #endif // ANIMONE_ANIMONE_FD_OPENBSD_H_ |
