1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00
* sysdeps/unix/sysv/linux/powerpc/mmap64.c: Correct prototype for
	__syscall_mmap2.
This commit is contained in:
Ulrich Drepper
2000-02-17 00:33:09 +00:00
parent de4bd08445
commit f065a05b69
2 changed files with 5 additions and 2 deletions

View File

@@ -30,7 +30,7 @@
#include "kernel-features.h"
#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);
#ifndef __ASSUME_MMAP2_SYSCALL
static int have_no_mmap2;
#endif
@@ -51,7 +51,7 @@ __mmap64 (__ptr_t addr, size_t len, int prot, int flags, int fd, off64_t offset)
#endif
/* This will be always 12, no matter what page size is. */
__ptr_t result = INLINE_SYSCALL (mmap2, 6, addr, len, prot, flags,
fd, (off_t) (offset >> PAGE_SHIFT));
fd, (off_t) (offset >> PAGE_SHIFT));
#ifndef __ASSUME_MMAP2_SYSCALL
if (result != (__ptr_t) -1 || errno != ENOSYS)