umount2.c 572 B

1234567891011121314151617181920
  1. /*
  2. * umount2() for uClibc
  3. *
  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 __UCLIBC_LINUX_SPECIFIC__ && defined __NR_umount2
  10. #include <sys/mount.h>
  11. _syscall2(int, umount2, const char *, special_file, int, flags)
  12. libc_hidden_def(umount2)
  13. #endif
  14. #if defined __UCLIBC_LINUX_SPECIFIC__ && defined __NR_oldumount && !defined __NR_umount2
  15. _syscall2(int, umount, const char *, special_file, int, flags)
  16. strong_alias(umount,umount2)
  17. #endif