mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 22:50:07 +00:00
Correct prototype for __syscall_mmap2.
This commit is contained in:
parent
cf45788d54
commit
04e49c1bdb
@ -28,7 +28,7 @@
|
|||||||
#include <asm/page.h>
|
#include <asm/page.h>
|
||||||
|
|
||||||
#ifdef __NR_mmap2
|
#ifdef __NR_mmap2
|
||||||
extern int __syscall_mmap2(__ptr_t, size_t, int, int, int, off_t);
|
extern __ptr_t __syscall_mmap2 (__ptr_t, size_t, int, int, int, off_t);
|
||||||
static int have_no_mmap2;
|
static int have_no_mmap2;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ __mmap64 (__ptr_t addr, size_t len, int prot, int flags, int fd, off64_t offset)
|
|||||||
|
|
||||||
/* This will be always 12, no matter what page size is. */
|
/* This will be always 12, no matter what page size is. */
|
||||||
__ptr_t result = INLINE_SYSCALL (mmap2, 6, addr, len, prot, flags,
|
__ptr_t result = INLINE_SYSCALL (mmap2, 6, addr, len, prot, flags,
|
||||||
fd, (off_t) (offset >> PAGE_SHIFT));
|
fd, (off_t) (offset >> PAGE_SHIFT));
|
||||||
|
|
||||||
if (result != (__ptr_t) -1 || errno != ENOSYS)
|
if (result != (__ptr_t) -1 || errno != ENOSYS)
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user