Kernel/Userspace: Replace my custom SHM system with SysV shm

This allows xbanan to use shm!
This commit is contained in:
2026-08-08 01:52:12 +03:00
parent 2c4fee4a82
commit fc40820150
23 changed files with 327 additions and 225 deletions
+3 -3
View File
@@ -12,14 +12,14 @@ __BEGIN_DECLS
#define __need_time_t
#include <sys/types.h>
#include <stdint.h>
#include <sys/ipc.h>
#include <unistd.h>
#define SHM_RDONLY 0x01
#define SHM_RND 0x02
#define SHMLBA (sysconf(_SC_PAGE_SIZE))
#define SHM_FAILED ((void*)(intptr_t)-1)
#define SHMLBA (getpagesize())
typedef unsigned int shmatt_t;