121 Commits

Author SHA1 Message Date
Christopher Albert
dfb9f66611 Add syscall 136 personality 2020-02-17 15:45:27 +01:00
Theodore Dubois
6b5a14850c Implement mknodat 2020-02-02 22:35:58 -08:00
Theodore Dubois
8d005b114c Stub readahead
Fix #605
2020-01-05 11:13:28 -08:00
Theodore Dubois
dd8d3fb9d1 Fix race condition in mem_segv_reason
There's a brief delay between the page fault and calling
mem_segv_reason, and in that window the access could become valid.
2020-01-01 19:36:28 -08:00
Theodore Dubois
7d922884f6 Implement sched_get_priority_max
Close #436
2019-12-22 20:28:14 -08:00
Theodore Dubois
757f0a6b9d Stub io_setup 2019-12-15 19:12:58 -08:00
Theodore Dubois
3eaedbb935 Add some scheduler API stubs
#461
2019-11-25 15:51:12 -08:00
Theodore Dubois
dd8e656e98 Refactor execve again to allow empty arguments
Fixed #559
2019-11-17 19:58:10 -08:00
Theodore Dubois
6daf24b336 Implement timerfd_settime
Bug #104
2019-09-30 22:33:48 -07:00
Theodore Dubois
cd6f4eaf7d Make values for EPROTONOSUPPORT and ESOCKNOSUPPORT positive
This fixes socketpair in python.
2019-09-21 19:37:46 -07:00
Theodore Dubois
3ef82e1500 Add stubs for inotify, and a log for stubs 2019-09-21 19:32:01 -07:00
Theodore Dubois
d5f930996a Implement sigtimedwait 2019-08-25 21:28:31 -07:00
Theodore Dubois
3bd114ae48 Attempted implementation of pwrite 2019-08-11 22:15:36 -07:00
Theodore Dubois
87a9d48002 Stub setaffinity 2019-08-11 14:36:45 -07:00
Theodore Dubois
f59df7c939 Stub statx 2019-08-03 16:29:24 -07:00
Theodore Dubois
c41dd566c0 Correctly handle signals sent during a sigsuspend() 2019-07-27 14:55:03 -07:00
Theodore Dubois
6e76d5460b Add stub for sysv ipc 2019-07-14 14:23:15 -07:00
Theodore Dubois
95cee3f3ed Implement utime 2019-07-07 17:37:00 -07:00
Theodore Dubois
6ae1e86136 Implement 32-bit fcntl 2019-07-07 17:36:41 -07:00
Theodore Dubois
c897ca4731 Stub msync 2019-07-05 19:38:46 -07:00
Theodore Dubois
fce3cc64c7 Implement dup3
Close #387
2019-07-05 17:57:43 -07:00
Theodore Dubois
c6e818b5c5 Include the reason for a segfault 2019-07-05 17:44:29 -07:00
Theodore Dubois
7b9371e1af Implement receiving of signals with siginfo 2019-07-04 12:51:36 -07:00
Theodore Dubois
ae689abff5 Require a siginfo when sending a signal 2019-06-22 20:48:49 -07:00
Theodore Dubois
80bd91a2ea Implement 32-bit statfs 2019-05-11 23:13:52 -07:00
Theodore Dubois
4c7973e0e3 Implement alarm(2) 2019-05-11 22:50:44 -07:00
Theodore Dubois
76698412b1 Stub membarrier 2019-05-05 19:51:08 -07:00
Theodore Dubois
a94a56cfb4 Rework implementation of rlimit calls
Turns out prlimit is the only call that takes a 64-bit rlimit struct.
The other ones are supposed to take a 32 bit struct, and I never noticed
any stack smashing until now because musl just uses prlimit.
2019-05-01 16:25:32 -07:00
Theodore Dubois
623be6edc1 Implement tgkill 2019-05-01 15:31:15 -07:00
Theodore Dubois
480fde90f7 Implement utimes 2019-05-01 14:41:08 -07:00
Theodore Dubois
9757444e8d Implement sendmmsg 2019-05-01 10:34:45 -07:00
Theodore Dubois
6904368c7d Store the robust list 2019-05-01 09:45:20 -07:00
Theodore Dubois
54c236f375 Stub arch_prctl 2019-05-01 09:45:10 -07:00
Theodore Dubois
d405f1abcf Don't crash when given an out of bounds syscall 2019-05-01 09:44:43 -07:00
Theodore Dubois
8d533146c5 Implement getdents 2019-05-01 08:50:41 -07:00
Theodore Dubois
f5360288f3 Implement 32-bit variant of getrlimit 2019-04-21 12:17:38 -07:00
Theodore Dubois
dc490b961b Stub reboot(2) 2019-04-07 19:28:08 -07:00
Theodore Dubois
3a8795907e Implement pause(2) 2019-03-24 18:16:56 -07:00
Saagar Jha
fd51dfb115 Add stub for stime 2019-03-10 06:33:14 -07:00
Theodore Dubois
82ad92d010 Stub renameat2
Fixes #312
2019-02-12 14:54:27 -08:00
Theodore Dubois
d81c4c4539 Add stub for sync() 2019-02-03 22:44:05 -08:00
Theodore Dubois
356cd0230f Add missing newline on dump_stack output 2019-02-01 09:45:07 -08:00
Theodore Dubois
b4a24b0eb4 Stop ignoring -Winitializer-overrides 2019-01-13 17:30:08 -05:00
Theodore Dubois
0c788b79d9 Improve dump_stack output 2019-01-12 12:47:22 -08:00
Theodore Dubois
e5ca15aeb2 Make SIGKILL work on a stopped process 2019-01-08 09:24:46 -05:00
Theodore Dubois
5530f3f577 Implement sigpending 2019-01-02 19:45:06 -08:00
Theodore Dubois
8478bf5b53 Implement stopping processes with signals 2019-01-01 12:54:26 -08:00
Theodore Dubois
3b7c92d141 Implement sigsuspend
Fixes zsh (#103)
2018-12-30 21:19:46 -08:00
Theodore Dubois
ac422754ce Improve dump_stack output 2018-12-30 21:19:22 -08:00
Theodore Dubois
7f48c0e806 Stub copy_file_range 2018-12-27 20:21:07 -08:00