summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: baf792b)
raw | patch | inline | side by side (parent: baf792b)
author | Yabin Cui <yabinc@google.com> | |
Wed, 3 Dec 2014 19:11:50 +0000 (11:11 -0800) | ||
committer | Yabin Cui <yabinc@google.com> | |
Wed, 3 Dec 2014 19:11:50 +0000 (11:11 -0800) |
Make madvise prototype the same as linux man page.
Bug: 18539500
Change-Id: If3fd0e1d9539b9e10531ab9087bc4040e32b6e9b
Bug: 18539500
Change-Id: If3fd0e1d9539b9e10531ab9087bc4040e32b6e9b
libc/SYSCALLS.TXT | patch | blob | history | |
libc/include/sys/mman.h | patch | blob | history |
diff --git a/libc/SYSCALLS.TXT b/libc/SYSCALLS.TXT
index 39ff37de0e387a64ce4a948961689f5a5e912e48..d9ede2f8ea6b5d70c5abb8c3d0df75f28d800c17 100644 (file)
--- a/libc/SYSCALLS.TXT
+++ b/libc/SYSCALLS.TXT
void* mremap(void*, size_t, size_t, unsigned long) all
int msync(const void*, size_t, int) all
int mprotect(const void*, size_t, int) all
-int madvise(const void*, size_t, int) all
+int madvise(void*, size_t, int) all
int mlock(const void* addr, size_t len) all
int munlock(const void* addr, size_t len) all
int mlockall(int flags) all
index 5a8c9858fe5b4a7846f776ae92cbfd947d60ac65..09bf0d9143f86ae2a9092f6adfee845a26a5a5fa 100644 (file)
--- a/libc/include/sys/mman.h
+++ b/libc/include/sys/mman.h
extern int munlockall(void);
extern int mlock(const void*, size_t);
extern int munlock(const void*, size_t);
-extern int madvise(const void*, size_t, int);
+extern int madvise(void*, size_t, int);
extern int mlock(const void*, size_t);
extern int munlock(const void*, size_t);