asleepymoon
asleepymoon pushed to main at asleepymoon/Luna 2023-03-12 12:15:36 +00:00
7e655e320a kernel+libc: Add the lseek() syscall, and fseek, ftell, rewind, fsetpos, and fgetpos
292433dc39 kernel+libc: Add the write() system call, and fwrite()
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-03-12 10:15:52 +00:00
92dbe58729 libc: Unify function descriptions
asleepymoon pushed to main at asleepymoon/Luna 2023-03-12 10:10:30 +00:00
36e0a1e970 libc: Add definitions for strnlen, strndup and strlcpy to string.h
asleepymoon pushed to main at asleepymoon/Luna 2023-03-12 09:45:28 +00:00
377b8bea43 libc: Adjust comment in string.cpp
asleepymoon pushed to main at asleepymoon/Luna 2023-03-12 09:43:20 +00:00
3b03e19489 libc: Replace usize with size_t in string.h
asleepymoon pushed to main at asleepymoon/Luna 2023-03-12 09:39:57 +00:00
12bc59ead5 libc: Add strspn, strcspn, and strtok declarations to string.h
asleepymoon pushed to main at asleepymoon/Luna 2023-03-12 09:29:00 +00:00
af0cb83a58 libluna+kernel: Get rid of nullcpy()
7649b44aab libc: Add declaration for strrchr (already implemented)
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-03-12 09:23:21 +00:00
5c0104111d libc: Implement fopen, fclose, fread, feof, ferror, and clearerr
asleepymoon pushed to main at asleepymoon/Luna 2023-03-11 21:20:13 +00:00
c0a7f6776f kernel+libc: Add getpid()
asleepymoon pushed to main at asleepymoon/Luna 2023-03-11 17:03:05 +00:00
8fa72f3cf0 kernel+libc: Implement read()
810c4bc257 kernel+libc: Start interfacing with the VFS from userspace (open & close)
831973c39a Option: Allow direct access to the underlying value via operator->
Compare 3 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-03-11 09:39:50 +00:00
30deed2820 libluna/CPath: Replace size_t with usize
asleepymoon pushed to main at asleepymoon/Luna 2023-03-11 09:38:43 +00:00
0c07e66c4f Update all files from luna/ paths to libluna/
28028d229f README: Update luna/ links to point to libluna/
Compare 2 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-03-11 09:36:03 +00:00
dcf4444d0d Update README.md
asleepymoon pushed to main at asleepymoon/Luna 2023-03-11 09:34:23 +00:00
ff468db675 kernel/ELF+Scheduler: Use VFS instead of TarStream
c6aa2fe4ad VFS: Populate the initial filesystem based on the initial ramdisk
ac304073b4 tmpfs: Disallow creating files/folders with already used names
d95ef110c9 vfs: Add support for creating directories given a full path
6fd28379a9 TarStream: Add a direct pointer to entry data in the Entry struct
Compare 6 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-03-10 23:27:23 +00:00
89bea931cd libluna: Add a very simple Buffer class, to help implement tmpfs files
asleepymoon pushed to main at asleepymoon/Luna 2023-03-10 21:24:43 +00:00
6fbf97292a VFS: Implement resolve_path() using PathParser
4c66017807 libluna: Add PathParser, a C++-style way of iterating over path sections
5a9da55e05 libluna/CString: Implement strspn and strcspn, and using those implement strtok
6512e9549e tools: Make replace-stdint.sh search in libluna/ instead of luna/
Compare 4 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-03-10 20:09:14 +00:00
ff770b7328 VFS+TmpFS: Add support for creating subdirectories (mkdir)
41203df472 libluna/Vector: Use bytes instead of count in resize()
e8a401efc2 libluna/Heap: Crash the kernel (but not userspace) on invalid frees
Compare 3 commits »
asleepymoon pushed to main at asleepymoon/minitar 2023-03-08 16:05:26 +00:00
f12f58bacf fix: Make the untar example create parent directories for all entry types
asleepymoon pushed to main at asleepymoon/Luna 2023-03-08 15:41:21 +00:00
c376477080 libluna/StaticString: Rename OSize to OtherSize
c51b119eb4 StaticString: Add a constructor that takes in another StaticString
abdd460525 tmpfs: use adopt_shared_if_nonnull instead of plain adopt_shared in FileSystem::create()
293be2c75a tools: Use libluna instead of luna in run-clang-format.sh
e30eec4213 kernel/x86_64: Avoid kernel panics when a page fault occurs in a userspace thread
Compare 8 commits »
asleepymoon pushed to main at asleepymoon/Luna 2023-03-07 12:14:31 +00:00
80492f6ad3 luna: Add error_name, similar to strerrorname_np from glibc