mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17:44 +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:
parent
7f2eeb0b35
commit
99f3cc26c3
6 changed files with 36 additions and 0 deletions
|
@ -28,4 +28,16 @@ int set_mmap_name(void* addr, size_t size, const char* name)
|
|||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int shm_open(const char* name, int flags, mode_t mode)
|
||||
{
|
||||
int rc = syscall(SC_shm_open, name, flags, mode);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int shm_unlink(const char* name)
|
||||
{
|
||||
int rc = syscall(SC_unlink, name);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue