comparison dep/animia/src/bsd.cpp @ 86:c912128af0eb

*: various macos fixes todo: push that bsd thing to upstream
author Paper <mrpapersonic@gmail.com>
date Tue, 31 Oct 2023 13:52:36 -0400
parents eab9e623eb84
children 18979b066284
comparison
equal deleted inserted replaced
85:c69230dc2b5d 86:c912128af0eb
4 * - this also works for OS X :) 4 * - this also works for OS X :)
5 * more technical details: this is essentially a wrapper 5 * more technical details: this is essentially a wrapper
6 * around the very C-like BSD system functions that are... 6 * around the very C-like BSD system functions that are...
7 * kind of unnatural to use in modern C++. 7 * kind of unnatural to use in modern C++.
8 **/ 8 **/
9 #include <assert.h>
9 #include <fcntl.h> 10 #include <fcntl.h>
10 #include <iostream> 11 #include <iostream>
11 #include <string> 12 #include <string>
12 #include <sys/sysctl.h> 13 #include <sys/sysctl.h>
13 #include <sys/types.h> 14 #include <sys/types.h>