Skip to content

Commit 6a77273

Browse files
committed
rt: add android dummy functions for mman related
1 parent efd1438 commit 6a77273

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/rt/rust_android_dummy.cpp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,29 @@ extern "C" int pthread_atfork(void (*prefork)(void),
8383
return 0;
8484
}
8585

86+
extern "C" int mlockall(int flags)
87+
{
88+
return 0;
89+
}
90+
91+
extern "C" int munlockall(void)
92+
{
93+
return 0;
94+
}
95+
96+
extern "C" int shm_open(const char *name, int oflag, mode_t mode)
97+
{
98+
return 0;
99+
}
100+
101+
extern "C" int shm_unlink(const char *name)
102+
{
103+
return 0;
104+
}
105+
106+
extern "C" int posix_madvise(void *addr, size_t len, int advice)
107+
{
108+
return 0;
109+
}
110+
86111
#endif

0 commit comments

Comments
 (0)