27 Commits

Author SHA1 Message Date
Theodore Dubois
4a8efe8d01 Make various memory management things shared between threads 2018-10-07 13:02:15 -07:00
Theodore Dubois
310a77ab3a Implement CLONE_CHILD_CLEARTID 2018-10-05 16:42:16 -07:00
Theodore Dubois
cb1c658598 Fix some incorrect locking 2018-10-01 14:48:27 -07:00
Theodore Dubois
fd7d640abd Fix a bunch of issues reported by static analyzers 2018-10-01 11:02:10 -07:00
Theodore Dubois
46f65f724b Add some clarifying comments to exit.c 2018-08-29 02:18:56 +00:00
Theodore Dubois
34c0d4b6a1 Don't segfault if exit_hook returns 2018-04-18 11:13:08 -07:00
Theodore Dubois
d1a8dff6a8 Add a couple of straces 2018-03-28 15:37:28 -07:00
Theodore Dubois
76124c1933 First pass at implementing exit_group 2018-02-01 17:23:00 -08: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
b07a0f6de8 Implement CLONE_CHILD_CLEARTID 2018-01-22 13:48:24 -08:00
Theodore Dubois
bb6b0dd344 Release fs_info and sighand in exit 2018-01-22 13:05:16 -08:00
Theodore Dubois
eddf023669 Move pwd, root, uname out into its own struct 2018-01-21 17:24:32 -08:00
Theodore Dubois
6a907425e6 Rename process to task 2018-01-21 12:44:55 -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
Theodore Dubois
759f6d5018 Return NULL from pid_get_proc on a zombie 2017-12-25 16:55:41 -08:00
Theodore Dubois
5e945e5898 Remove accidental sleep call 2017-12-25 15:49:10 -08:00
Theodore Dubois
07c4ab82bf Add a read-write lock to the memory object 2017-12-24 16:02:15 -08:00
Theodore Dubois
17e972f598 Fix crash when running things outside a fakefs 2017-12-20 16:18:00 -08:00
Theodore Dubois
5211b1e101 Improve sanity of process locking 2017-12-20 00:33:56 -08:00
Theodore Dubois
5d2fdd3e18 Reduce magic in locking macros 2017-12-19 22:48:43 -08:00
Theodore Dubois
f59d419c0e Duplicate fds on fork and close them on exit 2017-12-06 16:47:56 -08:00
Theodore Dubois
275dec070b Save the filesystem database on exit, translate open flags 2017-12-01 15:19:51 -08:00
Theodore Dubois
512aae7590 Fix missing include for pthread_kill 2017-10-25 17:18:45 -07:00
Theodore Dubois
afb6b5d5c6 Exit handling on iOS 2017-10-25 15:52:09 -07: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