mmap.c 400 B

12345678910111213141516
  1. /* Use new style mmap for v850 */
  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. #include <unistd.h>
  8. #include <errno.h>
  9. #include <sys/mman.h>
  10. #include <sys/syscall.h>
  11. _syscall6 (__ptr_t, mmap, __ptr_t, addr, size_t, len, int, prot,
  12. int, flags, int, fd, __off_t, offset)
  13. libc_hidden_def(mmap)