Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add android dummy functions for mman related #7395

Merged
merged 1 commit into from
Jun 27, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/rt/rust_android_dummy.cpp
Original file line number Diff line number Diff line change
@@ -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