Mercurial > minori
diff dep/animia/src/fd/bsd.cc @ 146:d8a61e7e2a36
dep/animia: move fd stuff to a new fd.cc, don't force the user
to include windows.h
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 13 Nov 2023 13:52:58 -0500 |
parents | e6668085e24d |
children | aa4df5a84338 |
line wrap: on
line diff
--- a/dep/animia/src/fd/bsd.cc Sun Nov 12 18:38:38 2023 -0500 +++ b/dep/animia/src/fd/bsd.cc Mon Nov 13 13:52:58 2023 -0500 @@ -25,7 +25,9 @@ /* this is a cleaned up version of a function from... Apple? ...anyway, what it essentially does is gets the size and stuff from - sysctl() and reserves the space in a vector to store the PIDs */ + sysctl() and reserves the space in a vector to store the PIDs + + TODO: https://kaashif.co.uk/2015/06/18/how-to-get-a-list-of-processes-on-openbsd-in-c/ */ bool UnixFdTools::GetAllPids(std::set<pid_t>& pids) { struct kinfo_proc* result = NULL; size_t length = 0;