Denys Vlasenko
|
8dd29da2c6
|
ls: code shrink
function old new delta
sort_and_display_files - 427 +427
scan_and_display_dirs_recur 497 488 -9
ls_main 765 735 -30
display_files 422 - -422
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/2 up/down: 427/-461) Total: -34 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-05-13 17:55:08 +02:00 |
|
Denys Vlasenko
|
4029e21b37
|
ls: reorder and rename functions. No code changes
function old new delta
display_single - 931 +931
scan_and_display_dirs_recur - 497 +497
display_files - 422 +422
showfiles 422 - -422
showdirs 497 - -497
list_single 931 - -931
------------------------------------------------------------------------------
(add/remove: 3/3 grow/shrink: 0/0 up/down: 1850/-1850) Total: 0 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-05-13 17:28:46 +02:00 |
|
Denys Vlasenko
|
2a81639534
|
ls: reduce memory consumption and speed up (don't do redundant [l]stat)
function old new delta
my_stat 110 278 +168
splitdnarray 120 118 -2
ls_main 769 765 -4
list_single 961 931 -30
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 168/-36) Total: 132 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-05-13 17:28:09 +02:00 |
|
Denys Vlasenko
|
66ca241dca
|
ls: avoid forward declaration. No code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-05-13 17:27:36 +02:00 |
|
Denys Vlasenko
|
d27ac299eb
|
ls: code shrink
function old new delta
list_single 990 961 -29
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-05-13 17:27:15 +02:00 |
|
Denys Vlasenko
|
279a7ac04e
|
ls: fix help text: -w N is optional
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-05-12 18:44:51 +02:00 |
|
Denys Vlasenko
|
4ad95e6b0e
|
ls: fix -p help text, improve comments and define names
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-05-12 18:40:59 +02:00 |
|
Denys Vlasenko
|
43a3d50e14
|
md5/sha1sum: better fix for small resource leak
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-04-16 18:56:36 +02:00 |
|
Alexey Fomenko
|
88a8384388
|
md5/sha1sum: fix small resource leak
Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-04-16 18:49:39 +02:00 |
|
Denys Vlasenko
|
c13ee8c0f3
|
basename,dirname,freeramdisk,rx,raidautorun,runsv,chvt: skip "--" argument
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-04-11 03:58:30 +02:00 |
|
Pere Orga
|
6a3e01d5a9
|
move help text from include/usage.src.h to debianutils/*.c e2fsprogs/*.c editors/*.c loginutils/*.c mailutils/*.c
Signed-off-by: Pere Orga <gotrunks@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-04-03 01:33:55 +02:00 |
|
Denys Vlasenko
|
fa9126e689
|
ls: better help text for -a and -A
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-04-03 01:27:49 +02:00 |
|
Pere Orga
|
34425389e0
|
move help text from include/usage.src.h to coreutils/*.c
Signed-off-by: Pere Orga <gotrunks@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-03-31 14:43:25 +02:00 |
|
Alexey Soloviev
|
f922154f65
|
dd: free allocated memory if CLEANUP enabled
Signed-off-by: Alexey Soloviev <EXT-Alexey.Soloviev@nokia.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-03-22 17:42:29 +01:00 |
|
Denys Vlasenko
|
b0e8ced358
|
ln: explain why we use xstrdup
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-03-21 12:36:35 +01:00 |
|
Denys Vlasenko
|
ea684c6aaf
|
ls: fix handling of symlinks by option -1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-03-12 03:12:36 +01:00 |
|
Pascal Bellard
|
48b6f59e19
|
chsum: fix
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-03-11 23:40:27 +01:00 |
|
Denys Vlasenko
|
681efe20d3
|
use user's shell instead of hardwired "/bin/sh" (android needs this)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-03-08 21:00:36 +01:00 |
|
Denys Vlasenko
|
86cf0364bd
|
printenv: fix environ == NULL segfault
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-03-08 12:44:02 +01:00 |
|
Alexey Soloviev
|
41478ade4f
|
tr: free allocated memory in tr if CLEANUP enabled
Signed-off-by: Alexey Soloviev <EXT-Alexey.Soloviev@nokia.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-03-06 18:21:07 +01:00 |
|
Denys Vlasenko
|
940c7206c2
|
convert "do {...} while (1);" -> "while (1) {...}"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-03-02 04:07:14 +01:00 |
|
Denys Vlasenko
|
3b28dae17d
|
ls: widen -s (1k blocks) column from 4 to 6
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-03-01 05:37:41 +01:00 |
|
Denys Vlasenko
|
26d11b8133
|
ls: -g implies -l
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-02-28 12:38:08 +01:00 |
|
Denys Vlasenko
|
9f368e38fb
|
ls: fix bits for -T, -w and --color; make -n imply -l; fix comments
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-02-28 12:16:10 +01:00 |
|
Denys Vlasenko
|
cd387f2554
|
ls: fix one-bit-off which caused -H to behave as -h
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-02-27 04:10:00 +01:00 |
|
Denys Vlasenko
|
e3b1a1fd28
|
Replace "depends on PLATFORM_LINUX" with "select PLATFORM_LINUX"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-02-26 22:24:08 +01:00 |
|
Denys Vlasenko
|
4fdb67cc65
|
echo: fix SEGV when run with no args
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-02-15 18:35:54 +01:00 |
|
Denys Vlasenko
|
b9348440b0
|
echo: fix ENOSPC detection and some iffy code in \NNN handling
function old new delta
echo_main 330 302 -28
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-02-14 15:42:18 +01:00 |
|
Denys Vlasenko
|
8ee2adab21
|
echo: do not retry on write errors
function old new delta
echo_main 297 336 +39
stpcpy - 22 +22
run_pipe 1561 1566 +5
pseudo_exec_argv 187 192 +5
hush_exit 75 80 +5
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 4/0 up/down: 98/0) Total: 76 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-02-07 02:03:51 +01:00 |
|
Lauri Kasanen
|
55ae0e9238
|
df,find_mount_point: optionally don't ignore rootfs
Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-01-31 06:27:35 +01:00 |
|
Denys Vlasenko
|
df7b6577c6
|
id: fix inverted if (!ENABLE_DESKTOP)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-01-26 16:11:19 +01:00 |
|
Denys Vlasenko
|
e3d4c03852
|
stty: cosmetic fix to settings table; no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-01-26 11:58:37 +01:00 |
|
Denys Vlasenko
|
ea023eacad
|
disable length applet. ${#var} and echo -n "$var" | wc -c are portable equivalents
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-01-26 01:21:20 +01:00 |
|
Denys Vlasenko
|
8d0e0cdadf
|
move utmp.h include to libbb.h
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-01-25 23:21:46 +01:00 |
|
Denys Vlasenko
|
e54cfc5477
|
stty: enable line discipline display and change code if __linix__
function old new delta
stty_main 1242 1276 +34
do_display 419 431 +12
display_speed 90 81 -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 46/-9) Total: 37 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-01-24 18:30:35 +01:00 |
|
Denys Vlasenko
|
271c0ce379
|
stty: make swtch and iutf8 visible/settable
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-01-24 16:36:15 +01:00 |
|
Denys Vlasenko
|
1336f89d59
|
wc: fix swapped -c and -m
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-01-22 17:57:01 +01:00 |
|
Denys Vlasenko
|
b9f2d9f7d9
|
mass removal of underscores from _BB_DIR_foo and _BB_SUID_foo
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-01-18 13:58:01 +01:00 |
|
Denys Vlasenko
|
dc7e5c46b0
|
libbb unicode: comment out usused function and unused parameter
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
|
2011-01-11 13:08:28 +01:00 |
|
Denys Vlasenko
|
92ffe0571a
|
date,touch: treat 2-digit years better (fit them into +-50 yrs around today)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2011-01-02 20:02:09 +01:00 |
|
Alexey Soloviev
|
a5d3d3436b
|
date: preserve isdst value if date is in time_t (unix time) format
Signed-off-by: Alexey Soloviev <EXT-Alexey.Soloviev@nokia.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2010-12-31 05:21:51 +01:00 |
|
Denys Vlasenko
|
0cd4f3039b
|
add missed underscore
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2010-12-31 00:01:59 +01:00 |
|
Denys Vlasenko
|
d1e46651a3
|
date: add a comment about _SVID_SOURCE
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2010-12-30 23:56:47 +01:00 |
|
Denys Vlasenko
|
27c6c00a7c
|
test: add examples when "%s: unknown operand" happens
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2010-12-20 03:43:20 +01:00 |
|
James Youngman
|
a4bc10cec7
|
ls: remove redundant constants LIST_FILENAME and LIST_SHORT
LIST_FILENAME is always true and LIST_SHORT affects nothing.
Signed-off-by: James Youngman <jay@gnu.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2010-12-20 01:36:16 +01:00 |
|
Denys Vlasenko
|
982aa263a0
|
ls: add support for -H
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2010-12-19 21:54:39 +01:00 |
|
Denys Vlasenko
|
407ab2a434
|
ls: tweak -e handling; better comments
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2010-12-19 16:29:08 +01:00 |
|
Denys Vlasenko
|
2f7d9e8903
|
ls: print a space after each column. Closes bug 2941
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2010-12-19 07:06:44 +01:00 |
|
Denys Vlasenko
|
163d864357
|
ls: make -F not follow symlinks of the command line
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2010-12-19 06:16:28 +01:00 |
|
Denys Vlasenko
|
d87815d5e0
|
ls: make -x force columnar output; remove unused parts of TRIGGER code
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
2010-12-19 05:43:44 +01:00 |
|