Commit Graph

104 Commits

Author SHA1 Message Date
Matheus 78492d4b56 handle /etc/hostname, sethostname(2), gethostname(2) and uname(2) 2024-05-22 21:09:17 -03:00
Matheus 6bc3747856 scheduler: sched_terminateprogram() 2024-05-22 17:10:33 -03:00
Matheus 8e1033f170 waitpid: implement WSTOPPED and WCONTINUED 2024-05-22 13:48:21 -03:00
Matheus ff13369073 setpgid: support changing between process groups and doing it for other processes 2024-05-22 09:46:31 -03:00
Matheus 13e7a6c1cc waitpid: add WSTOPPED and WCONTINUED to KNOWN_FLAGS 2024-05-22 09:45:42 -03:00
Matheus b61d391778 scheduler: hold reference on sched_getprocfrompid 2024-05-22 09:44:11 -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 8c7356df2c stat: fix return value 2024-05-03 15:15:07 -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 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 f19f784694 poll: fix interruptible sleep 2024-04-14 12:06:08 -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 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
Matheus 09bfc5cde4 waitpid syscall: fix status 2023-09-09 13:28:57 -03:00
Matheus 22e345b038 utimensat syscall: fix null dereference 2023-09-09 13:28:35 -03:00
Matheus b9e7c8a039 poll: support 0 nfds 2023-09-09 00:30:56 -03:00
Matheus fe303aec69 devfs: maxseek 2023-09-09 00:30:43 -03:00
Matheus 712aa9fbc0 kernel: utime syscall 2023-09-07 15:47:11 -03:00
Matheus 52d57f64d7 kernel: fchownat syscall 2023-09-07 15:47:02 -03:00
Matheus c33078b9c2 kernel: misc stuff 2023-08-08 21:21:06 -03:00
Matheus dcaa20ae9c mount syscall and simple mount program 2023-07-26 00:20:45 -03:00
Matheus c1aa09eade kernel: misc fixes 2023-07-25 19:02:59 -03:00
Matheus cb235ae3cc mmap: fix file mappings 2023-07-25 18:42:12 -03:00
Matheus df89cc1c63 open: fix no out of memory check 2023-07-23 00:58:10 -03:00
Matheus 2c058a56e6 kernel: random fixes on syscalls and pmm 2023-07-11 23:01:52 -03:00
Matheus 1b7fb2b852 poll: fix memory leak 2023-07-11 23:01:08 -03:00