Skip to content

Commit

Permalink
rt: add android dummy functions for mman related
Browse files Browse the repository at this point in the history
  • Loading branch information
yichoi committed Jun 26, 2013
1 parent efd1438 commit 6a77273
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/rt/rust_android_dummy.cpp
Original file line number Diff line number Diff line change
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

5 comments on commit 6a77273

@bors
Copy link
Contributor

@bors bors commented on 6a77273 Jun 27, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 6a77273 Jun 27, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging yichoi/rust/android_dummy = 6a77273 into auto

@bors
Copy link
Contributor

@bors bors commented on 6a77273 Jun 27, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yichoi/rust/android_dummy = 6a77273 merged ok, testing candidate = 0bad3e6

@bors
Copy link
Contributor

@bors bors commented on 6a77273 Jun 27, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 0bad3e6

Please sign in to comment.