summaryrefslogtreecommitdiff
path: root/kernel/fs
AgeCommit message (Collapse)Author
2024-04-26Kernel: More out of memory condition checksAnton Kling
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-18Ext2: Fix uninitalized memory when reading inode headerAnton Kling
2024-04-17VFS/LibC: Fix small bugsAnton Kling
2024-04-17Kernel/ext2: Fix small bugs in ext2 fs implementation.Anton Kling
2024-04-15Bug fix and cleanup.Anton Kling
2024-04-13Kernel: Don't hard fail if the kernel can't allocate memory.Anton Kling
Currently this is just a improvement of error handling but it should also try to free up memory where it is possible.
2024-04-11bug fixesAnton 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-28TCP/UDP: Start rewrite of network socketsAnton Kling
Having sockets be file descriptors seems like a bad idea so I trying to make UDP and TCP sockets be more independent and not be abstracted away as much.
2024-02-21Kerenel: Cleanup halt checking codeAnton Kling
2024-02-21New clang-format optionsAnton Kling
2024-02-07A lot of small changesAnton Kling
2023-11-28Meta: Apply new clang-format rules to kernelAnton Kling
2023-11-22Meta: Use dirent as a general include fileAnton Kling
This include file is shared by the kernel and libc
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-15ext2: Bug fix. Add padding to the block group descriptor.Anton Kling
2023-11-13AHCI: Add write function.Anton Kling
This also changes the ext2 filesystem so it will now write to the file it mounted. Currently the file mounted is /dev/sda which points to a SATA drive.
2023-11-13Kernel: Add support for AHCI and make use of it with the current filesystem.Anton Kling
It will now also create a corresponding /dev/sd* device for each detected SATA drive. The filesystem still writes using the ATA driver. This should be fixed soon.
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-10Ext2: Change char* to u8* where the type is referencing data and not a CAnton Kling
string
2023-11-10Kernel Style: Change uint*_t -> u*Anton Kling
2023-11-10Kernel/Memory: Fill new allocations with random data.Anton Kling
This should make it easier to spot uninitalized memory being used.
2023-11-10Kernel/fs: Dynamically allocate based upon file size.Anton Kling
This commit also changes "unsigned char" to "char". A slight step in the direction of making my coding style less bipolar.
2023-11-09Kernel/fs: Dynamically allocate depending upon file size of directory.Anton Kling
This also solves a bug where the data_p pointer could get out of range due to incorrect assumptions being made about the ext2 directory layout. To be fair even a faulty ext2 directory layout should not be able to cause memory bugs.
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.