Skip to content

Commit 0bad3e6

Browse files
committed
auto merge of #7395 : yichoi/rust/android_dummy, r=brson
add android dummy functions which does not exist in boinic. after #7257, some mman related functions are needed for android.
2 parents a28f9ba + 6a77273 commit 0bad3e6

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)