yuezonghe | 824eb0c | 2024-06-27 02:32:26 -0700 | [diff] [blame^] | 1 | /* vi: set sw=4 ts=4: */ |
| 2 | /* |
| 3 | * mmap() for uClibc/x86_64 |
| 4 | * |
| 5 | * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> |
| 6 | * Copyright (C) 2005 by Mike Frysinger <vapier@gentoo.org> |
| 7 | * |
| 8 | * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. |
| 9 | */ |
| 10 | |
| 11 | #include <errno.h> |
| 12 | #include <unistd.h> |
| 13 | #include <sys/mman.h> |
| 14 | #include <sys/syscall.h> |
| 15 | |
| 16 | |
| 17 | _syscall6(void *, mmap, void *, start, size_t, length, int, prot, |
| 18 | int, flags, int, fd, off_t, offset) |
| 19 | libc_hidden_def(mmap) |