mmap.c 430 B

1234567891011121314151617
  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. /* libc_hidden_proto(mmap) */
  12. _syscall6 (__ptr_t, mmap, __ptr_t, addr, size_t, len, int, prot,
  13. int, flags, int, fd, __off_t, offset)
  14. libc_hidden_def(mmap)