aboutsummaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Generalize comment -- no longer ls specificandersen2001-06-301-4/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2961 69ca8d6d-28ef-0310-b511-8ec308f3f277
* All-integer version (but it does use an unsigned long long) which fixesmjn32001-06-301-47/+70
| | | | | | | | | the problems of the previous version (used floating point, overflowed, didn't round properly). The comments at the top of the file are worth reading; especially note 2 concerning "ls -sh". git-svn-id: svn://busybox.net/trunk/busybox@2956 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add some missing includes to kill warnings when building with the defaultmjn32001-06-298-0/+10
| | | | | | | | | | Config.h and using gcc's -fno-builtin. There are probably other files with the similar problems. Also, if building against uClibc, don't include asm/unistd.h in syscalls.c and module_syscalls.c. git-svn-id: svn://busybox.net/trunk/busybox@2950 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Allow xrealloc to act as a free() when size=0, per SuS2.andersen2001-06-281-1/+11
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2945 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a type promotion bug discivered and analyzed by Alan Modraandersen2001-06-271-1/+1
| | | | | | | <amodra@bigpond.net.au>, which caused false checksum errors git-svn-id: svn://busybox.net/trunk/busybox@2917 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make it so we don't segfault when /proc isn't mounted -- guess pid 1...andersen2001-06-261-0/+9
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2911 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Don't use void * to pass pointers of known typeandersen2001-06-262-24/+23
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2910 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vladimir's last_patch_15bug12001-06-261-1/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2905 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Nore unarchive (and doc) fixes from Laurence Andersonbug12001-06-242-10/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2894 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cpio applet, and changes to associated codebug12001-06-221-15/+70
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2887 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove obsolete function declaration.kraai2001-06-221-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2884 69ca8d6d-28ef-0310-b511-8ec308f3f277
* stdlib.h defined free(), which this needsandersen2001-06-221-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2883 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix the build process so it does not do the evil #ifdef BB_FOO stuff.andersen2001-06-221-4/+21
| | | | | | | | | Build exactly one .o file per function, and let the linker throw away the junk it doesn't want. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2882 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in a missing header fileandersen2001-06-221-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2881 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Dont change date or chmod on symlinks, lchown on symlinks if lchown availablebug12001-06-221-6/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2880 69ca8d6d-28ef-0310-b511-8ec308f3f277
* remove defines around unarchive, its always usedbug12001-06-221-2/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2879 69ca8d6d-28ef-0310-b511-8ec308f3f277
* comment cleanuptimr2001-06-221-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2877 69ca8d6d-28ef-0310-b511-8ec308f3f277
* create_path -> make_directorytimr2001-06-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2876 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rewrote mkdir (and touched lots of things in the process).kraai2001-06-215-71/+150
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2873 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reorganise unarchiving functions, more code re-use, only does single pass(no ↵bug12001-06-2010-623/+518
| | | | | | | | | more linked lists), basis for supporting a cpio (and cheaper untar) applet, but cpio applet isnt included in this. It effects ar, dpkg-deb applets only git-svn-id: svn://busybox.net/trunk/busybox@2862 69ca8d6d-28ef-0310-b511-8ec308f3f277
* With a bit of care I was able to save about 100 bytes.andersen2001-06-151-2/+15
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2843 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This isnt used anymore, replaced by seek_sub_file() in ./libbb/deb_extract.cbug12001-06-151-17/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2835 69ca8d6d-28ef-0310-b511-8ec308f3f277
* I reworked make_human_readable_str so it now has a sane interface,andersen2001-06-132-23/+27
| | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@2826 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reorganise unarchive functions, new files, removed somebug12001-06-138-263/+416
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2825 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reorganise archive extraction codebug12001-06-133-68/+94
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2823 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Copy files until EOF, not the reported file size, to deal with bad sizes inkraai2001-06-112-30/+39
| | | | | | | the proc filesystem. git-svn-id: svn://busybox.net/trunk/busybox@2808 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add padding to struct sysinfo needed by m68k (note and patch by Richardkraai2001-06-081-0/+1
| | | | | | | Hirst). git-svn-id: svn://busybox.net/trunk/busybox@2806 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vladimir's last_patch13, containing several bugfixes.andersen2001-06-013-51/+71
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2779 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from larry to fix some grammar errors.andersen2001-05-231-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2715 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make more robust (patch by Larry Doolittle).kraai2001-05-231-5/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2712 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rewrote copyfd to use library functions, terminate, and copy correct data.kraai2001-05-182-25/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2672 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Switch from hstrerror to herror for libc5 systems.kraai2001-05-171-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2669 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add missing include, noted by Larry Doolittle.kraai2001-05-161-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2656 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add xgethostbyname and herror_msg* functions.kraai2001-05-165-0/+188
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2654 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch from Adam Heath <doogie@debian.org>, makes print_fileandersen2001-05-153-5/+70
| | | | | | | (used by cat, grep, sed, etc) quite a bit faster. git-svn-id: svn://busybox.net/trunk/busybox@2648 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Vladimir:andersen2001-05-155-24/+20
| | | | | | | | | | 1) fixed a bug that could crash df, mount, and umount applets if the root device name was longer then the word "root" (/dev/loop1 vs /dev/root) - 2) severl functions needed static declaration in the umount applet 3) update declaration for function in last_char_is() in libbb git-svn-id: svn://busybox.net/trunk/busybox@2647 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Per suggestion from Vladimir, eliminate check_wildcard_match(), whichandersen2001-05-142-142/+0
| | | | | | | | | | | | | | was only being used by insmod these days. Also, I spent a minute adjusting insmod so that it first searches /lib/modules/`uname -r` and then (if that fails) searches /lib/modules, which makes bb insmod behave much more like the real insmod, and should avoid nasty surprises (such as the recent "Modutils vs. Busybox..." thread). -Erik git-svn-id: svn://busybox.net/trunk/busybox@2634 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a segfault in lash, hush, and cmdedit. Each of these usedandersen2001-05-112-0/+4
| | | | | | | | | xgetcwd, but did not check the return for a NULL, and then continued to call strlen on the NULL when the cwd had been removed from under it. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2613 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix symlink removal problem noted by Erik Andersen.kraai2001-05-111-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2602 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This syncs things with Vladimir's latest patches. Also getsandersen2001-05-071-4/+4
| | | | | | | | rid of useless 'const int' declarations. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2569 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This is Vladimir's update to last_char_is(). Since 'char *' isandersen2001-05-071-4/+7
| | | | | | | | the least common denominator, I modified it to use that (not const), which will minimize the need for casting elsewhere. git-svn-id: svn://busybox.net/trunk/busybox@2568 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A patch from Vladimir to simplify chomp()andersen2001-05-071-7/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2566 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A patch from Vladimir to simplify concat_path_file() andandersen2001-05-071-11/+7
| | | | | | | make it less likely to break. git-svn-id: svn://busybox.net/trunk/busybox@2565 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Per some comments from Lars Kellogg-Stedman <lars@larsshack.org>,andersen2001-05-071-3/+6
| | | | | | | | | make xreadlink() return NULL on failure, and make sure everyone uses the interface correctly. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2551 69ca8d6d-28ef-0310-b511-8ec308f3f277
* include libbb.h after other includesbug12001-05-051-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2542 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Larry suggested using concat_path_file() would be an even safer betandersen2001-05-041-1/+3
| | | | | | | | | | for 'which'. I ageed, so I whipped this up -- which revealed a bug in concat_path_file. It turns out that that a '/' can be appended from either the path _or_ the filename, but only the former was checked. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2536 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Oops. I was a bit too hasty and also changed applet_name.andersen2001-04-301-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2496 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Made new xreadlink function for libbb and changed applets to use it instead ofmarkw2001-04-303-10/+38
| | | | | | | readlink(2). git-svn-id: svn://busybox.net/trunk/busybox@2495 69ca8d6d-28ef-0310-b511-8ec308f3f277
* These messages can be .rodata, so make them even more const.andersen2001-04-302-25/+25
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2494 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix user permissions of copied directories.kraai2001-04-301-1/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2491 69ca8d6d-28ef-0310-b511-8ec308f3f277