aboutsummaryrefslogtreecommitdiff
path: root/ls.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* more FILE_OFFSET_BITS == 64 adjustments.andersen2001-04-051-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2267 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a fewandersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@2250 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Place a temporary bandaid on the ls/du/df human-readable issue. This method isandersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@2235 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix ls so it uses make_human_readable_str() the same way alreadyandersen2001-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. git-svn-id: svn://busybox.net/trunk/busybox@2217 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from David Douthitt to fix problem where ls reports half themarkw2001-03-271-2/+2
| | | | | | | file size. Should close bug #1140. git-svn-id: svn://busybox.net/trunk/busybox@2204 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A cleanup patch from Jeff Garzik to static-ify a number ofandersen2001-03-091-16/+16
| | | | | | | namespace polluting things that really should be static. git-svn-id: svn://busybox.net/trunk/busybox@2027 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some minor cleanups to df.c. Also, with Erik's blessing, changed name ofmarkw2001-03-071-2/+4
| | | | | | | 'format' function to 'make_human_readable_str'. git-svn-id: svn://busybox.net/trunk/busybox@2001 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up ls.c to ensure human readable works properly in all casesandersen2001-03-071-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1992 69ca8d6d-28ef-0310-b511-8ec308f3f277
* I made these little simplifications a while back, bug forgot toandersen2001-03-061-3/+1
| | | | | | | | check this stuff in. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1990 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Oops. Put time.h after busybox.h, so we can check for BB_FEATURE_LS_TIMESTAMPSandersen2001-02-201-4/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1865 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It turns out that DODMALLOC was broken when I reorganized busybox.handersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@1864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed 'ls -s' so it actually displays block sizes again.andersen2001-02-151-3/+3
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1823 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch, put together by Manuel Novoa III, is a merge of workandersen2001-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. git-svn-id: svn://busybox.net/trunk/busybox@1805 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Buglet: 'tabstops' is unused if BB_FEATURE_AUTOWIDTH is not defined.markw2001-02-011-6/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1736 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a stupid typo -- bug found by Larry Doolittle.andersen2001-01-301-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1717 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix ls behavior for broken or very narrow terminals. Fix my_*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 git-svn-id: svn://busybox.net/trunk/busybox@1715 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix header file usage -- there were many unnecessary header files included inandersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@1695 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix my braindamage -- remove termios and sighandling since they are notandersen2001-01-261-1/+1
| | | | | | | | needed at all. My bad. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1682 69ca8d6d-28ef-0310-b511-8ec308f3f277
* I am an idiot. Looking over my patch, ls doesn't need to do anythingandersen2001-01-261-51/+1
| | | | | | | | | more then the ioctl to get the win size. None of the termios handling crap is needed. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1681 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make cin be staticandersen2001-01-261-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1680 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make ls understand termios.andersen2001-01-261-1/+60
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1677 69ca8d6d-28ef-0310-b511-8ec308f3f277
* more bugs fixed -- found doing regression testingandersen2001-01-241-2/+6
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1656 69ca8d6d-28ef-0310-b511-8ec308f3f277
* #define -> static const int. Also got rid of some big static buffers.markw2001-01-231-35/+40
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1642 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add HUMAN_READABLE define for -m and -h support in du, df, and lsrjune2001-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 git-svn-id: svn://busybox.net/trunk/busybox@1635 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Eliminate calls of the form "fprintf(stdout,". Thanks for the idea tokraai2001-01-181-23/+23
| | | | | | | Vladimir N. Oleynik. git-svn-id: svn://busybox.net/trunk/busybox@1616 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change calls to error_msg.* and strerror to use perror_msg.*.kraai2000-12-181-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1466 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix from Matt Kraai -- a better way to NULL terminate strings for theandersen2000-12-131-2/+0
| | | | | | | | my_* passwd and group routines. I should have thought of doing it this way... git-svn-id: svn://busybox.net/trunk/busybox@1443 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed names of functions in utility.c and all affected files, to makemarkw2000-12-071-4/+4
| | | | | | | compliant with the style guide. Everybody rebuild your tags file! git-svn-id: svn://busybox.net/trunk/busybox@1398 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stop using TRUE and FALSE for exit status.kraai2000-12-011-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1360 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Matt Kraai to fix an infinate loop with ls -aRandersen2000-11-291-6/+32
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1345 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed user and group name listing.kraai2000-11-181-22/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1334 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This was redundantandersen2000-10-291-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1269 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make features independent.kraai2000-10-281-5/+21
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1265 69ca8d6d-28ef-0310-b511-8ec308f3f277
* We also need to declare info if the USERNAMES feature is enabled.kraai2000-10-281-2/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1264 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Consolidate stat(2) and lstat(2) calls and error handling.kraai2000-10-131-34/+25
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1189 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Exit with failure status if we are unable to list any files orkraai2000-10-131-1/+8
| | | | | | | directories. Patch thanks to Kent Robotti <robotti@metconnect.com>. git-svn-id: svn://busybox.net/trunk/busybox@1188 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply a patch from Matt Kraai to fix buffer overrun and convert toandersen2000-10-121-19/+15
| | | | | | | | using synamically allocated storage. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1187 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply a patch from Matt Kraai: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 git-svn-id: svn://busybox.net/trunk/busybox@1172 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Renamed "internal.h" to the more sensible "busybox.h".andersen2000-09-251-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add support for the -L option to ls.kraai2000-09-221-0/+19
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1093 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Large file >2Gib support.andersen2000-09-211-0/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1082 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New ls sorting patch, as written by Sterling Huxley, and then updatedandersen2000-09-071-472/+642
| | | | | | | | | by kent robotti. I then updated it to use my_getpwuid and my_getgrgid (per busybox policy). -Erik git-svn-id: svn://busybox.net/trunk/busybox@1017 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed a warning about a label not being usedproski2000-08-221-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@981 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add optional ls file sorting, thanks to a patch fromandersen2000-08-111-0/+86
| | | | | | | | Sterling Huxley <sterling@europa.com> -Erik git-svn-id: svn://busybox.net/trunk/busybox@953 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some #include updates.andersen2000-08-101-1/+0
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@946 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Extract usage information into a separate file.kraai2000-07-161-57/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Comment on kernel stuffandersen2000-07-101-4/+0
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@807 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update files to reduce dependance on kernel version...andersen2000-07-081-4/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@779 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove MAXNAMLEN and use BUFSIZ instead.andersen2000-07-061-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@743 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added support for ignoring '-g' per GNU ls, thanks to David Vrabelandersen2000-07-031-0/+2
| | | | | | | | | <dvrabel@arcom.co.uk>. Seems some ftp clients expect the '-g' option to exist. -Erik git-svn-id: svn://busybox.net/trunk/busybox@728 69ca8d6d-28ef-0310-b511-8ec308f3f277