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.
This commit is contained in:
bors 2013-06-27 03:07:31 -07:00
commit 0bad3e62b4

View file

@ -83,4 +83,29 @@ extern "C" int pthread_atfork(void (*prefork)(void),
return 0;
}
extern "C" int mlockall(int flags)
{
return 0;
}
extern "C" int munlockall(void)
{
return 0;
}
extern "C" int shm_open(const char *name, int oflag, mode_t mode)
{
return 0;
}
extern "C" int shm_unlink(const char *name)
{
return 0;
}
extern "C" int posix_madvise(void *addr, size_t len, int advice)
{
return 0;
}
#endif