diff options
author | Yabin Cui <yabinc@google.com> | 2014-12-03 11:11:50 -0800 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2014-12-03 11:11:50 -0800 |
commit | efbb6fb3f7506b48dbb406e3b9a2fc9e865807c6 (patch) | |
tree | 0e49334b36726033595725877d1d2c5d7293529e /libc | |
parent | baf792bff86f9be6f631eece17d9d104cfe54b41 (diff) | |
download | bionic-efbb6fb3f7506b48dbb406e3b9a2fc9e865807c6.zip bionic-efbb6fb3f7506b48dbb406e3b9a2fc9e865807c6.tar.gz bionic-efbb6fb3f7506b48dbb406e3b9a2fc9e865807c6.tar.bz2 |
change argument type in madvise
Make madvise prototype the same as linux man page.
Bug: 18539500
Change-Id: If3fd0e1d9539b9e10531ab9087bc4040e32b6e9b
Diffstat (limited to 'libc')
-rw-r--r-- | libc/SYSCALLS.TXT | 2 | ||||
-rw-r--r-- | libc/include/sys/mman.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libc/SYSCALLS.TXT b/libc/SYSCALLS.TXT index 39ff37d..d9ede2f 100644 --- a/libc/SYSCALLS.TXT +++ b/libc/SYSCALLS.TXT @@ -101,7 +101,7 @@ int munmap(void*, size_t) all 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 diff --git a/libc/include/sys/mman.h b/libc/include/sys/mman.h index 5a8c985..09bf0d9 100644 --- a/libc/include/sys/mman.h +++ b/libc/include/sys/mman.h @@ -54,7 +54,7 @@ extern int mlockall(int); 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); |