LibC: Add stubs for shm_* functions

This commit is contained in:
2026-01-06 16:01:57 +02:00
parent 943e3b6f51
commit d0ba52073f
3 changed files with 18 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
#include <BAN/Debug.h>
#include <errno.h>
#include <sys/shm.h>
#define TODO_FUNC(type, name, ...) type name(__VA_ARGS__) { dwarnln("TODO: " #name); errno = ENOTSUP; return (type)-1; }
TODO_FUNC(void*, shmat, int, const void*, int)
TODO_FUNC(int, shmctl, int, int, struct shmid_ds*)
TODO_FUNC(int, shmdt, const void*)
TODO_FUNC(int, shmget, key_t, size_t, int)