diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-12 20:58:27 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-12 20:58:27 +0000 |
commit | 6ca409e0e4c198fe3081346eebbae3f068fe605a (patch) | |
tree | 060cb05d99220a1eda399194d1209c269f0e8cd8 /coreutils/stat.c | |
parent | 4185548984357df91311f30c8e43d95f33922576 (diff) | |
download | busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.gz busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.bz2 busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.zip |
trylink: produce even more info about final link stage
trylink: explain how to modify link and drastically decrease amount
of padding (unfortunately, needs hand editing ATM).
*: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts
size saving: 0.5k
Diffstat (limited to 'coreutils/stat.c')
-rw-r--r-- | coreutils/stat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/stat.c b/coreutils/stat.c index 7c72127c5..0fddea2bb 100644 --- a/coreutils/stat.c +++ b/coreutils/stat.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #define OPT_DEREFERENCE (1<<2) | 21 | #define OPT_DEREFERENCE (1<<2) |
22 | #define OPT_SELINUX (1<<3) | 22 | #define OPT_SELINUX (1<<3) |
23 | 23 | ||
24 | static char buf[sizeof("YYYY-MM-DD HH:MM:SS.000000000")]; | 24 | static char buf[sizeof("YYYY-MM-DD HH:MM:SS.000000000")] ALIGN1; |
25 | 25 | ||
26 | static char const * file_type(struct stat const *st) | 26 | static char const * file_type(struct stat const *st) |
27 | { | 27 | { |
@@ -70,7 +70,7 @@ static char const *human_fstype(long f_type) | |||
70 | int i; | 70 | int i; |
71 | static const struct types { | 71 | static const struct types { |
72 | long type; | 72 | long type; |
73 | const char * const fs; | 73 | const char *const fs; |
74 | } humantypes[] = { | 74 | } humantypes[] = { |
75 | { 0xADFF, "affs" }, | 75 | { 0xADFF, "affs" }, |
76 | { 0x1Cd1, "devpts" }, | 76 | { 0x1Cd1, "devpts" }, |
@@ -118,7 +118,7 @@ static char const *human_fstype(long f_type) | |||
118 | #if ENABLE_FEATURE_STAT_FORMAT | 118 | #if ENABLE_FEATURE_STAT_FORMAT |
119 | /* print statfs info */ | 119 | /* print statfs info */ |
120 | static void print_statfs(char *pformat, const size_t buf_len, const char m, | 120 | static void print_statfs(char *pformat, const size_t buf_len, const char m, |
121 | const char * const filename, void const *data | 121 | const char *const filename, void const *data |
122 | USE_SELINUX(, security_context_t scontext)) | 122 | USE_SELINUX(, security_context_t scontext)) |
123 | { | 123 | { |
124 | struct statfs const *statfsbuf = data; | 124 | struct statfs const *statfsbuf = data; |
@@ -168,7 +168,7 @@ static void print_statfs(char *pformat, const size_t buf_len, const char m, | |||
168 | 168 | ||
169 | /* print stat info */ | 169 | /* print stat info */ |
170 | static void print_stat(char *pformat, const size_t buf_len, const char m, | 170 | static void print_stat(char *pformat, const size_t buf_len, const char m, |
171 | const char * const filename, void const *data | 171 | const char *const filename, void const *data |
172 | USE_SELINUX(, security_context_t scontext)) | 172 | USE_SELINUX(, security_context_t scontext)) |
173 | { | 173 | { |
174 | #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) | 174 | #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) |