296 Commits

Author SHA1 Message Date
Theodore Dubois
ff4f9d9704 Don't abort on unimplemented setitimer 2018-12-23 14:54:57 -08:00
Theodore Dubois
f8028736b4 Make mounting filesystems possible 2018-12-22 19:38:41 -08:00
Theodore Dubois
b55de4d7d2 Improve the situation with waiting for threads 2018-12-20 19:20:19 -08:00
Theodore Dubois
aa47e74092 Use the exit signal passed to clone() 2018-12-20 19:19:56 -08:00
Theodore Dubois
e5dda617de Work around glibc bug 2018-12-19 17:38:27 -08:00
Theodore Dubois
952221fe0d Allow waiting on children of a different thread 2018-12-19 15:15:15 -08:00
Theodore Dubois
c8468470b6 Return ECHILD from waitpid(-1) with no children
Fixes #204
2018-12-19 14:20:58 -08:00
Theodore Dubois
1e5ee8f215 Stub mlock 2018-12-19 13:59:26 -08:00
Theodore Dubois
2297838700 Send SIGCHLD to parent of dead process 2018-12-19 13:39:45 -08:00
Theodore Dubois
bb80e2d50a Stub sethostname 2018-12-17 17:12:02 -08:00
Theodore Dubois
866f441a09 Implement ppoll 2018-12-17 16:31:37 -08:00
Theodore Dubois
cf9509cbad Return EFAULT for bad address passed to mremap 2018-12-16 18:57:39 -08:00
Theodore Dubois
493b0e88fe Fix crash when forking with no tty 2018-12-14 09:01:51 -08:00
Theodore Dubois
723ebc44fc Don't send sigwinch if there's no handler 2018-12-11 04:38:00 -08:00
Theodore Dubois
291ca576d1 Stub fadvice64 2018-12-10 16:56:37 -08:00
Theodore Dubois
4756717512 Handle AT_REMOVEDIR flag for unlinkat 2018-12-10 16:56:15 -08:00
Theodore Dubois
5cb73a326f Remove dependency on Security.framework
The replacement, CCRandomGenerateBytes, is available in the C library. My computer was giving me an annoying and somewhat strange linker warning:

ld: warning: text-based stub file /System/Library/Frameworks//Security.framework/Security.tbd and library file /System/Library/Frameworks//Security.framework/Security are out of sync. Falling back to library file for linking.
2018-12-10 16:16:20 -08:00
Ryan Hileman
d1c12278e7 use getrandom syscall directly 2018-12-10 13:52:18 -08:00
Ryan Hileman
309c4353ba add get_random() API, implement /dev/[u]random 2018-12-10 13:12:27 -08:00
Theodore Dubois
def615d367 Handle NULL sigmask argument for pselect 2018-12-10 12:39:38 -08:00
Theodore Dubois
4ba6da7635 Implement FIONREAD for ttys 2018-12-10 12:39:29 -08:00
Theodore Dubois
7c4e52ccaa Handle fdatasync with fsync 2018-12-10 12:39:17 -08:00
Theodore Dubois
ec475f2d87 Initial implementation of timerfd 2018-12-10 12:27:45 -08:00
Theodore Dubois
64c7a13c87 Improve eventfd 2018-12-10 11:04:57 -08:00
Theodore Dubois
ecdab88711 Implement TIOCSCTTY 2018-12-09 23:08:13 -08:00
Theodore Dubois
2bd0d83b5c Remove a process from its old group before putting it in the new one 2018-12-09 18:58:48 -08:00
Theodore Dubois
f126bfbc61 Support killing process groups 2018-12-09 18:58:08 -08:00
Theodore Dubois
cdd899939c Stub getpriority and setpriority 2018-12-09 17:47:25 -08:00
Theodore Dubois
40252126c5 Implement eventfd 2018-12-08 18:59:11 -08:00
Theodore Dubois
b9b0b8f261 Stub out all the xattr system calls 2018-12-08 17:31:28 -08:00
Theodore Dubois
5154e9e407 wow im bad at git 2018-12-08 17:00:35 -08:00
Theodore Dubois
c2488a4d71 Unbreak disassembler debug logging 2018-12-08 14:25:53 -08:00
Theodore Dubois
f0767992f3 Implement reparenting 2018-12-07 18:46:01 -08:00
Theodore Dubois
b879b512bf Link in setsid 2018-12-07 18:29:42 -08:00
Theodore Dubois
b96b4f4d40 Mark stdio as open for reading and writing 2018-12-07 17:30:16 -08:00
Theodore Dubois
c3e076a44f Fix segfault when there's an error opening the interpreter 2018-12-07 15:52:18 -08:00
Theodore Dubois
cfe23cceba Fix mknod on Darwin 2018-12-07 12:47:40 -08:00
Theodore Dubois
a9bd656d2b Implement mknod in fake/real fs 2018-12-07 11:58:51 -08:00
Theodore Dubois
852a04d07f Implement generic mknod 2018-12-07 09:48:25 -08:00
Theodore Dubois
3e4adb3bb2 Implement clock_gettime(CLOCK_PROCESS_CPUTIME_ID) 2018-12-06 18:04:52 -08:00
Theodore Dubois
39ceb7a097 Fix poll spinning when waiting on broken pipes 2018-12-06 17:52:46 -08:00
Theodore Dubois
2adc56625c Make process group and session membership per-thread-group 2018-12-06 14:17:46 -08:00
Theodore Dubois
6999ac0c4b Block signals while the signal handler is running 2018-12-06 10:49:16 -08:00
Theodore Dubois
3e82469a27 Copy important things like brk and start_brk in fork 2018-12-05 14:32:19 -08:00
Theodore Dubois
520108b519 Implement getgroups and setgroups 2018-12-01 17:22:41 -08:00
Theodore Dubois
cfaef9d0b4 Add stub for sched_yield 2018-12-01 14:59:38 -08:00
Theodore Dubois
a4e91c7f10 Add stub for mbind 2018-12-01 14:55:54 -08:00
SEProblem
e254c811bb implement sys call 266 - clock_getresx 2018-11-30 19:25:23 -08:00
Theodore Dubois
f45ad6b50a fuk 2018-11-30 14:39:22 -08:00
Theodore Dubois
7d0e083098 Don't freeze the main thread when tapping the screen 2018-11-30 12:32:51 -08:00