diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-08 19:20:49 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-08 19:20:49 +0000 |
commit | 925b8db05e0746c85666740a5d5b1f4e5b389a50 (patch) | |
tree | c3b20d70c757a11aaffbb6a0c056044c9ebf68f1 /umount.c | |
parent | 38ec704f49181af363e34c1f7c99ea77a41a4199 (diff) | |
download | busybox-w32-925b8db05e0746c85666740a5d5b1f4e5b389a50.tar.gz busybox-w32-925b8db05e0746c85666740a5d5b1f4e5b389a50.tar.bz2 busybox-w32-925b8db05e0746c85666740a5d5b1f4e5b389a50.zip |
Argh. More cross libc cleanup. Should be ok now...
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@781 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'umount.c')
-rw-r--r-- | umount.c | 23 |
1 files changed, 5 insertions, 18 deletions
@@ -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 | ||