diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-27 10:20:47 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-27 10:20:47 +0000 |
commit | 4daad9004d8f07991516970a1cbd77756fae7041 (patch) | |
tree | f1a17e4b168ef8fdf8af92ac5ce8deba89d38db2 /coreutils/stat.c | |
parent | 1acdc89e992eb3f0548ff48ba586b31c9a0ae232 (diff) | |
download | busybox-w32-4daad9004d8f07991516970a1cbd77756fae7041.tar.gz busybox-w32-4daad9004d8f07991516970a1cbd77756fae7041.tar.bz2 busybox-w32-4daad9004d8f07991516970a1cbd77756fae7041.zip |
introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).
Diffstat (limited to 'coreutils/stat.c')
-rw-r--r-- | coreutils/stat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/stat.c b/coreutils/stat.c index 18e8e076c..a0424d936 100644 --- a/coreutils/stat.c +++ b/coreutils/stat.c | |||
@@ -321,7 +321,7 @@ static void print_it(char const *masterformat, char const *filename, | |||
321 | b = NULL; | 321 | b = NULL; |
322 | /* fall through */ | 322 | /* fall through */ |
323 | case '%': | 323 | case '%': |
324 | putchar('%'); | 324 | bb_putchar('%'); |
325 | break; | 325 | break; |
326 | default: | 326 | default: |
327 | print_func(dest, n_alloc, *p, filename, data USE_SELINUX(,scontext)); | 327 | print_func(dest, n_alloc, *p, filename, data USE_SELINUX(,scontext)); |
@@ -552,7 +552,7 @@ static bool do_stat(char const *filename, char const *format) | |||
552 | if (option_mask32 & OPT_SELINUX) | 552 | if (option_mask32 & OPT_SELINUX) |
553 | printf(" %lc\n", *scontext); | 553 | printf(" %lc\n", *scontext); |
554 | else | 554 | else |
555 | putchar('\n'); | 555 | bb_putchar('\n'); |
556 | #endif | 556 | #endif |
557 | } else { | 557 | } else { |
558 | char *linkname = NULL; | 558 | char *linkname = NULL; |
@@ -586,7 +586,7 @@ static bool do_stat(char const *filename, char const *format) | |||
586 | (unsigned long) major(statbuf.st_rdev), | 586 | (unsigned long) major(statbuf.st_rdev), |
587 | (unsigned long) minor(statbuf.st_rdev)); | 587 | (unsigned long) minor(statbuf.st_rdev)); |
588 | else | 588 | else |
589 | putchar('\n'); | 589 | bb_putchar('\n'); |
590 | printf("Access: (%04lo/%10.10s) Uid: (%5lu/%8s) Gid: (%5lu/%8s)\n", | 590 | printf("Access: (%04lo/%10.10s) Uid: (%5lu/%8s) Gid: (%5lu/%8s)\n", |
591 | (unsigned long) (statbuf.st_mode & (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)), | 591 | (unsigned long) (statbuf.st_mode & (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)), |
592 | bb_mode_string(statbuf.st_mode), | 592 | bb_mode_string(statbuf.st_mode), |