asleepymoon
asleepymoon pushed to main at asleepymoon/Luna 2023-04-18 16:39:49 +00:00
00832163d4 libos: Add Process::exec
asleepymoon pushed to main at asleepymoon/Luna 2023-04-18 16:16:33 +00:00
6ce125d286 libos: Add a Process class
asleepymoon pushed to main at asleepymoon/Luna 2023-04-18 14:49:12 +00:00
fbb7de7156 sh: Do not leak memory when using cd
4baee3a91f sh: Close script file on exec
407e81b107 cat: Read into buffers instead of lines
fe11b04832 File: Add methods to read/write using buffers
51eedf2b16 Buffer: Add an is_empty() method
Compare 5 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-04-17 20:16:43 +00:00
e466c51e9f kernel: Also zero out mmap-ed pages
asleepymoon pushed to main at asleepymoon/Luna 2023-04-17 18:11:17 +00:00
95659639e5 kernel: Zero out allocated memory for userspace to avoid leaking sensitive data
asleepymoon pushed to main at asleepymoon/Luna 2023-04-16 20:00:55 +00:00
b2fe1f45ef libc: Define NULL in stdio.h
asleepymoon pushed to main at asleepymoon/Luna 2023-04-16 09:33:40 +00:00
949321932f kernel: Do not forbid filenames starting with a hyphen
asleepymoon pushed to main at asleepymoon/Luna 2023-04-16 09:25:53 +00:00
3b4214c8be dirname: Parse one-character paths properly
e6954d2e49 kernel: Disallow problematic characters, control characters and invalid UTF-8 in filenames
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-04-15 18:26:24 +00:00
82e7b0e860 kernel: Introduce *at() syscall framework, add openat() and fstatat()
asleepymoon pushed to main at asleepymoon/Luna 2023-04-14 19:10:51 +00:00
df95126ccd kernel: Remove unneeded debug logs & random cleanups
8c4ead0c0f libc: Add more conversion specifiers to strftime
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-04-13 19:09:44 +00:00
b7df596f8a libc: Add strftime()
asleepymoon pushed to main at asleepymoon/Luna 2023-04-13 16:34:02 +00:00
1733fc810d mkdir: Use os::FileSystem and add -p flag
fb3430c56a apps: Use os::FileSystem
5df16a9bff libos: Add FileSystem
bd60c65e17 kernel: Make chown() search in the process's current directory
Compare 4 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-04-13 15:32:57 +00:00
60c6e764a4 libos+apps: Add some missing functionality to File and eliminate any trace of C from cat and edit
26ff964ec1 libos: Add a new main() function
d97bf991d1 libos: Add a very bare-bones C++ RAII File class
Compare 3 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-04-12 19:08:59 +00:00
193d63c81b libluna+libc: Add strpbrk()
asleepymoon pushed to main at asleepymoon/Luna 2023-04-12 16:11:50 +00:00
3618a41bcd apps: Add rm
417e505750 kernel+libc: Add unlink(), rmdir(), remove()
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-04-11 20:45:44 +00:00
1b4f48b92c sh: Display the working directory as part of the prompt
427662d5f1 kernel+libc: Add getcwd()
7db215819e exec: Respect the program's working directory
Compare 3 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-04-11 20:15:57 +00:00
3a45f4af53 su: Change the current directory to the user's home on login
2a967f4b8b kernel+libc: Add chdir()
2d30935fdb kernel: Give each thread a working directory
dfce93c18f ls: List the current directory by default instead of the root directory
Compare 4 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-04-11 19:24:23 +00:00
79a96bf5af kernel/ELF: Remove old FIXME
asleepymoon pushed to main at asleepymoon/Luna 2023-04-10 17:56:13 +00:00
13c9caa856 kernel+libc: Add stat() + fstat()
asleepymoon pushed to main at asleepymoon/Luna 2023-04-09 09:24:42 +00:00
66c2896652 su: Use termios ioctls to turn off echoing and read a password
3e5957f9fc libc: Add ioctl() syscall wrapper
fee33e7a14 kernel: Add ioctls() for termios stuff to ConsoleDevice
76eb8cd129 kernel: Add an ioctl() system call
Compare 4 commits »