summaryrefslogtreecommitdiff
path: root/coreutils/ls.c
AgeCommit message (Collapse)Author
2002-11-28Change if(x)free(x); to free(x);Aaron Lehmann
2002-11-28Use printf instead of fprintf(stdoutGlenn L McGrath
2002-08-22Run through indent, fix BB_ defineGlenn L McGrath
2002-04-27Fix silly combinitorial oversightEric Andersen
2002-04-17ls could mis-color certain entries when previous commandsEric Andersen
had failed. Explicitly 0 out errno to prevent that.
2002-03-20Patch from J.W.Janssen <JanWillem.Janssen@lxtreme.nl> to provideEric Andersen
color ls support, modifed by me to behave properly when not running output to a terminal (i.e. 'ls | more') -Erik
2002-03-08list_single: Declare scratch iff CONFIG_FEATURE_LS_USERNAME is defined.Matt Kraai
2002-03-08* fileutils/ls.c (showfiles): Display multiple short names on a line.Matt Kraai
2001-12-20Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !.Matt Kraai
2001-10-24Major rework of the directory structure and the entire build system.Eric Andersen
-Erik
2001-07-31Make formatting match GNU ls (we were including a spare ' ')Eric Andersen
-Erik
2001-07-22Some patches to make dietlibc work...Eric Andersen
2001-07-19Some adjustments, mostly from David McCullough <davidm@lineo.com> toEric Andersen
make busybox be more uClinux friendly. I also adjusted Config.h for uClinux so it will automagically disable apps the arn't going to work without fork() and such. -Erik
2001-06-30Pad the human readable output for 'ls -sh' to 6 chars, since we willEric Andersen
have numbers printed as XXX.YU, so we need 6 digits not 4. -Erik
2001-06-30ls -s was reporting bytes instead of blocks.Manuel Novoa III
2001-06-25Fix up some warnings that show up on ppcEric Andersen
2001-06-13I reworked make_human_readable_str so it now has a sane interface,Eric Andersen
and then fixed up df, du, and ls to use the new interface. I also fixed up some formatting issues in ls while I was in there. -Erik
2001-05-23Patch from larry to fix some grammar errors.Eric Andersen
2001-04-30Made new xreadlink function for libbb and changed applets to use it instead ofMark Whitley
readlink(2).
2001-04-23Simplify pathname building, in which a bug was noted by Larry Doolittle,Matt Kraai
a patch was provided by Vladimir Oleynik, and am improved patch commited by me.
2001-04-05more FILE_OFFSET_BITS == 64 adjustments.Eric Andersen
2001-04-05A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a fewEric Andersen
shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can handle them sanely and all at once. -Erik
2001-04-03Place a temporary bandaid on the ls/du/df human-readable issue. This method isEric Andersen
not going to scale up as well as I would like, and Matt Kraai and I have discussed a better long term solution. But for now this will at least make all the human-readable apps give correct answers. Please test the human readable/non-human readable options on your systems!!! -Erik
2001-03-28Fix ls so it uses make_human_readable_str() the same way alreadyEric Andersen
used by 'du' and 'df'. Now we just need to fix make_human_readable_str so it behaves they way it used to before Matt fixed it.
2001-03-27Applied patch from David Douthitt to fix problem where ls reports half theMark Whitley
file size. Should close bug #1140.
2001-03-09A cleanup patch from Jeff Garzik to static-ify a number ofEric Andersen
namespace polluting things that really should be static.
2001-03-07Some minor cleanups to df.c. Also, with Erik's blessing, changed name ofMark Whitley
'format' function to 'make_human_readable_str'.
2001-03-07Fix up ls.c to ensure human readable works properly in all casesEric Andersen
2001-03-06I made these little simplifications a while back, bug forgot toEric Andersen
check this stuff in. -Erik
2001-02-20Oops. Put time.h after busybox.h, so we can check for BB_FEATURE_LS_TIMESTAMPSEric Andersen
-Erik
2001-02-20It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen
header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
2001-02-15Fixed 'ls -s' so it actually displays block sizes again.Eric Andersen
-Erik
2001-02-14This patch, put together by Manuel Novoa III, is a merge of workEric Andersen
done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
2001-02-01Buglet: 'tabstops' is unused if BB_FEATURE_AUTOWIDTH is not defined.Mark Whitley
2001-01-30Fix a stupid typo -- bug found by Larry Doolittle.Eric Andersen
2001-01-30Fix ls behavior for broken or very narrow terminals. Fix my_*Eric Andersen
functions so they comply with the original interface (i.e. don't exit on error, stringify uids and gids when no amtching name found). -Erik
2001-01-27Fix header file usage -- there were many unnecessary header files included inEric Andersen
busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik
2001-01-26Fix my braindamage -- remove termios and sighandling since they are notEric Andersen
needed at all. My bad. -Erik
2001-01-26I am an idiot. Looking over my patch, ls doesn't need to do anythingEric Andersen
more then the ioctl to get the win size. None of the termios handling crap is needed. -Erik
2001-01-26Make cin be staticEric Andersen
2001-01-26Make ls understand termios.Eric Andersen
-Erik
2001-01-24more bugs fixed -- found doing regression testingEric Andersen
-Erik
2001-01-23#define -> static const int. Also got rid of some big static buffers.Mark Whitley
2001-01-22Add HUMAN_READABLE define for -m and -h support in du, df, and lsRichard June
Add support for -k in du, df, and ls(no define, it's for compatibliity with the GNU utils as bb does -k by default) Fix bug #1084
2001-01-18Eliminate calls of the form "fprintf(stdout,". Thanks for the idea toMatt Kraai
Vladimir N. Oleynik.
2000-12-18Change calls to error_msg.* and strerror to use perror_msg.*.Matt Kraai
2000-12-13Fix from Matt Kraai -- a better way to NULL terminate strings for theEric Andersen
my_* passwd and group routines. I should have thought of doing it this way...
2000-12-07Changed names of functions in utility.c and all affected files, to makeMark Whitley
compliant with the style guide. Everybody rebuild your tags file!
2000-12-01Stop using TRUE and FALSE for exit status.Matt Kraai
2000-11-29Patch from Matt Kraai to fix an infinate loop with ls -aREric Andersen