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
Theodore Dubois
f869a57498
Switch to SQLite for file metadata database
2018-11-30 09:13:57 -08:00
Theodore Dubois
3b4c71f662
Add function to report error and crash
2018-11-29 16:18:18 -08:00
Theodore Dubois
3444cc121d
Don't segfault when looking up a ridiculous PID
2018-11-25 17:50:33 -08:00
Theodore Dubois
e95a2acbdd
Don't return NULL from successful mremap
2018-11-25 17:39:17 -08:00
Theodore Dubois
875bffdc70
Mark non-fatal signals as not pending
2018-11-25 15:12:37 -08:00
Theodore Dubois
8985d83185
Implement lchown
2018-11-25 13:45:36 -08:00
Theodore Dubois
7ff1a13036
Add prctl stub
2018-11-25 13:45:08 -08:00
Theodore Dubois
3bd6682d70
Implement setuid, setgid and better checks for setresuid
2018-11-24 20:37:58 -08:00
Theodore Dubois
95af8cba0a
Don't copy out buffer if sys_read fails
2018-11-24 18:21:42 -08:00
Theodore Dubois
a6fc5bd1ea
Use radix tree for pagetables, dramatically reducing memory usage
2018-11-21 19:31:51 -08:00
Theodore Dubois
9eea489997
Unbreak getcwd
2018-11-21 14:09:42 -08:00
Theodore Dubois
2a5cb4ced6
Fix up error handling in fs.c
2018-11-21 13:24:46 -08:00
as@irc
47c0e2b0ab
Changed filesystem temp buffers to use heap allocations.
2018-11-21 13:17:18 -08:00
Theodore Dubois
8d00f8dacf
Make it possible for poll to return multiple things
2018-11-18 15:09:08 -08:00