apio pushed to main at apio/Luna 2022-10-11 17:33:55 +00:00
0131193379 ELFLoader, Scheduler: Transition to use VFS
apio pushed to main at apio/Luna 2022-10-11 17:25:25 +00:00
86b50a6aa0 Remove random demos
apio pushed to main at apio/Luna 2022-10-11 17:21:29 +00:00
0a7d4a530d VFS, DeviceFS: Implement a device filesystem
apio pushed to main at apio/Luna 2022-10-11 16:25:17 +00:00
a198cf8d8d Add initrd_mkdir to registered directories in the initrd
apio pushed to main at apio/Luna 2022-10-11 16:23:11 +00:00
4aa3da8c12 VFS: Add basic mount(), unmount() and mkdir() functions (not accessible to userspace yet)
apio pushed to main at apio/Luna 2022-10-11 15:48:17 +00:00
1278cec065 VFS: Add a 'type' flag to Nodes, implement EISDIR
apio pushed to main at apio/Luna 2022-10-11 15:31:13 +00:00
7a097f16ea apps: add a new example app which does all kinds of stdio misbehaving >.<
667d308fc3 kernel/main.cpp: remove obsolete reference to _userspace
Compare 2 commits »
apio pushed to main at apio/Luna 2022-10-11 15:19:13 +00:00
6088031c49 stdio: log stuff more
apio pushed to main at apio/Luna 2022-10-11 15:10:50 +00:00
81815a0bdd Refactor sys/stdio.cpp
apio pushed to main at apio/Luna 2022-10-11 15:03:23 +00:00
2a755fcd93 sys_open(): actually return EMFILE if the process has used all of its file slots
apio pushed to main at apio/Luna 2022-10-11 14:57:14 +00:00
6c51477197 libc: Implement ferror() and feof()
apio pushed to main at apio/Luna 2022-10-10 19:24:29 +00:00
d25e8a43db build system: strip apps
apio pushed to main at apio/Luna 2022-10-10 19:18:30 +00:00
4f2b3ce5d1 fclose: restore errno after call to free() if close() fails
apio pushed to main at apio/Luna 2022-10-10 19:09:04 +00:00
93f6be9319 libc: Implement the start of a FILE* API (the standard, portable C way of doing file stuff)
apio pushed to main at apio/Luna 2022-10-10 18:45:34 +00:00
9e0bd39964 libc: Implement wrappers for sys_{open,read,write}
apio merged pull request apio/Luna#10 2022-10-10 18:25:43 +00:00
Virtual File System
apio pushed to main at apio/Luna 2022-10-10 18:25:43 +00:00
1b84c443fe Merge branch VFS into main
da2ede3450 Kernel, libc, userspace: Implement file descriptors
63b2de4e3c Basic FDs
bbe7c6e658 VFS: Implement resolve_path and form the initial ramdisk's VFS properly
2be70d0bc1 VFS: Use 64-bit numbers in read()
Compare 8 commits »
apio deleted branch vfs from apio/Luna 2022-10-10 18:25:43 +00:00
apio commented on pull request apio/Luna#10 2022-10-10 18:25:17 +00:00
Virtual File System

This needs:

  • libc wrappers
  • adding the C FILE* API to libc with this
  • more actions
  • more VFS functionality

But I think this is functional enough that it can be merged.

apio pushed to vfs at apio/Luna 2022-10-10 18:21:52 +00:00
da2ede3450 Kernel, libc, userspace: Implement file descriptors