aboutsummaryrefslogtreecommitdiff
path: root/umount.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-08 19:20:49 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-08 19:20:49 +0000
commit925b8db05e0746c85666740a5d5b1f4e5b389a50 (patch)
treec3b20d70c757a11aaffbb6a0c056044c9ebf68f1 /umount.c
parent38ec704f49181af363e34c1f7c99ea77a41a4199 (diff)
downloadbusybox-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.c23
1 files changed, 5 insertions, 18 deletions
diff --git a/umount.c b/umount.c
index 4f6edc2e5..fc9b466c6 100644
--- a/umount.c
+++ b/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 36extern int mount (__const char *__special_file, __const char *__dir,
49 * know about umount2 */ 37 __const char *__fstype, unsigned long int __rwflag,
50static _syscall1(int, umount, const char *, special_file); 38 __const void *__data);
51static _syscall2(int, umount2, const char *, special_file, int, flags); 39extern int umount (__const char *__special_file);
52static _syscall5(int, mount, const char *, special_file, const char *, dir, 40extern 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