diff options
author | Eric Andersen | 2000-07-08 19:20:49 +0000 |
---|---|---|
committer | Eric Andersen | 2000-07-08 19:20:49 +0000 |
commit | a57ba4db64d5b2e8d9f7e9ab15ac32d1c1abdea5 (patch) | |
tree | c3b20d70c757a11aaffbb6a0c056044c9ebf68f1 /utility.c | |
parent | 2cd439f7f075c4b6b6c32412a8e1311d589202e3 (diff) | |
download | busybox-a57ba4db64d5b2e8d9f7e9ab15ac32d1c1abdea5.zip busybox-a57ba4db64d5b2e8d9f7e9ab15ac32d1c1abdea5.tar.gz |
Argh. More cross libc cleanup. Should be ok now...
-Erik
Diffstat (limited to 'utility.c')
-rw-r--r-- | utility.c | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -80,7 +80,6 @@ const char mtab_file[] = "/dev/mtab"; # endif #endif - extern void usage(const char *usage) { fprintf(stderr, "BusyBox v%s (%s) multi-call binary -- GPL2\n\n", @@ -139,6 +138,22 @@ extern int get_kernel_revision(void) _syscall1(int, sysinfo, struct sysinfo *, info); #endif /* BB_INIT */ +#if defined BB_MOUNT || defined BB_UMOUNT +#include <sys/syscall.h> +#include <linux/unistd.h> + +#ifndef __NR_umount2 +#define __NR_umount2 52 +#endif + +/* Include our own version of <sys/mount.h>, since libc5 doesn't + * know about umount2 */ +extern _syscall1(int, umount, const char *, special_file); +extern _syscall2(int, umount2, const char *, special_file, int, flags); +extern _syscall5(int, mount, const char *, special_file, const char *, dir, + const char *, fstype, unsigned long int, rwflag, const void *, data); +#endif + #if defined (BB_CP_MV) || defined (BB_DU) |