diff options
Diffstat (limited to 'util-linux/umount.c')
-rw-r--r-- | util-linux/umount.c | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/util-linux/umount.c b/util-linux/umount.c index 4f6edc2e5..fc9b466c6 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c | |||
@@ -26,31 +26,18 @@ | |||
26 | #include <stdio.h> | 26 | #include <stdio.h> |
27 | #include <mntent.h> | 27 | #include <mntent.h> |
28 | #include <errno.h> | 28 | #include <errno.h> |
29 | #include <linux/unistd.h> | ||
30 | 29 | ||
31 | 30 | ||
32 | #ifndef MNT_FORCE | ||
33 | #define MNT_FORCE 1 | 31 | #define MNT_FORCE 1 |
34 | #endif | ||
35 | #ifndef MS_MGC_VAL | ||
36 | #define MS_MGC_VAL 0xc0ed0000 /* Magic number indicatng "new" flags */ | 32 | #define MS_MGC_VAL 0xc0ed0000 /* Magic number indicatng "new" flags */ |
37 | #endif | ||
38 | #ifndef MS_REMOUNT | ||
39 | #define MS_REMOUNT 32 /* Alter flags of a mounted FS. */ | 33 | #define MS_REMOUNT 32 /* Alter flags of a mounted FS. */ |
40 | #endif | ||
41 | #ifndef MS_RDONLY | ||
42 | #define MS_RDONLY 1 /* Mount read-only. */ | 34 | #define MS_RDONLY 1 /* Mount read-only. */ |
43 | #endif | ||
44 | #ifndef __NR_umount2 | ||
45 | #define __NR_umount2 52 | ||
46 | #endif | ||
47 | 35 | ||
48 | /* Include our own version of <sys/mount.h>, since libc5 doesn't | 36 | extern int mount (__const char *__special_file, __const char *__dir, |
49 | * know about umount2 */ | 37 | __const char *__fstype, unsigned long int __rwflag, |
50 | static _syscall1(int, umount, const char *, special_file); | 38 | __const void *__data); |
51 | static _syscall2(int, umount2, const char *, special_file, int, flags); | 39 | extern int umount (__const char *__special_file); |
52 | static _syscall5(int, mount, const char *, special_file, const char *, dir, | 40 | extern int umount2 (__const char *__special_file, int __flags); |
53 | const char *, fstype, unsigned long int, rwflag, const void *, data); | ||
54 | 41 | ||
55 | 42 | ||
56 | 43 | ||