mmap.c 530 B

12345678910111213141516171819
  1. /* vi: set sw=4 ts=4: */
  2. /*
  3. * mmap() for uClibc/x86_64
  4. *
  5. * Copyright (C) 2005 by Erik Andersen <andersen@codepoet.org>
  6. * Copyright (C) 2005 by Mike Frysinger <vapier@gentoo.org>
  7. *
  8. * GNU Library General Public License (LGPL) version 2 or later.
  9. */
  10. #include <errno.h>
  11. #include <unistd.h>
  12. #include <sys/mman.h>
  13. #include <sys/syscall.h>
  14. #define __NR___mmap __NR_mmap
  15. attribute_hidden _syscall6(void *, __mmap, void *, start, size_t, length, int, prot,
  16. int, flags, int, fd, off_t, offset);
  17. strong_alias(__mmap,mmap)