summaryrefslogtreecommitdiff
path: root/kernel/fs/vfs.c
AgeCommit message (Collapse)Author
2024-12-12signal: Remove old way of sending signals and instead use procfsAnton Kling
2024-12-08vfs: Bug fix...Anton Kling
The commit is self explanatory. It was a simple mistype that went unnoticed for a while.
2024-12-08vfs: Force truncation even without permissionsAnton Kling
O_TRUNC as a mode does not seem to imply write permissions but we still wish to truncate the file before giving back a file descriptor. Therefore the kernel can now override any permission checks if it wishes to do a truncation while still using the "ordinary path".
2024-11-30vfs: Move read() to vfs.cAnton Kling
2024-11-23vfs: Support O_TRUNCAnton Kling
2024-11-23vfs: Add O_APPEND support + refactoringAnton Kling
2024-11-22vfs: Add dup()Anton Kling
2024-11-22vfs: Close new file descriptor if already in use when calling dup2Anton Kling
2024-07-08Kernel/Net: Don't use kmalloc to create send buffersAnton Kling
Current method is also really bad since it uses multiple copies when it should instead just copy to the send buffer of the network card directly. But I have other things that I want to prioritize first.
2024-07-05TCP: Add back support for listening on a socketAnton Kling
2024-07-01VFS: Move towards unifying vfs_inode_t and vfs_fd_tAnton Kling
There is no need for these to be seperate. They will probably move to the same struct soon.
2024-06-26Kernel: Code cleanupAnton Kling
2024-06-26Libc/Kernel: Add fcntl()Anton Kling
2024-06-26Remove mreadAnton Kling
2024-06-26Ext2: Bug fixAnton Kling
2024-06-25VFS: dup2 fixesAnton Kling
2024-06-22Kernel stuffAnton Kling
2024-06-17Reorganize logging codeAnton Kling
2024-06-09Add UDPAnton Kling
2024-04-29Kernel/Socket: Move sockets back to being file descriptorsAnton Kling
2024-04-27Kernel: Make "relist" able to dynamically resizeAnton Kling
2024-04-27Kernel: Make file descriptor numbers reusable.Anton Kling
Instead of using the "append only" list it now uses "relist" which allows for indexes to be removed.
2024-04-26Kernel/VFS: Change polling from variables to functionsAnton Kling
Instead of having to store state in variables functions are called to check the object directly.
2024-04-23VFS: Fix reference count of file descriptors.Anton Kling
It appears that there was a race condition where the process got closed before the server accepted the incoming request. Causing the file descriptor to have "0" in the reference count but it would still be given when calling accept.
2024-04-17VFS/LibC: Fix small bugsAnton Kling
2024-04-15Bug fix and cleanup.Anton Kling
2024-04-02Kernel: Use "struct list" to handle file descriptors instead of a fixed ↵Anton Kling
sized array
2024-04-02Kernel: Fix some memory leaksAnton Kling
2024-03-28new stuffAnton Kling
2024-03-26Increase support for signalsAnton Kling
2024-03-25Random changesAnton Kling
2024-03-17stuffAnton Kling
2024-03-14random changes madeAnton Kling
2024-02-21New clang-format optionsAnton Kling
2023-11-22Meta: Cleanup of header files such that they are partially sharedAnton Kling
The /include directory contains definitons that both the kernel and libc need to be in sync.
2023-11-18VFS: Do not add extra '/' on root path.Anton Kling
2023-11-17Kernel: Add isatty syscallAnton Kling
2023-11-16VFS: Do canonicalization of the current working directoryAnton Kling
2023-11-16ext2: Fix directory resolutionAnton Kling
Previously a parsing of /usr/../ would fail as it would be searching '/' for a empty file even though the desired outcome if for it to stop parsing after reaching '/'. The solution is to give the current directory inode if the file searched for in the directory is empty.
2023-11-15Kernel/LibC: Add chdir function and syscallAnton Kling
2023-11-15VFS: Add statAnton Kling
2023-11-15VFS: Bug fix. Uninitalized structure member.Anton Kling
This was found thanks to kmalloc now filling new allocations with random data.
2023-11-13Kernel: Remove kmalloc_eternalAnton Kling
I would like to be able to free some of those objects but I have not decided upon how that will be done yet. Even if not freeded the added complexity of having two functions does not make the extra bytes saved worth it IMO.
2023-11-10Kernel Style: Change uint*_t -> u*Anton Kling
2023-10-31Meta: Move kernel and userland to their own folders.Anton Kling
This is to allow both the kernel and the userland to share certain header files and to make the folder structure a bit more clear.