565 Commits

Author SHA1 Message Date
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
7123f95eb5 Even more correctly handle signals sent during a sigsuspend() 2019-08-11 14:36:45 -07:00
Viktor Oreshkin
c11d375e94 Add devices.h, replace magic dev numbers with defines 2019-08-06 16:48:00 +03:00
Theodore Dubois
f59df7c939 Stub statx 2019-08-03 16:29:24 -07:00
Theodore Dubois
635a8437f8 Add a bunch of half-assed permission checks 2019-07-28 21:04:38 -07:00
Theodore Dubois
c41dd566c0 Correctly handle signals sent during a sigsuspend() 2019-07-27 14:55:03 -07:00
tbodt
e5ba367522 Fix prototypes for sigreturn syscalls 2019-07-15 03:12:02 +00:00
Theodore Dubois
6e76d5460b Add stub for sysv ipc 2019-07-14 14:23:15 -07:00
Theodore Dubois
172246174b Ignore EPOLLET 2019-07-14 14:07:43 -07:00
Theodore Dubois
1e2c1ceabd Fix leak of child process memory when a multithreaded process forks 2019-07-07 22:19:17 -07:00
Theodore Dubois
62e7f022cf Increase the PID limit to something more realistic 2019-07-07 22:19:01 -07:00
Theodore Dubois
65795496c4 Implement MAP_SHARED 2019-07-07 19:20:53 -07:00
Theodore Dubois
b100b2bcb7 Fix segfault when calling old mmap 2019-07-07 17:37:13 -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
244b1d8bfa Implement /proc/uptime 2019-07-07 00:49:15 -07:00
Theodore Dubois
a8392d5316 Fix off-by-one signal masks
Apparently these have been broken since the beginning of time.
2019-07-05 23:28:02 -07:00
Theodore Dubois
c897ca4731 Stub msync 2019-07-05 19:38:46 -07:00
Theodore Dubois
991b5a0448 Remove debugging print 2019-07-05 18:01:44 -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
006360fa5d Use a nonzero value for initial RLIMIT_NPROC and RLIMIT_SIGPENDING
It turns out the Linux kernel has them as 0 in the table, but then sets
them to max_threads/2 (whatever that is).
2019-06-22 23:25:27 -07:00
Theodore Dubois
71284af633 Implement a queue for pending signals 2019-06-22 22:58:06 -07:00
Theodore Dubois
a39027c499 Eliminate the need for a "queued" signal set 2019-06-22 22:01:48 -07:00
Theodore Dubois
ae689abff5 Require a siginfo when sending a signal 2019-06-22 20:48:49 -07:00
Theodore Dubois
82b872d687 Add missing prototype for create_piped_stdio 2019-06-02 16:25:14 -07:00
Theodore Dubois
873d2fe9ac
Merge pull request #398 from MatthewMerrill/pipes
If stdin is not a tty, inherit stdin/stdout/stderr.
2019-06-02 15:22:31 -07:00
Matthew Merrill
82721f373f tidy up stdio piping code and add error handling 2019-05-28 14:49:47 -07:00
Matthew Merrill
033e0de008 clean up unneccesary variable 2019-05-28 14:19:38 -07:00
Matthew Merrill
249790e720 if stdin is not a tty, inherit stdin/stdout/stderr 2019-05-28 14:17:32 -07:00
Theodore Dubois
e9a479842b Fallback to adhoc stdio for any error opening /dev/tty1 2019-05-26 19:24:21 -07:00
Theodore Dubois
6735d2d28e Undo attempted fix for race condition that caused deadlock 2019-05-26 12:24:23 -07:00
Theodore Dubois
f92703986d Delete existing SSE code 2019-05-19 17:14:39 -07:00
Matthew Merrill
47ea1e85de remove status argument from halt_system (#384) 2019-05-15 20:10:47 -07:00
Theodore Dubois
ed67d8b8ba VDSO related fixes for ptraceomatic 2019-05-12 09:11:59 -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
779bae1fce Reparent children to another thread in the group first 2019-05-11 22:27:38 -07:00
Theodore Dubois
e96882c07a Get rid of idiotic fork_task function that broke threads 2019-05-05 22:09:37 -07:00
Theodore Dubois
76698412b1 Stub membarrier 2019-05-05 19:51:08 -07:00
Theodore Dubois
7d030189d2 Zero out a tty's session when the session dies 2019-05-05 19:47:26 -07:00
Theodore Dubois
3b01daa41e Only acquire a controlling tty if the tty has no session 2019-05-05 16:31:07 -07:00
Theodore Dubois
cebd8758ec Add strace for chmod and chown 2019-05-05 13:17:09 -07:00
Theodore Dubois
7a45420ac0 Make the session automatically restart 2019-05-05 09:21:13 -07:00
Theodore Dubois
fd3308f2c6 fuck 2019-05-04 23:52:24 -07:00
Theodore Dubois
5adc2832a6 Correct references to RLIM_INFINITY_ 2019-05-04 23:48:59 -07:00
Theodore Dubois
894c3d2af5 Make the whole boot system thing happen 2019-05-04 23:32:24 -07:00
Theodore Dubois
cc08b17c48 Add flags option to mount 2019-05-01 18:12:58 -07:00