mincore.c 477 B

123456789101112131415
  1. /*
  2. * This file provides the mincore() system call to uClibc.
  3. * Copyright (C) 20041215 - <solar@gentoo.org>
  4. * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  5. *
  6. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. */
  8. #include <sys/syscall.h>
  9. #if defined __NR_mincore && (defined __USE_BSD || defined __USE_SVID)
  10. #include <unistd.h>
  11. #include <sys/mman.h>
  12. _syscall3(int, mincore, void *, start, size_t, length, unsigned char *, vec)
  13. #endif