1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:17:35 +00:00

Kernel: More work towards POSIX SHM, also add ftruncate().

This commit is contained in:
Andreas Kling 2019-04-09 01:10:00 +02:00
parent 99f3cc26c3
commit 26a06f3fcd
10 changed files with 92 additions and 1 deletions

View file

@ -442,7 +442,8 @@ int create_thread(int(*entry)(void*), void* argument)
int ftruncate(int fd, off_t length)
{
ASSERT_NOT_REACHED();
int rc = syscall(SC_ftruncate, fd, length);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
int gettid()