blob: be96451ef3f6d2e13b403af44687c787019cc7bf [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001/* Use new style mmap for mips */
2/*
3 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
4 *
5 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
6 */
7
8#include <unistd.h>
9#include <errno.h>
10#include <sys/mman.h>
11#include <sys/syscall.h>
12
13
14#if 0
15/* For now, leave mmap using mmap1 since mmap2 seems
16 * to have issues (i.e. it doesn't work 100% properly).
17 */
18#ifdef __NR_mmap2
19# undef __NR_mmap
20# define __NR_mmap __NR_mmap2
21#endif
22#endif
23
24_syscall6 (__ptr_t, mmap, __ptr_t, addr, size_t, len, int, prot,
25 int, flags, int, fd, __off_t, offset)
26libc_hidden_def(mmap)