Commit Graph

169 Commits

Author SHA1 Message Date
Matheus 7e099fd0a5 jobctl: fix group refcounting 2024-05-22 09:45:00 -03:00
Matheus b61d391778 scheduler: hold reference on sched_getprocfrompid 2024-05-22 09:44:11 -03:00
Matheus 3587dfa28e jobctl/tty: foreground/background and send sighup on unregister 2024-05-21 17:48:41 -03:00
Matheus 0b01bd5e9d jobctl: fix linked list 2024-05-21 17:47:41 -03:00
Matheus 4dd74207a5 execve: fix shebang argument 2024-05-18 13:26:15 -03:00
Matheus 7ff10acac7 execve: shebang support 2024-05-18 12:11:39 -03:00
Matheus b2644df9c2 sigreturn fix 2024-05-17 19:19:37 -03:00
Matheus 1b63e9b436 signals: more general changes 2024-05-17 18:48:57 -03:00
Matheus 7b0cc4c51b initial signal implementation 2024-05-14 15:04:48 -03:00
Matheus efecdade64 waitpid: fix use after free 2024-05-09 13:06:51 -03:00
Matheus cab7901825 fork syscall: fix first thread not being set in threads array 2024-05-08 21:23:16 -03:00
Matheus ce3fad266b syscalls: implement O_CLOEXEC properly 2024-05-08 20:57:52 -03:00
Matheus bf841406d5 semaphore: signal safety 2024-05-08 20:13:12 -03:00
Matheus 0910232b56 interrupt: do userspace check on interrupt return to userspace 2024-05-08 19:22:37 -03:00
Matheus a2c7db6561 init: withx option 2024-05-07 21:54:12 -03:00
Matheus f2f7a629cc file: use mutex for locking rather than spinlock 2024-05-07 18:52:05 -03:00
Matheus 8c7356df2c stat: fix return value 2024-05-03 15:15:07 -03:00
Matheus dd46c4b766 scheduler: fix kernel stack unmapping 2024-05-01 22:41:59 -03:00
Matheus 8ff81b8f87 futex: fix use after free 2024-05-01 22:19:09 -03:00
Matheus 05049a091f job control: sessions and process groups 2024-05-01 21:42:38 -03:00
Matheus 5da946e0bd waitpid: W_NOHANG 2024-05-01 21:37:19 -03:00
Matheus e0c2cd9a2a scheduler: pid refcount 2024-04-28 18:45:43 -03:00
Matheus 8deb3a1144 context: CTX_INIT interrupt flag 2024-04-28 14:32:28 -03:00
Matheus f827163056 munmap: fix memory leak 2024-04-21 20:16:01 -03:00
Matheus c829ebbb1b poll syscall: fix return from wait 2024-04-20 15:47:46 -03:00
Matheus 79a178642c syscalls: random fixes 2024-04-20 10:26:00 -03:00
Matheus f8621bacc2 newthread: fix tid and runningthreadcount 2024-04-14 19:11:39 -03:00
Matheus 47910a616f syscalls: gettid 2024-04-14 19:09:58 -03:00
Matheus 82151cf1d2 syscalls: futex 2024-04-14 19:09:49 -03:00
Matheus 6d04deeac9 kernel: expose threads to userspace (newthread and threadexit syscalls) 2024-04-14 16:12:52 -03:00
Matheus 2cb94c2c2e scheduler: handle userland thread exit 2024-04-14 14:00:11 -03:00
Matheus d33ef16f87 scheduler: sched_stopotherthreads() 2024-04-14 13:21:54 -03:00
Matheus d3b17b90b9 exit syscall: stop other threads 2024-04-14 13:12:28 -03:00
Matheus 55f407da08 scheduler: handle interruptions in sched_yield() when sleeping as to prevent lost wakeup 2024-04-14 12:42:43 -03:00
Matheus f19f784694 poll: fix interruptible sleep 2024-04-14 12:06:08 -03:00
Matheus 016003e7c8 timer: fix use of zero'd memory 2024-04-13 20:59:25 -03:00
Matheus db13d23155 elf: instead of an assert fail, return EACCES 2024-04-13 20:58:33 -03:00
Matheus 5197cdba2a syscalls: accept connect listen 2024-04-13 20:58:03 -03:00
Matheus 9c4fe1a594 syscall: multiple syscalls related to sockets 2024-04-07 16:40:02 -03:00
Matheus a8487d01e8 poll syscall: fix an issue where files would be able to be closed while a thread was waiting 2024-04-07 16:35:21 -03:00
Matheus 52ab80bc9a scheduler: better define wakeup reasons 2024-03-30 18:39:26 -03:00
Matheus 84c20586c2 timer: fix an issue related to removing entries 2024-03-30 18:38:46 -03:00
Matheus 57c94ebf15 smp: let other processors run threads 2023-11-30 17:54:32 -03:00
Matheus 1b7e671a6d interrupt: fix issue with do pending 2023-11-30 17:50:54 -03:00
Matheus 6d8c0c30cf scheduler: sched_usleep 2023-10-15 20:58:10 -03:00
Matheus 98643cb17f timer: support 0 tick difference 2023-10-01 19:33:43 -03:00
Matheus 9519e4c67a poll: init changes 2023-09-30 12:48:55 -03:00
Matheus 257ac5413c fcntl: fix file flags 2023-09-17 01:32:20 -03:00
Matheus ac0961c9a6 kernel: rename VOP and syscall 2023-09-17 01:31:40 -03:00
Matheus 15a26b5af5 write syscall: support O_APPEND 2023-09-09 13:29:14 -03:00