|
a0fa1f2cfd
|
kernel+init: Create a device node in /dev to access the CDROM from userspace!
Still using PIO, though.
|
2023-06-16 21:10:33 +02:00 |
|
|
1090815c8d
|
kernel: Honor the sticky bit
|
2023-06-03 11:55:10 +02:00 |
|
|
ff952cfe16
|
kernel+init: Let userspace control devfs mountpoints
continuous-integration/drone/push Build is passing
|
2023-06-02 21:45:31 +02:00 |
|
|
bd8aaa917f
|
kernel+libc+ln: Add support for userspace hard link creation
continuous-integration/drone/push Build is passing
|
2023-05-27 11:32:40 +02:00 |
|
|
a98e9e8009
|
kernel: Add /dev/full
continuous-integration/drone/push Build is passing
|
2023-05-27 10:42:45 +02:00 |
|
|
cba0a23db9
|
kernel: Make the framebuffer a block device
continuous-integration/drone/push Build is passing
|
2023-05-26 20:36:35 +02:00 |
|
|
7cdb967730
|
kernel: compilation fix
continuous-integration/drone/push Build is passing
|
2023-05-26 20:30:39 +02:00 |
|
|
62e14e7580
|
kernel+libos+apps: Support block devices and disallow seeking character devices or pipes
continuous-integration/drone/push Build is failing
|
2023-05-26 20:27:47 +02:00 |
|
|
3a51807fa6
|
kernel+stat: Handle pipes correctly in stat()
continuous-integration/drone/push Build is passing
|
2023-05-23 20:54:25 +02:00 |
|
|
1094042a7d
|
kernel: Implement st_dev and st_rdev
continuous-integration/drone/push Build is failing
|
2023-05-23 20:45:24 +02:00 |
|
|
67a9d130e2
|
kernel: Add initial support for symbolic links :D
|
2023-05-20 21:49:24 +02:00 |
|
|
d7c563aebd
|
kernel: Add reference counting for mounts
continuous-integration/drone/push Build is passing
This will make sure we cannot unmount a file system while there is another one mounted inside it.
|
2023-05-18 16:22:31 +02:00 |
|
|
3a73d49aa1
|
kernel: Remove a mount from the mountpoint list after unmounting it
|
2023-05-18 16:18:09 +02:00 |
|
|
8f6bd29da3
|
kernel: Make file system reference counting work for current directories
continuous-integration/drone/push Build is passing
Also, make pipes usable again.
|
2023-05-17 20:37:01 +02:00 |
|
|
29174ca228
|
kernel/VFS: Add a way to unmount file systems
|
2023-05-17 19:52:26 +02:00 |
|
|
e7d482e78a
|
kernel+init: Add a VFS mount system and auto-populate the devfs
|
2023-05-17 19:40:37 +02:00 |
|
|
efc6d03f23
|
kernel+libc: Add support for unnamed pipes
continuous-integration/drone/push Build is passing
|
2023-05-10 22:48:31 +02:00 |
|
|
4753e80583
|
kernel: Make DeviceRegistry store the created devices instead of creating them when requested
continuous-integration/drone/push Build is passing
|
2023-05-09 18:31:27 +02:00 |
|
|
77560bbc3e
|
kernel+tools: Allow loading files with different owners + add a more dynamic install script
continuous-integration/drone/push Build is passing
|
2023-05-06 12:11:35 +02:00 |
|
|
3a1c22bb93
|
kernel: Add keyboard combinations for debug information dumps
Ctrl+Alt+E: Dump threads
Ctrl+Alt+M: Dump memory usage
Ctrl+Alt+H: Dump heap state
|
2023-05-04 23:32:48 +02:00 |
|
|
7058ec945a
|
libluna: Use a String for name and handle prefix correctly in TarStream
|
2023-05-02 10:51:53 +02:00 |
|
|
0c1d33f2ec
|
kernel: Move some files into subdirectories
continuous-integration/drone/push Build is passing
|
2023-04-28 15:55:06 +02:00 |
|
|
24f4ce9669
|
kernel: Only allow Ctrl+D on an empty line
|
2023-04-26 20:42:26 +02:00 |
|
|
4f6e020196
|
kernel+libc: Add framebuffer ioctls
continuous-integration/drone/push Build is passing
|
2023-04-21 18:25:53 +02:00 |
|
|
841fc25137
|
kernel+init: Add a framebuffer special device file
continuous-integration/drone/push Build is passing
|
2023-04-21 18:18:15 +02:00 |
|
|
949321932f
|
kernel: Do not forbid filenames starting with a hyphen
continuous-integration/drone/push Build is passing
Some programs on Linux seem to use those, better be careful.
|
2023-04-16 11:33:35 +02:00 |
|
|
e6954d2e49
|
kernel: Disallow problematic characters, control characters and invalid UTF-8 in filenames
|
2023-04-16 11:25:32 +02:00 |
|
|
82e7b0e860
|
kernel: Introduce *at() syscall framework, add openat() and fstatat()
continuous-integration/drone/push Build is passing
|
2023-04-15 20:26:15 +02:00 |
|
|
df95126ccd
|
kernel: Remove unneeded debug logs & random cleanups
continuous-integration/drone/push Build is passing
|
2023-04-14 21:10:38 +02:00 |
|
|
417e505750
|
kernel+libc: Add unlink(), rmdir(), remove()
|
2023-04-12 18:11:36 +02:00 |
|
|
2d30935fdb
|
kernel: Give each thread a working directory
|
2023-04-11 22:14:57 +02:00 |
|
|
fee33e7a14
|
kernel: Add ioctls() for termios stuff to ConsoleDevice
Only handles echoing for now.
|
2023-04-09 11:23:57 +02:00 |
|
|
76eb8cd129
|
kernel: Add an ioctl() system call
|
2023-04-09 11:22:57 +02:00 |
|
|
3887b98a7d
|
kernel: Support setuid binaries
continuous-integration/drone/push Build is passing
You still have to run "chmod 4755 /bin/su" as root inside Luna for now, as this is not done by the install scripts.
|
2023-04-08 16:32:56 +02:00 |
|
|
f6f9254eb4
|
kernel: Add process and filesystem UIDs and GIDs
|
2023-04-08 13:12:49 +02:00 |
|
|
64bca780a7
|
kernel: Add /dev/zero
continuous-integration/drone/push Build is passing
|
2023-03-30 21:19:16 +02:00 |
|
|
5623f3c699
|
tmpfs: Set the mode of the root directory on creation
|
2023-03-29 01:06:26 +02:00 |
|
|
8eb4d693ac
|
VFS: Add virtual method get() for getdents() and make existence checking occur in add_entry()
|
2023-03-28 21:15:26 +02:00 |
|
|
f084b57f39
|
kernel+sh: Allow using Ctrl+D to send EOF
continuous-integration/drone/push Build is failing
|
2023-03-24 17:21:21 +01:00 |
|
|
95e884db97
|
kernel: Fix compilation
|
2023-03-23 21:34:09 +01:00 |
|
|
cda036ce70
|
ConsoleDevice: Use a temporary buffer for backspace handling
continuous-integration/drone/push Build is failing
|
2023-03-23 21:22:12 +01:00 |
|
|
d33fccc66f
|
kernel: Implement reading from /dev/console
|
2023-03-19 19:15:19 +01:00 |
|
|
41514d9ad2
|
kernel: Add support for blocking reads
|
2023-03-19 11:21:50 +01:00 |
|
|
6a6a56a8b4
|
kernel: Make /dev/console actually respect the length parameter instead of trusting userspace's null terminators
|
2023-03-18 20:10:00 +01:00 |
|
|
7173c05a22
|
kernel: Add support for special device files and add a mknod() syscall
|
2023-03-18 09:10:33 +01:00 |
|
|
d66506256d
|
kernel/VFS+libc: Introduce modes
continuous-integration/drone/push Build is passing
|
2023-03-12 16:55:46 +01:00 |
|
|
354ffd033c
|
VFS: Add a size() method to inodes to implement seeking to the end of a file
continuous-integration/drone/push Build is passing
|
2023-03-12 14:49:21 +01:00 |
|
|
b54a7f3a80
|
kernel+libc: Add O_* flags and parse them in open()
continuous-integration/drone/push Build is passing
O_RDONLY, O_WRONLY, O_RDWR, O_TRUNC, O_CREAT and O_EXCL are fully implemented.
O_APPEND is partially implemented.
Other flags are not here yet.
|
2023-03-12 14:43:58 +01:00 |
|
|
c6aa2fe4ad
|
VFS: Populate the initial filesystem based on the initial ramdisk
|
2023-03-11 10:23:46 +01:00 |
|
|
ac304073b4
|
tmpfs: Disallow creating files/folders with already used names
|
2023-03-11 10:14:42 +01:00 |
|
|
d95ef110c9
|
vfs: Add support for creating directories given a full path
|
2023-03-11 01:13:44 +01:00 |
|
|
e5a41d2d52
|
tmpfs: Implement FileInode read() and write()
|
2023-03-11 00:52:39 +01:00 |
|
|
6fbf97292a
|
VFS: Implement resolve_path() using PathParser
continuous-integration/drone/push Build is passing
Already works better than old luna (handles .. correctly)
|
2023-03-10 22:18:48 +01:00 |
|
|
ff770b7328
|
VFS+TmpFS: Add support for creating subdirectories (mkdir)
continuous-integration/drone/push Build is passing
|
2023-03-10 21:09:08 +01:00 |
|
|
abdd460525
|
tmpfs: use adopt_shared_if_nonnull instead of plain adopt_shared in FileSystem::create()
|
2023-03-07 22:16:52 +01:00 |
|
|
65dd3cd7fb
|
TmpFS: Use StaticString<128> instead of char[128]
|
2023-02-27 15:22:39 +01:00 |
|
|
8ba571a30e
|
TmpFS: Use a fixed char array in DirInode's Entry instead of OwnedStringView
|
2023-02-27 15:22:39 +01:00 |
|
|
01b6294f76
|
kernel: Implement creating file inodes in tmpfs directories
|
2023-02-27 15:22:38 +01:00 |
|
|
a65f4311aa
|
tmpfs: make the root inode a DirInode instead of a FileInode
|
2023-02-27 15:22:38 +01:00 |
|
|
dd2f31d8d0
|
tmpfs: add DirInode skeleton
|
2023-02-27 15:22:38 +01:00 |
|
|
5fb292bc0e
|
tmpfs: rename tmpfs::Inode to tmpfs::FileInode
|
2023-02-27 15:22:37 +01:00 |
|
|
d3bda46325
|
tmpfs: Make m_next_inode_number atomic
|
2023-02-27 15:22:37 +01:00 |
|
|
ba9d725481
|
kernel: Rename FileSystem::root() to root_inode() and add a shortcut for the root filesystem's root inode
|
2023-02-27 15:22:37 +01:00 |
|
|
3a2b8bcfd7
|
kernel: Make a factory function for filesystem creation of inodes, and add inode numbers
Now every filesystem must provide fs->create_file_inode() for new inodes :)
|
2023-02-27 15:22:37 +01:00 |
|
|
a49555addc
|
kernel: Add a subclass of VFS::Inode to make it easier to implement file inodes
|
2023-02-27 15:22:36 +01:00 |
|
|
c422d11682
|
kernel: Start working on a VFS implementation using OOP and SharedPtr
|
2023-02-27 15:22:24 +01:00 |
|
|
cf758fdfdc
|
Initial commit :)
|
2022-11-13 10:09:09 +01:00 |
|
|
42efc21110
|
Start implementing read and write support in tmpfs
write seems to work fine, read just hangs there, waiting.
|
2022-11-12 20:11:26 +01:00 |
|
|
046065c533
|
Fix tmpfs
|
2022-11-12 19:05:47 +01:00 |
|
|
3451d50a37
|
Try building a tmpfs, but weird stuff happens
|
2022-11-12 18:13:41 +01:00 |
|
|
511bb7a8c1
|
Kernel: Make readdir() available in created InitRD directories
|
2022-11-12 18:11:58 +01:00 |
|
|
58fb422161
|
Kernel: Return a Result in MemoryManager and strdup_from_user
|
2022-11-12 11:56:40 +01:00 |
|
|
559d074ce4
|
Kernel: Make a more convenient wrapper for basename() and dirname()
|
2022-11-12 10:39:25 +01:00 |
|
|
078f3f5862
|
Kernel: Add a remainder to refactor the initial ramdisk code
|
2022-11-09 16:07:49 +01:00 |
|
|
d76af10e70
|
Kernel: Move initrd into the fs/ folder
It makes more sense to put it in there.
|
2022-11-09 16:03:16 +01:00 |
|
|
98da473fdc
|
Run clang-format
|
2022-11-08 19:07:43 +01:00 |
|
|
44815b08c7
|
Kernel: Use copy_from_user() and copy_to_user() in read/write
This is huge. Finally, we can do proper reads/writes with invalid addresses, or big buffers.
|
2022-11-06 15:19:23 +01:00 |
|
|
b2fb740d99
|
Kernel: Refuse to mkdir any directory named . or ..
|
2022-11-05 12:09:01 +01:00 |
|
|
2c08de044f
|
Kernel, libc: Add support for querying the framebuffer's scanline via ioctl()
|
2022-11-03 20:20:22 +01:00 |
|
|
71633e264f
|
Kernel: Make the serial port writable for everyone :)
|
2022-11-03 17:13:32 +01:00 |
|
|
249c79f8a3
|
Kernel, libc: Add ioctl()
Right now, only the framebuffer supports this system call, to query its dimensions.
|
2022-11-02 20:59:42 +01:00 |
|
|
8f2308c80d
|
Kernel: Implement mmap-able device files (regular files are not mmap-able yet)
|
2022-11-02 20:24:07 +01:00 |
|
|
42a805fd60
|
Kernel: Move the translated keyboard to /dev/console and make /dev/kbd provide raw scancodes
|
2022-11-02 19:51:54 +01:00 |
|
|
af0f4d2037
|
Kernel: Remove /dev/uptime
This information can now be fetched with clock_gettime.
|
2022-10-30 10:16:53 +01:00 |
|
|
e640c6e245
|
Kernel, libc, userspace: Add file timestamps (atime,ctime,mtime)
|
2022-10-30 09:57:17 +01:00 |
|
|
0115cce750
|
Kernel/VFS: Add file owners and file modes, and check those in system calls
|
2022-10-28 17:10:28 +02:00 |
|
|
41f7232b77
|
Devices: Return EOF after first read for some devices
Still not optimal.
|
2022-10-26 20:54:47 +02:00 |
|
|
ec2c314234
|
Kernel: Add /dev/null
|
2022-10-25 17:59:55 +02:00 |
|
|
14367f07b5
|
Kernel: Add support for getdents() to DeviceFS
|
2022-10-23 14:05:55 +02:00 |
|
|
78d72c2f0c
|
Kernel, libc: Add a getdents() system call
This is meant to be a low-level interface to implement dirent.h on top of.
|
2022-10-23 14:03:46 +02:00 |
|
|
0faabe02e5
|
Kernel, libc: Implement O_CLOEXEC
|
2022-10-22 10:28:02 +02:00 |
|
|
b2f5a0502f
|
Kernel, libc: Implement O_NONBLOCK
|
2022-10-21 21:51:03 +02:00 |
|
|
da61e3648f
|
Kernel: Implement blocking reads
This is a huge step forward!! bc actually runs now, without echo or backspace, but it runs!!
|
2022-10-21 21:26:19 +02:00 |
|
|
bef9158450
|
Kernel, libc: Add isatty() and F_ISTTY to fcntl()
|
2022-10-21 18:34:31 +02:00 |
|
|
a06e1c5a21
|
VFS: Remove warning when file is not found
That is a common ocurrence.
|
2022-10-20 19:11:50 +02:00 |
|
|
47bdfecedb
|
Devices: Add /dev/uptime
This file contains how many milliseconds have passed since boot at the time of reading it :)
|
2022-10-19 21:11:12 +02:00 |
|
|
3c5c92c7c3
|
sh: Add a simple interactive shell
|
2022-10-19 19:42:05 +02:00 |
|
|
b035795eb3
|
Kernel: Move errno.h and (k)assert.h out of the main include directory
This is mostly so IDEs don't pick them up instead of the userspace headers :)
|
2022-10-19 17:41:23 +02:00 |
|
|
d2e2883a79
|
Kernel: Make mkdir() accessible to userspace
|
2022-10-16 17:22:12 +02:00 |
|
|
18fbccafb7
|
VFS: add an exists() function
|
2022-10-16 16:58:18 +02:00 |
|