diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-08-31 12:42:06 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-08-31 12:42:06 +0200 |
commit | 8d3e225a2d1d980bcedb825f294b6a8041fe3f1b (patch) | |
tree | bfd632b8dbc3bb25c23aa437ebd0d2ea37818fe9 /miscutils | |
parent | 4e7dd3c363377aefd6ac60ab4335e773482bcca1 (diff) | |
download | busybox-w32-8d3e225a2d1d980bcedb825f294b6a8041fe3f1b.tar.gz busybox-w32-8d3e225a2d1d980bcedb825f294b6a8041fe3f1b.tar.bz2 busybox-w32-8d3e225a2d1d980bcedb825f294b6a8041fe3f1b.zip |
libbb: add xfstat function
function old new delta
xfstat - 25 +25
mkfs_ext2_main 2421 2423 +2
mkfs_reiser_main 1197 1194 -3
next 312 307 -5
ar_main 533 522 -11
mkfs_minix_main 2938 2924 -14
mkfs_vfat_main 1511 1495 -16
writeTarFile 272 255 -17
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/6 up/down: 27/-66) Total: -39 bytes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/ubi_attach_detach.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/ubi_attach_detach.c b/miscutils/ubi_attach_detach.c index 15377aa37..18ffd4df2 100644 --- a/miscutils/ubi_attach_detach.c +++ b/miscutils/ubi_attach_detach.c | |||
@@ -63,9 +63,9 @@ int ubi_attach_detach_main(int argc UNUSED_PARAM, char **argv) | |||
63 | ubi_ctrl = argv[optind]; | 63 | ubi_ctrl = argv[optind]; |
64 | 64 | ||
65 | fd = xopen(ubi_ctrl, O_RDWR); | 65 | fd = xopen(ubi_ctrl, O_RDWR); |
66 | //fstat(fd, &st); | 66 | //xfstat(fd, &st, ubi_ctrl); |
67 | //if (!S_ISCHR(st.st_mode)) | 67 | //if (!S_ISCHR(st.st_mode)) |
68 | // bb_error_msg_and_die("'%s' is not a char device", ubi_ctrl); | 68 | // bb_error_msg_and_die("%s: not a char device", ubi_ctrl); |
69 | 69 | ||
70 | if (do_attach) { | 70 | if (do_attach) { |
71 | if (!(opts & OPTION_M)) | 71 | if (!(opts & OPTION_M)) |