Skip to content

Commit

Permalink
auto merge of #7395 : yichoi/rust/android_dummy, r=brson
Browse files Browse the repository at this point in the history
add android dummy functions which does not exist in boinic.

after #7257, some mman related functions are needed for android.
  • Loading branch information
bors committed Jun 27, 2013
2 parents a28f9ba + 6a77273 commit 0bad3e6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/rt/rust_android_dummy.cpp
Expand Up @@ -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

0 comments on commit 0bad3e6

Please sign in to comment.