aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-01-27 23:41:34 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-01-27 23:41:34 +0000
commitb5c60fc7870a66d89de571e96596b0745edcd6d9 (patch)
tree29b3595303de8e526b9f64d3a2d2456f783efe2a /libbb
parentda42bd5bbe6fdda12133e7305b1a3e7cee506cc8 (diff)
downloadbusybox-w32-b5c60fc7870a66d89de571e96596b0745edcd6d9.tar.gz
busybox-w32-b5c60fc7870a66d89de571e96596b0745edcd6d9.tar.bz2
busybox-w32-b5c60fc7870a66d89de571e96596b0745edcd6d9.zip
mkswap, readahead: stop using fdlength, it is reported to be unreliable
Diffstat (limited to 'libbb')
-rw-r--r--libbb/xfuncs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 25c36bd07..445e07717 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -475,6 +475,7 @@ void xsetuid(uid_t uid)
475} 475}
476 476
477// Return how long the file at fd is, if there's any way to determine it. 477// Return how long the file at fd is, if there's any way to determine it.
478#ifdef UNUSED
478off_t fdlength(int fd) 479off_t fdlength(int fd)
479{ 480{
480 off_t bottom = 0, top = 0, pos; 481 off_t bottom = 0, top = 0, pos;
@@ -513,6 +514,7 @@ off_t fdlength(int fd)
513 514
514 return pos + 1; 515 return pos + 1;
515} 516}
517#endif
516 518
517int bb_putchar(int ch) 519int bb_putchar(int ch)
518{ 520{