summaryrefslogtreecommitdiff
path: root/e2fsprogs
diff options
context:
space:
mode:
authorDenis Vlasenko2006-10-07 16:24:46 +0000
committerDenis Vlasenko2006-10-07 16:24:46 +0000
commit5625415085e68ac5e150f54e685417c866620d76 (patch)
tree4146667d4080f97bc39ac96d844c01a8956aeeca /e2fsprogs
parent890ac9deb2cc57cadd7aba4ee91bd012e19e239d (diff)
downloadbusybox-5625415085e68ac5e150f54e685417c866620d76.zip
busybox-5625415085e68ac5e150f54e685417c866620d76.tar.gz
dd: make it recognize not only 'k' but 'K' too;
make it (partially) CONFIG_LFS-aware
Diffstat (limited to 'e2fsprogs')
-rw-r--r--e2fsprogs/chattr.c8
-rw-r--r--e2fsprogs/lsattr.c8
-rw-r--r--e2fsprogs/util.c9
3 files changed, 2 insertions, 23 deletions
diff --git a/e2fsprogs/chattr.c b/e2fsprogs/chattr.c
index 2cb75e8..618d8c4 100644
--- a/e2fsprogs/chattr.c
+++ b/e2fsprogs/chattr.c
@@ -53,14 +53,6 @@ static unsigned long af;
static unsigned long rf;
static unsigned long sf;
-#ifdef CONFIG_LFS
-# define LSTAT lstat64
-# define STRUCT_STAT struct stat64
-#else
-# define LSTAT lstat
-# define STRUCT_STAT struct stat
-#endif
-
struct flags_char {
unsigned long flag;
char optchar;
diff --git a/e2fsprogs/lsattr.c b/e2fsprogs/lsattr.c
index e76f8d9..1b7cf44 100644
--- a/e2fsprogs/lsattr.c
+++ b/e2fsprogs/lsattr.c
@@ -41,14 +41,6 @@
#define OPT_GENERATION 16
static int flags;
-#ifdef CONFIG_LFS
-# define LSTAT lstat64
-# define STRUCT_STAT struct stat64
-#else
-# define LSTAT lstat
-# define STRUCT_STAT struct stat
-#endif
-
static void list_attributes(const char *name)
{
unsigned long fsflags;
diff --git a/e2fsprogs/util.c b/e2fsprogs/util.c
index efb128f..aaee50a 100644
--- a/e2fsprogs/util.c
+++ b/e2fsprogs/util.c
@@ -33,13 +33,8 @@ void proceed_question(void)
void check_plausibility(const char *device, int force)
{
int val;
-#ifdef CONFIG_LFS
- struct stat64 s;
- val = stat64(device, &s);
-#else
- struct stat s;
- val = stat(device, &s);
-#endif
+ STRUCT_STAT s;
+ val = STAT(device, &s);
if (force)
return;
if(val == -1)