summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/fallocate.cpp
AgeCommit message (Collapse)Author
2023-06-04Kernel: Move all tasks-related code to the Tasks subdirectoryLiav A
2022-11-29Kernel: Add some spec links and comments to sys$posix_fallocate()Andreas Kling
2022-11-29Kernel: Make sys$posix_fallocate() fail with ENODEV on non-regular filesAndreas Kling
Previously we tried to determine if `fd` refers to a non-regular file by doing a stat() operation on the file. This didn't work out very well since many File subclasses don't actually implement stat() but instead fall back to failing with EBADF. This patch fixes the issue by checking for regular files with File::is_regular_file() instead.
2022-11-29Kernel: Remove unnecessary FIXME in sys$posix_fallocate()Andreas Kling
This syscall doesn't need to do anything for ENOSPC, as that is already handled by its callees.
2022-07-15Kernel+LibC: Add posix_fallocate syscallHendiadyoin1