umount.c 533 B

12345678910111213141516171819202122
  1. /*
  2. * umount() 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. #include <sys/mount.h>
  10. #ifdef __NR_umount
  11. _syscall1(int, umount, const char *, specialfile)
  12. #elif defined __NR_umount2
  13. # ifndef __UCLIBC_LINUX_SPECIFIC__
  14. static __always_inline _syscall2(int, umount2, const char *, special_file, int, flags)
  15. # endif
  16. int umount(const char *special_file)
  17. {
  18. return umount2(special_file, 0);
  19. }
  20. #endif