19 Commits

Author SHA1 Message Date
Theodore Dubois
7d922884f6 Implement sched_get_priority_max
Close #436
2019-12-22 20:28:14 -08:00
Theodore Dubois
3eaedbb935 Add some scheduler API stubs
#461
2019-11-25 15:51:12 -08:00
Theodore Dubois
6daf24b336 Implement timerfd_settime
Bug #104
2019-09-30 22:33:48 -07:00
Theodore Dubois
50b91978c1 Initialize the return value from sched_getaffinity
Erlang calls this to determine the number of available cores, and all
the uninitialized data was interpreted as 200 available cores.
2019-09-30 00:46:02 -07:00
Theodore Dubois
87a9d48002 Stub setaffinity 2019-08-11 14:36:45 -07:00
Theodore Dubois
a94a56cfb4 Rework implementation of rlimit calls
Turns out prlimit is the only call that takes a 64-bit rlimit struct.
The other ones are supposed to take a 32 bit struct, and I never noticed
any stack smashing until now because musl just uses prlimit.
2019-05-01 16:25:32 -07:00
Theodore Dubois
6d2f84c0af Fix build on linux 2019-04-21 12:23:56 -07:00
Theodore Dubois
f5360288f3 Implement 32-bit variant of getrlimit 2019-04-21 12:17:38 -07:00
Theodore Dubois
89d5b7f69a Resolve -Wsign-compare 2019-01-05 18:11:16 -08:00
Theodore Dubois
b04f6f1b3b Remove some unnecessary function arguments 2019-01-05 17:18:54 -08:00
Theodore Dubois
cdd899939c Stub getpriority and setpriority 2018-12-09 17:47:25 -08:00
Theodore Dubois
c68a78029c Add strace for getrlimit and setrlimit 2018-11-16 16:02:27 -08:00
Theodore Dubois
261f51ba61 Implement sched_setaffinity 2018-10-08 17:22:30 -07:00
Theodore Dubois
62a699603b Add half-finished files app integration 2018-09-22 15:18:45 -07:00
Theodore Dubois
4315138357 Implement new NSLog logging handler 2018-04-15 13:38:16 -07:00
Theodore Dubois
7e5e9e5c1f First pass at implementing thread groups
It builds and will give you a shell. Gonna call it a day.
2018-01-28 15:42:42 -08:00
Theodore Dubois
728ca235c0 Replace files array with fdtable structure 2018-01-15 19:18:38 -08:00
Theodore Dubois
77f9c73be9 Remove magic from locking macros 2018-01-14 18:18:12 -08:00
Theodore Dubois
bf3b711cdd Implement tracking of process cpu usage 2018-01-10 15:33:11 -08:00