aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/options/posix/generic/sys-shm.cpp
blob: 3af7e905700c2194f22c07eb47f08567b0f9ee1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <sys/shm.h>

#include <bits/ensure.h>
#include <mlibc/debug.hpp>

void *shmat(int, const void *, int) {
	__ensure(!"Function is not implemented");
	__builtin_unreachable();
}

int shmctl(int, int, struct shmid_ds *) {
	__ensure(!"Function is not implemented");
	__builtin_unreachable();
}

int shmdt(const void *) {
	__ensure(!"Function is not implemented");
	__builtin_unreachable();
}

int shmget(key_t, size_t, int) {
	mlibc::infoLogger() << "mlibc: shmget() is a no-op!" << frg::endlog;
	return -1;
}