133 Commits

Author SHA1 Message Date
Theodore Dubois
62a699603b Add half-finished files app integration 2018-09-22 15:18:45 -07:00
Theodore Dubois
a9cdcd38eb Pad out the vdso to avoid segfaults 2018-09-10 15:50:25 -07:00
Theodore Dubois
46f65f724b Add some clarifying comments to exit.c 2018-08-29 02:18:56 +00:00
Theodore Dubois
2ee6cafa94 Add flag checking to unicornomatic 2018-08-19 00:22:48 +00:00
Theodore Dubois
c16e7e0190 Unfuck rmdir 2018-08-12 20:39:15 -07:00
Theodore Dubois
b1ff0a31fc Implement futimens 2018-08-12 20:35:00 -07:00
Theodore Dubois
efd0b23ef2 Merge branch 'master' of github.com:tbodt/ish 2018-08-12 19:41:55 -07:00
Theodore Dubois
3cf7619de7 Merge branch 'jit' 2018-08-12 19:35:43 -07:00
Theodore Dubois
943662c1a8 Add strace for nanosleep 2018-08-12 18:53:43 -07:00
Theodore Dubois
601ed99dc3 Make sure different processes have different pids 2018-06-17 15:15:42 -07:00
Theodore Dubois
39174168c3 Break out of readv/writev as soon as a buffer is incompletely read/written 2018-06-16 16:44:48 -07:00
Theodore Dubois
41f2b61aff Find a slightly better place for log_override 2018-06-16 15:58:52 -07:00
Theodore Dubois
70d019edb3 Use the actual protection for file mappings 2018-06-14 07:35:29 -07:00
Theodore Dubois
cb209cb233 Initialize interp_ph 2018-05-26 11:58:32 -07:00
Theodore Dubois
46a26ad58b Fix vdso inclusion on Mac 2018-05-07 10:55:20 -07:00
Theodore Dubois
d4d7d4652f Replace cify with .incbin 2018-05-03 16:13:33 -07:00
Theodore Dubois
498c17b1a3 Foundations of jit, no actual compiling yet 2018-05-03 14:48:08 -07:00
Theodore Dubois
c83d07c092 Fix some file descriptor leaks 2018-04-20 18:32:56 -07:00
Theodore Dubois
4a8c3ea237 Make ncdu happen 2018-04-20 13:09:46 -07:00
Theodore Dubois
34c0d4b6a1 Don't segfault if exit_hook returns 2018-04-18 11:13:08 -07:00
Theodore Dubois
4315138357 Implement new NSLog logging handler 2018-04-15 13:38:16 -07:00
Theodore Dubois
b9c0f6a47f Add basic futex implementation 2018-04-06 11:01:55 -07:00
Theodore Dubois
d1a8dff6a8 Add a couple of straces 2018-03-28 15:37:28 -07:00
Theodore Dubois
da011d9752 Reimplement truncate, correctly this time 2018-02-04 20:23:01 -08:00
Theodore Dubois
ab6374df55 Stop passing NULL to path_normalize 2018-02-04 20:23:01 -08:00
Theodore Dubois
8a04545386 Enable creating threads 2018-02-02 16:57:36 -08:00
Theodore Dubois
8304fe0d2d Mark CLONE_THREAD as implemented 2018-02-01 17:25:49 -08:00
Theodore Dubois
428f414d48 Don't inherit the vfork_done flag 2018-02-01 17:23:18 -08:00
Theodore Dubois
85e68739fd Stop creating extra fs_info 2018-02-01 17:23:00 -08:00
Theodore Dubois
48e4425a34 Free ELF interpreter program headers 2018-02-01 17:23:00 -08: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
c776bb8e2a Clarify locking on task struct 2018-01-26 16:48:49 -08:00
Theodore Dubois
628055c2ba Use more specific types for several fields in task struct 2018-01-26 16:41:29 -08:00
Theodore Dubois
b07a0f6de8 Implement CLONE_CHILD_CLEARTID 2018-01-22 13:48:24 -08:00
Theodore Dubois
d6a44b6458 Require CLONE_VM for CLONE_SIGHAND and CLONE_SIGHAND for CLONE_THREAD 2018-01-22 13:08:19 -08:00
Theodore Dubois
56f7d13e47 Fix cleanup in copy_task 2018-01-22 13:06:17 -08:00
Theodore Dubois
bb6b0dd344 Release fs_info and sighand in exit 2018-01-22 13:05:16 -08:00
Theodore Dubois
a5fb79920c Split signal handlers into a separate structure and clone flag 2018-01-21 20:52:16 -08:00
Theodore Dubois
0b155737fb Ignore CLONE_SYSVSEM 2018-01-21 18:04:59 -08:00
Theodore Dubois
1dae2830e3 Implement CLONE_PARENT_SETTID 2018-01-21 18:02:49 -08:00
Theodore Dubois
f419eddfff Implement CLONE_SETTLS 2018-01-21 17:57:53 -08:00
Theodore Dubois
dbe0acb120 Implement CLONE_FS 2018-01-21 17:40:45 -08:00
Theodore Dubois
eddf023669 Move pwd, root, uname out into its own struct 2018-01-21 17:24:32 -08:00
Theodore Dubois
bc55900cf2 Remove some debug prints 2018-01-21 12:55:42 -08:00
Theodore Dubois
45e3fb1eec Reshuffle some of the code for clone 2018-01-21 12:54:50 -08:00
Theodore Dubois
6a907425e6 Rename process to task 2018-01-21 12:44:55 -08:00
Theodore Dubois
5fee551307 Implement close on exec 2018-01-19 16:44:34 -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