OSDN Git Service

Remove duplicate declaration of mlock, munlock.
authorJosh Gao <jmgao@google.com>
Thu, 7 Apr 2016 17:59:45 +0000 (10:59 -0700)
committerJosh Gao <jmgao@google.com>
Thu, 7 Apr 2016 17:59:45 +0000 (10:59 -0700)
Bug: http://b/28067717
Change-Id: I4fe5a4368e5112a5d6aed5de9549155d3352962a

libc/include/sys/mman.h

index a19ceb5..170300a 100644 (file)
@@ -65,13 +65,10 @@ 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(void*, size_t, int);
-
-extern int mlock(const void*, size_t);
-extern int munlock(const void*, size_t);
 
 extern int mincore(void*, size_t, unsigned char*);
 
+extern int madvise(void*, size_t, int);
 extern int posix_madvise(void*, size_t, int);
 
 __END_DECLS