summaryrefslogtreecommitdiff
path: root/coreutils/ls.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* more FILE_OFFSET_BITS == 64 adjustments.Eric Andersen2001-04-051-1/+1
|
* A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a fewEric Andersen2001-04-051-1/+1
| | | | | | shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can handle them sanely and all at once. -Erik
* Place a temporary bandaid on the ls/du/df human-readable issue. This method isEric Andersen2001-04-031-6/+9
| | | | | | | | | 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
* Fix ls so it uses make_human_readable_str() the same way alreadyEric Andersen2001-03-281-1/+1
| | | | | 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.
* Applied patch from David Douthitt to fix problem where ls reports half theMark Whitley2001-03-271-2/+2
| | | | file size. Should close bug #1140.
* A cleanup patch from Jeff Garzik to static-ify a number ofEric Andersen2001-03-091-16/+16
| | | | namespace polluting things that really should be static.
* Some minor cleanups to df.c. Also, with Erik's blessing, changed name ofMark Whitley2001-03-071-2/+4
| | | | 'format' function to 'make_human_readable_str'.
* Fix up ls.c to ensure human readable works properly in all casesEric Andersen2001-03-071-5/+5
|
* I made these little simplifications a while back, bug forgot toEric Andersen2001-03-061-3/+1
| | | | | check this stuff in. -Erik
* Oops. Put time.h after busybox.h, so we can check for BB_FEATURE_LS_TIMESTAMPSEric Andersen2001-02-201-4/+4
| | | | -Erik
* It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen2001-02-201-1/+1
| | | | | | 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
* Fixed 'ls -s' so it actually displays block sizes again.Eric Andersen2001-02-151-3/+3
| | | | -Erik
* This patch, put together by Manuel Novoa III, is a merge of workEric Andersen2001-02-141-1/+1
| | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
* Buglet: 'tabstops' is unused if BB_FEATURE_AUTOWIDTH is not defined.Mark Whitley2001-02-011-6/+5
|
* Fix a stupid typo -- bug found by Larry Doolittle.Eric Andersen2001-01-301-1/+1
|
* Fix ls behavior for broken or very narrow terminals. Fix my_*Eric Andersen2001-01-301-17/+25
| | | | | | 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
* Fix header file usage -- there were many unnecessary header files included inEric Andersen2001-01-271-0/+1
| | | | | | | 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
* Fix my braindamage -- remove termios and sighandling since they are notEric Andersen2001-01-261-1/+1
| | | | | needed at all. My bad. -Erik
* I am an idiot. Looking over my patch, ls doesn't need to do anythingEric Andersen2001-01-261-51/+1
| | | | | | more then the ioctl to get the win size. None of the termios handling crap is needed. -Erik
* Make cin be staticEric Andersen2001-01-261-1/+1
|
* Make ls understand termios.Eric Andersen2001-01-261-1/+60
| | | | -Erik
* more bugs fixed -- found doing regression testingEric Andersen2001-01-241-2/+6
| | | | -Erik
* #define -> static const int. Also got rid of some big static buffers.Mark Whitley2001-01-231-35/+40
|
* Add HUMAN_READABLE define for -m and -h support in du, df, and lsRichard June2001-01-221-2/+29
| | | | | 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
* Eliminate calls of the form "fprintf(stdout,". Thanks for the idea toMatt Kraai2001-01-181-23/+23
| | | | Vladimir N. Oleynik.
* Change calls to error_msg.* and strerror to use perror_msg.*.Matt Kraai2000-12-181-3/+3
|
* Fix from Matt Kraai -- a better way to NULL terminate strings for theEric Andersen2000-12-131-2/+0
| | | | | my_* passwd and group routines. I should have thought of doing it this way...
* Changed names of functions in utility.c and all affected files, to makeMark Whitley2000-12-071-4/+4
| | | | compliant with the style guide. Everybody rebuild your tags file!
* Stop using TRUE and FALSE for exit status.Matt Kraai2000-12-011-1/+0
|
* Patch from Matt Kraai to fix an infinate loop with ls -aREric Andersen2000-11-291-6/+32
|
* Fixed user and group name listing.Matt Kraai2000-11-181-22/+13
|
* This was redundantEric Andersen2000-10-291-1/+0
|
* Make features independent.Matt Kraai2000-10-281-5/+21
|
* We also need to declare info if the USERNAMES feature is enabled.Matt Kraai2000-10-281-2/+4
|
* Consolidate stat(2) and lstat(2) calls and error handling.Matt Kraai2000-10-131-34/+25
|
* Exit with failure status if we are unable to list any files orMatt Kraai2000-10-131-1/+8
| | | | directories. Patch thanks to Kent Robotti <robotti@metconnect.com>.
* Apply a patch from Matt Kraai to fix buffer overrun and convert toEric Andersen2000-10-121-19/+15
| | | | | using synamically allocated storage. -Erik
* Apply a patch from Matt Kraai:Eric Andersen2000-10-091-1/+11
| | | | | | | "The -L option to ls doesn't behave correctly for files listed explicitly on the command line, only those in directories that are listed. The appended patch fixes this problem. Would someone please commit it?" -Erik
* Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen2000-09-251-1/+1
| | | | -Erik
* Add support for the -L option to ls.Matt Kraai2000-09-221-0/+19
|
* Large file >2Gib support.Eric Andersen2000-09-211-0/+8
|
* New ls sorting patch, as written by Sterling Huxley, and then updatedEric Andersen2000-09-071-472/+642
| | | | | | by kent robotti. I then updated it to use my_getpwuid and my_getgrgid (per busybox policy). -Erik
* Fixed a warning about a label not being usedPavel Roskin2000-08-221-4/+4
|
* Add optional ls file sorting, thanks to a patch fromEric Andersen2000-08-111-0/+86
| | | | | Sterling Huxley <sterling@europa.com> -Erik
* Some #include updates.Eric Andersen2000-08-101-1/+0
| | | | -Erik
* Extract usage information into a separate file.Matt Kraai2000-07-161-57/+0
|
* Comment on kernel stuffEric Andersen2000-07-101-4/+0
| | | | -Erik
* Update files to reduce dependance on kernel version...Eric Andersen2000-07-081-4/+4
| | | | -Erik
* Remove MAXNAMLEN and use BUFSIZ instead.Eric Andersen2000-07-061-1/+1
| | | | -Erik
* Added support for ignoring '-g' per GNU ls, thanks to David VrabelEric Andersen2000-07-031-0/+2
| | | | | | <dvrabel@arcom.co.uk>. Seems some ftp clients expect the '-g' option to exist. -Erik