yuezonghe | 824eb0c | 2024-06-27 02:32:26 -0700 | [diff] [blame^] | 1 | /* Copyright (C) 2001 Hewlett-Packard |
| 2 | |
| 3 | This program is free software; you can redistribute it and/or modify it under |
| 4 | the terms of the GNU Library General Public License as published by the Free |
| 5 | Software Foundation; either version 2 of the License, or (at your option) any |
| 6 | later version. |
| 7 | |
| 8 | This program is distributed in the hope that it will be useful, but WITHOUT |
| 9 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 10 | FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more |
| 11 | details. |
| 12 | |
| 13 | You should have received a copy of the GNU Library General Public License |
| 14 | along with this program; if not, write to the Free Software Foundation, Inc., |
| 15 | 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 16 | |
| 17 | Derived in part from the Linux-8086 C library, the GNU C Library, and several |
| 18 | other sundry sources. Files within this library are copyright by their |
| 19 | respective copyright holders. |
| 20 | */ |
| 21 | |
| 22 | #include <unistd.h> |
| 23 | #include <errno.h> |
| 24 | #include <sys/mman.h> |
| 25 | |
| 26 | |
| 27 | #ifdef HIOS |
| 28 | # define __SH_SYSCALL6_TRAPA 0x2E |
| 29 | #endif |
| 30 | |
| 31 | #include <sys/syscall.h> |
| 32 | |
| 33 | _syscall6(__ptr_t, mmap, __ptr_t, addr, size_t, len, int, prot, int, flags, int, fd, __off_t, offset) |
| 34 | libc_hidden_def(mmap) |