1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:08:11 +00:00

Kernel+LibC: Add stubs for POSIX shared memory API.

Specifically shm_open() and shm_unlink(). This patch just adds stubs.
This commit is contained in:
Andreas Kling 2019-04-08 23:44:12 +02:00
parent 7f2eeb0b35
commit 99f3cc26c3
6 changed files with 36 additions and 0 deletions

View file

@ -2454,3 +2454,17 @@ int Process::sys$rename(const char* oldpath, const char* newpath)
return -EFAULT;
return VFS::the().rename(String(oldpath), String(newpath), cwd_inode());
}
int Process::sys$shm_open(const char* name, int flags, mode_t mode)
{
if (!validate_read_str(name))
return -EFAULT;
return -ENOTIMPL;
}
int Process::sys$shm_unlink(const char* name)
{
if (!validate_read_str(name))
return -EFAULT;
return -ENOTIMPL;
}