From 22d26fc6ae2af584482deaf92f25bb6a7261ad78 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 15 Jun 2006 15:49:36 +0000 Subject: Patch from Yann Morin to put BLKGETSIZE64 in platform.h had rather a lot of fallout due to the #include . Removed that #include from various applets and fixed up those that were unhappy when that #include was made because they'd block copied stuff out of it. (Sigh.) --- util-linux/fdisk.c | 5 ----- util-linux/mount.c | 8 ++------ util-linux/nfsmount.c | 20 +------------------- util-linux/swaponoff.c | 5 +---- util-linux/switch_root.c | 7 +------ util-linux/umount.c | 6 +----- 6 files changed, 6 insertions(+), 45 deletions(-) (limited to 'util-linux') diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index 5ef5acb..cd82526 100644 --- a/util-linux/fdisk.c +++ b/util-linux/fdisk.c @@ -43,11 +43,6 @@ #define DKTYPENAMES -#define BLKRRPART _IO(0x12,95) /* re-read partition table */ -#define BLKGETSIZE _IO(0x12,96) /* return device size */ -#define BLKFLSBUF _IO(0x12,97) /* flush buffer cache */ -#define BLKSSZGET _IO(0x12,104) /* get block device sector size */ - /* fdisk.h */ diff --git a/util-linux/mount.c b/util-linux/mount.c index e1c1c60..9225289 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -13,7 +13,7 @@ * bb_getopt_ulflags(); */ -/* Design notes: There is no spec for this. Remind me to write one. +/* Design notes: There is no spec for mount. Remind me to write one. mount_main() calls singlemount() which calls mount_it_now(). @@ -22,18 +22,14 @@ mount_it_now() does the actual mount. */ -#include -#include +#include "busybox.h" #include #include #include -#include #include #include -#include #include // for CONFIG_FEATURE_MOUNT_LOOP #include // for CONFIG_FEATURE_MOUNT_LOOP -#include "busybox.h" // These two aren't always defined in old headers #ifndef MS_BIND diff --git a/util-linux/nfsmount.c b/util-linux/nfsmount.c index 619add4..d46cf69 100644 --- a/util-linux/nfsmount.c +++ b/util-linux/nfsmount.c @@ -33,18 +33,12 @@ * nfsmount.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp */ +#include "busybox.h" #include -#include #include #include -#include -#include #include #include -#include -#include -#include -#include "busybox.h" #undef TRUE #undef FALSE #include @@ -121,19 +115,7 @@ enum { # define textdomain(Domain) /* empty */ enum { - MS_MGC_VAL = 0xc0ed0000, /* Magic number indicatng "new" flags */ - MS_RDONLY = 1, /* Mount read-only */ - MS_NOSUID = 2, /* Ignore suid and sgid bits */ - MS_NODEV = 4, /* Disallow access to device special files */ - MS_NOEXEC = 8, /* Disallow program execution */ - MS_SYNCHRONOUS = 16, /* Writes are synced at once */ - MS_REMOUNT = 32, /* Alter flags of a mounted FS */ - MS_MANDLOCK = 64, /* Allow mandatory locks on an FS */ S_QUOTA = 128, /* Quota initialized for file/directory/symlink */ - S_APPEND = 256, /* Append-only file */ - S_IMMUTABLE = 512, /* Immutable file */ - MS_NOATIME = 1024, /* Do not update access times. */ - MS_NODIRATIME = 2048 /* Do not update directory access times */ }; diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c index 473325d..9bb70a1 100644 --- a/util-linux/swaponoff.c +++ b/util-linux/swaponoff.c @@ -7,16 +7,13 @@ * Licensed under the GPL v2, see the file LICENSE in this tarball. */ -#include +#include "busybox.h" #include #include #include #include -#include -#include #include -#include "busybox.h" static int swap_enable_disable(const char *device) { diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c index 9815a6d..8e564f0 100644 --- a/util-linux/switch_root.c +++ b/util-linux/switch_root.c @@ -6,17 +6,12 @@ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ -#include +#include "busybox.h" #include -#include #include -#include -#include -#include #include #include -#include "busybox.h" // Make up for header deficiencies. diff --git a/util-linux/umount.c b/util-linux/umount.c index 7efb636..b5696f7 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c @@ -11,15 +11,11 @@ * */ -#include -#include +#include "busybox.h" #include #include #include -#include -#include #include -#include "busybox.h" #define OPTION_STRING "flDnrvad" #define OPT_FORCE 1 -- cgit v1.1