blob: 74145062c23528e685355e0d31fa0e0de41b9a04 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 | /*
 * umount() for uClibc
 *
 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
 *
 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 */
#include <sys/syscall.h>
#include <sys/mount.h>
#ifdef __NR_umount
_syscall1(int, umount, const char *, specialfile)
#elif defined __NR_umount2
# ifndef  __UCLIBC_LINUX_SPECIFIC__
static __always_inline _syscall2(int, umount2, const char *, special_file, int, flags)
# endif
int umount(const char *special_file)
{
	return umount2(special_file, 0);
}
#endif
 |