2018-12-10 04:09:27 +03:00
|
|
|
#include <syscall.h>
|
|
|
|
#include <syscall_nums.h>
|
|
|
|
|
2021-08-28 08:50:52 +03:00
|
|
|
DEFN_SYSCALL2(shm_obtain, SYS_SHM_OBTAIN, const char *, size_t *);
|
|
|
|
DEFN_SYSCALL1(shm_release, SYS_SHM_RELEASE, const char *);
|
2018-12-10 12:44:34 +03:00
|
|
|
|
2021-08-28 08:50:52 +03:00
|
|
|
void * shm_obtain(const char * path, size_t * size) {
|
2018-12-10 12:44:34 +03:00
|
|
|
return (void *)syscall_shm_obtain(path, size);
|
|
|
|
}
|
|
|
|
|
2021-08-28 08:50:52 +03:00
|
|
|
int shm_release(const char * path) {
|
2018-12-10 12:44:34 +03:00
|
|
|
return syscall_shm_release(path);
|
|
|
|
}
|