mmap.c 1.2 KB

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