aboutsummaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
* This incorporates Posix math support into ash. The Posix math supportandersen2001-07-302-0/+252
| | | | | | | | | | was written by Aaron Lehmann <aaronl@vitelus.com> for busybox. This patch makes a few trivial changes to Aaron's code so that it can be used (in theory) by the other shells as well... -Erik git-svn-id: svn://busybox.net/trunk/busybox@3165 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add support for devfs device names.kraai2001-07-232-4/+32
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3136 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some patches to make dietlibc work...andersen2001-07-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3134 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some adjustments, mostly from David McCullough <davidm@lineo.com> toandersen2001-07-192-4/+7
| | | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@3130 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change read_package_field interface, and rewrite using low level functionsbug12001-07-182-14/+78
| | | | | | | Fixes for a few bugs that have crept into dpkg in the last few days git-svn-id: svn://busybox.net/trunk/busybox@3122 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix extract_archive so it doesnt mangle filenames, dont try and extract "./" ↵bug12001-07-181-3/+6
| | | | | | and strip leading "./" on other files git-svn-id: svn://busybox.net/trunk/busybox@3121 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fail silently on failure to read tar header, its unfortunate that many tar ↵bug12001-07-181-1/+3
| | | | | | | | | implementations must be adding unwanted crap to the end of their archives. It makes error reporting here more trouble than its worth git-svn-id: svn://busybox.net/trunk/busybox@3116 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This is vodz' latest patch. Sorry it took so long...andersen2001-07-171-10/+6
| | | | | | | | | | | | 1) ping cleanup (compile fix from this patch already applied). 2) traceroute call not spare ntohl() now (and reduce size); 3) Fix for functions not declared static in insmod, ash, vi and mount. 4) a more simple API cmdedit :)) 5) adds "stopped jobs" warning to ash on Ctrl-D and fixes "ignoreeof" option 6) reduce exporting library function index->strchr (traceroute), bzero->memset (syslogd) git-svn-id: svn://busybox.net/trunk/busybox@3103 69ca8d6d-28ef-0310-b511-8ec308f3f277
* enum entry for unarchive to be used by tarbug12001-07-141-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3098 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Allow the unarchive() extract_list variable to be NULL, meaning extract allbug12001-07-141-16/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3097 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Return NULL if file doesnt open in deb_extractbug12001-07-131-1/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3093 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make sure there is a trailing '\0' when extracting to buffer.bug12001-07-131-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3092 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Dont setvbuff in here, must be called just after stream is initialised, ↵bug12001-07-131-3/+0
| | | | | | glibc tolerates using it later, uclibc doesnt git-svn-id: svn://busybox.net/trunk/busybox@3091 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move setvbuf calls from gz_open() to calling functions, setvbuf is only ↵bug12001-07-131-0/+3
| | | | | | supposed to be called prior to opening the stream, glibc tolerates later use, uclibc doesnt. git-svn-id: svn://busybox.net/trunk/busybox@3087 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from vodz:andersen2001-07-123-0/+42
| | | | | | | | | | Changed email address cmdedit API change optimizations for traceroute and md5sum added a new shared create_icmp_socket() function git-svn-id: svn://busybox.net/trunk/busybox@3078 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Quiet mode, sometimes error messages arent wantedbug12001-07-122-9/+22
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3073 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Allow unarchive to redirect stdout (tobe used by dpkg applet)bug12001-07-112-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3070 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix bug where it wasnt returning the last line of a multiline fieldbug12001-07-111-13/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3069 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reverse part of my previous changesbug12001-07-111-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3068 69ca8d6d-28ef-0310-b511-8ec308f3f277
* free coniditionally, just to make it play nice with dmalloc which is ↵bug12001-07-111-2/+6
| | | | | | incompatable with standard free() git-svn-id: svn://busybox.net/trunk/busybox@3063 69ca8d6d-28ef-0310-b511-8ec308f3f277
* minor dmalloc inspired cleanupsbug12001-07-111-5/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Avoid a segfault (detected by Fabio Ferrariandersen2001-07-072-3/+9
| | | | | | | | | <fabio.ferrari@digitro.com.br> in the wget applet) when concat_path_file() or last_char_is() were fed a NULL. -Erik git-svn-id: svn://busybox.net/trunk/busybox@3027 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed obsolete function, strdup_substr.kraai2001-07-053-39/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3010 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a stupid thinko, and fix killall to cope with the updatedandersen2001-07-051-0/+2
| | | | | | | | find_pid_by_name() interface -Erik git-svn-id: svn://busybox.net/trunk/busybox@3007 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Implement suggestion from Adam Slattery, (don't default to killing closing ↵andersen2001-07-051-3/+16
| | | | | | bug #1190. git-svn-id: svn://busybox.net/trunk/busybox@3003 69ca8d6d-28ef-0310-b511-8ec308f3f277
* 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