27 Commits

Author SHA1 Message Date
Theodore Dubois
1dfb9eba78 Log the select() timeout 2019-12-28 16:57:46 -08:00
Theodore Dubois
780eeb5489 Allow any negative timeout for epoll and poll to mean infinite
Fixed #571
2019-11-25 17:49:55 -08:00
Theodore Dubois
7123f95eb5 Even more correctly handle signals sent during a sigsuspend() 2019-08-11 14:36:45 -07:00
Theodore Dubois
d6ca8f99a0 Release files retained by poll 2019-01-21 12:21:00 -08:00
Theodore Dubois
aed7f5fb38 Fix some thread sanitizer warnings 2019-01-06 09:02:31 -08: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
f6f54adb19 Fix string.h being auto included pretty much everywhere 2018-12-24 13:20:29 -08:00
Theodore Dubois
866f441a09 Implement ppoll 2018-12-17 16:31:37 -08:00
Theodore Dubois
def615d367 Handle NULL sigmask argument for pselect 2018-12-10 12:39:38 -08:00
Theodore Dubois
5154e9e407 wow im bad at git 2018-12-08 17:00:35 -08:00
Theodore Dubois
39ceb7a097 Fix poll spinning when waiting on broken pipes 2018-12-06 17:52:46 -08:00
Theodore Dubois
8d00f8dacf Make it possible for poll to return multiple things 2018-11-18 15:09:08 -08:00
Theodore Dubois
fbd58ad3a2 Don't crash when calling select() with no FDs 2018-11-14 02:54:28 +00:00
Theodore Dubois
db525dc2ad Implement pselect 2018-10-30 16:59:12 -07:00
Theodore Dubois
ff08bffadd Merge duplicate poll file descriptors 2018-10-07 17:58:58 -07:00
Theodore Dubois
c2f1b92caf Allow select with empty fd set 2018-10-05 16:32:43 -07:00
Theodore Dubois
074656e2bb Make poll work with any number of fds 2018-10-05 11:27:15 -07:00
Theodore Dubois
fd7d640abd Fix a bunch of issues reported by static analyzers 2018-10-01 11:02:10 -07:00
Theodore Dubois
fae538cb05 Disable logging for exceptfds 2018-09-30 12:30:01 -07:00
Theodore Dubois
f1371370ce Implement poll timeouts and proper returns 2018-09-28 12:34:18 -07:00
Theodore Dubois
998b68e5d9 Add a bunch of strace messages 2018-09-27 14:38:45 -07:00
Theodore Dubois
eddf023669 Move pwd, root, uname out into its own struct 2018-01-21 17:24:32 -08:00
Theodore Dubois
728ca235c0 Replace files array with fdtable structure 2018-01-15 19:18:38 -08:00
Theodore Dubois
45a6a06142 Fix the arguments to memset 2018-01-05 14:38:05 -08:00
Theodore Dubois
7bb830f1e0 Add simple and pretty bad implementation of select 2018-01-04 15:50:01 -08:00
Theodore Dubois
f1e63c43e0 Rename sys directory to kernel
A number of the headers in it were conflicting with macOS system
headers.
2017-10-13 16:54:11 -07:00