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 /utility.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 '')
-rw-r--r-- | utility.c | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -80,7 +80,6 @@ const char mtab_file[] = "/dev/mtab"; | |||
80 | # endif | 80 | # endif |
81 | #endif | 81 | #endif |
82 | 82 | ||
83 | |||
84 | extern void usage(const char *usage) | 83 | extern void usage(const char *usage) |
85 | { | 84 | { |
86 | fprintf(stderr, "BusyBox v%s (%s) multi-call binary -- GPL2\n\n", | 85 | fprintf(stderr, "BusyBox v%s (%s) multi-call binary -- GPL2\n\n", |
@@ -139,6 +138,22 @@ extern int get_kernel_revision(void) | |||
139 | _syscall1(int, sysinfo, struct sysinfo *, info); | 138 | _syscall1(int, sysinfo, struct sysinfo *, info); |
140 | #endif /* BB_INIT */ | 139 | #endif /* BB_INIT */ |
141 | 140 | ||
141 | #if defined BB_MOUNT || defined BB_UMOUNT | ||
142 | #include <sys/syscall.h> | ||
143 | #include <linux/unistd.h> | ||
144 | |||
145 | #ifndef __NR_umount2 | ||
146 | #define __NR_umount2 52 | ||
147 | #endif | ||
148 | |||
149 | /* Include our own version of <sys/mount.h>, since libc5 doesn't | ||
150 | * know about umount2 */ | ||
151 | extern _syscall1(int, umount, const char *, special_file); | ||
152 | extern _syscall2(int, umount2, const char *, special_file, int, flags); | ||
153 | extern _syscall5(int, mount, const char *, special_file, const char *, dir, | ||
154 | const char *, fstype, unsigned long int, rwflag, const void *, data); | ||
155 | #endif | ||
156 | |||
142 | 157 | ||
143 | 158 | ||
144 | #if defined (BB_CP_MV) || defined (BB_DU) | 159 | #if defined (BB_CP_MV) || defined (BB_DU) |