Chromium Code Reviews| Index: fusl/src/mman/madvise.c |
| diff --git a/fusl/src/mman/madvise.c b/fusl/src/mman/madvise.c |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f80926bec487584edb2cade5b6cdc8009df61e07 |
| --- /dev/null |
| +++ b/fusl/src/mman/madvise.c |
| @@ -0,0 +1,10 @@ |
| +#include <sys/mman.h> |
| +#include "syscall.h" |
| +#include "libc.h" |
| + |
| +int __madvise(void *addr, size_t len, int advice) |
| +{ |
| + return syscall(SYS_madvise, addr, len, advice); |
| +} |
| + |
| +weak_alias(__madvise, madvise); |