aboutsummaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
* - fix bug #887, in bb_get_chomped_line_from_file(), the last char was removedaldot2006-06-101-9/+14
| | | | | | | | | unconditionally, even if it was not a newline. This was apparently broken by r14254 - whitespace while at it. git-svn-id: svn://busybox.net/trunk/busybox@15348 69ca8d6d-28ef-0310-b511-8ec308f3f277
* made "test" an ash built-in.pgf2006-06-082-152/+1
| | | | | | | | | | | | | | | | | | | | | | moved the contents of libbb/bb_echo.c back into coreutils/echo.c, which is a more reasonable place for them than libbb. this forces anyone who wants echo and test to be builtin to ash to also have them available as applets. their cost is very small, and the number of people who wouldn't want them as applets is also very small. added warning about shell builtins vs. CONFIG_FEATURE_SH_STANDALONE_SHELL, which conflicts with their use. thanks to nathanael copa for debugging help. some string size optimization in test.c may have been lost with this commit, but this is a good new baseline. git-svn-id: svn://busybox.net/trunk/busybox@15344 69ca8d6d-28ef-0310-b511-8ec308f3f277
* sometimes daemonizing and vfork()/exit() is okvapier2006-06-071-5/+19
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15333 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_xdaemon() isnt available on no-mmu systemsvapier2006-06-071-1/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15332 69ca8d6d-28ef-0310-b511-8ec308f3f277
* comment all fieldsvapier2006-06-071-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15331 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add reference to proc(5)vapier2006-06-071-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15326 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - reuse strings and messages. Saves about 600Baldot2006-06-071-1/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15325 69ca8d6d-28ef-0310-b511-8ec308f3f277
* whitespacevapier2006-06-071-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15322 69ca8d6d-28ef-0310-b511-8ec308f3f277
* whitespacevapier2006-06-071-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15321 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - make getopt_ulflags aware of CONFIG_GETOPT_LONGaldot2006-05-311-1/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15248 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - convert xcalloc(1,x) to xzallocaldot2006-05-311-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15246 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - s/defined(__uClinux__)/BB_NOMMU/aldot2006-05-311-2/+2
| | | | | | | | | | This needs a second pass to: + add bb_daemon(unsigned char no_chdir, unsigned char no_close, const char*flag) + eventually globally export argc and argv, so we don't need to pass it to bb_daemon(). git-svn-id: svn://busybox.net/trunk/busybox@15244 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add SWAP_LE?? and SWAP_BE?? macros, and make things use them. Converts valueslandley2006-05-291-15/+6
| | | | | | | | to/from little endian or big endian, which is a NOP if that's what the current platform already is. git-svn-id: svn://busybox.net/trunk/busybox@15215 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change llist_add_* to take the address of the list rather than returning the newlandley2006-05-262-20/+11
| | | | | | | head, and change all the callers. git-svn-id: svn://busybox.net/trunk/busybox@15199 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Slight sanity fix: data is void *, not char *. And it's called datalandley2006-05-261-3/+3
| | | | | | | almost everywhere, so be consistent. git-svn-id: svn://busybox.net/trunk/busybox@15198 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - introduce and use bb_path_wtmp_file for portability (saves 11 Bytes).aldot2006-05-261-0/+14
| | | | | | | - fix last.c to also look at the double-underscore UT_ defines. git-svn-id: svn://busybox.net/trunk/busybox@15193 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - make find_mount_point conditional on df and eject; Fixes `make hosttools´ onaldot2006-05-261-2/+3
| | | | | | | hosts where mntent.h does not exist. git-svn-id: svn://busybox.net/trunk/busybox@15188 69ca8d6d-28ef-0310-b511-8ec308f3f277
* errno and h_errno values are not the same #876 by rfelkervapier2006-05-261-2/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15178 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rich Felker suggested removing dprintf() from watch, and one thing led tolandley2006-05-251-0/+34
| | | | | | | | | another... This adds bb_xspawn() support, which does vfork/exec. (I don't know why using a static instead of a local adds ~40 bytes, but using the local doesn't work...) git-svn-id: svn://busybox.net/trunk/busybox@15172 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A pending item in my tree I might as well check in: I plan to migrate calloc()landley2006-05-191-0/+9
| | | | | | | | and bb_calloc() calls to bb_xzalloc() which allocates prezeroed memory but only takes one argument (the size). git-svn-id: svn://busybox.net/trunk/busybox@15142 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - remove emacs layout block as suggested by Robert P.J. Dayaldot2006-05-1934-686/+28
| | | | | | | - use shorter boilerplate while at it git-svn-id: svn://busybox.net/trunk/busybox@15141 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - replace _PATH_DEVNULL with bb_dev_nullaldot2006-05-191-14/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15133 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - use uint32_t instead of __u32aldot2006-05-191-2/+2
| | | | | | | Thanks to Rich Felker for pointing this out. git-svn-id: svn://busybox.net/trunk/busybox@15129 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - include strings.haldot2006-05-192-7/+9
| | | | | | | Thanks to Rich Felker for pointing this out. git-svn-id: svn://busybox.net/trunk/busybox@15124 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - single KERNEL_VERSION(a,b,c) macro in platform.haldot2006-05-191-3/+4
| | | | | | | | - rename get_kernel_revision() to get_linux_version_code from Robert P. J. Day git-svn-id: svn://busybox.net/trunk/busybox@15121 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make md5 calculation always go through an the buffer so that A) we don'tlandley2006-05-161-87/+42
| | | | | | | | | | | | | | handle packets out of sequence if some data goes through the buffer and some doesn't, B) it works on systems that can't handle aligned access, C) we just have one code path to worry about. While we're at it, sizeof() and RESERVE_CONFIG_BUFFER() really don't combine well, which is why md5sum has been reading and processing data 4 bytes at a time. I suspect that the existence of CONFIG_MD5_SIZE_VS_SPEED to do loop unrolling and such in the algorithm was an attempt to work around that bug. git-svn-id: svn://busybox.net/trunk/busybox@15088 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - patch from Robert P. J. Day to use filter instead of findstring.aldot2006-05-151-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15082 69ca8d6d-28ef-0310-b511-8ec308f3f277
* pull Rules.mak from top_srcdir as pointed out by Robert P. J. Day on the ↵vapier2006-05-131-1/+1
| | | | | | mailing list git-svn-id: svn://busybox.net/trunk/busybox@15079 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Autodetect parts of a multipart file, from Robert P. Day's suggestion.landley2006-05-121-19/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15074 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bug fix from Vladimir Oleynik, and suggestion I add my copyright noticelandley2006-05-111-2/+3
| | | | | | | to the file. git-svn-id: svn://busybox.net/trunk/busybox@15072 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fiddling with llist to make memory management easier. Specifically, thelandley2006-05-082-11/+22
| | | | | | | | option to delete the contents of the list when we delete the list is a good thing. git-svn-id: svn://busybox.net/trunk/busybox@15037 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove a link that leaked in from the pending llist_t changes.landley2006-05-081-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15033 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove bb_strlen() in favor of -fno-builtin-strlen. Saves as many byteslandley2006-05-073-12/+3
| | | | | | | | as the old optimization did (actually does slightly better under gcc 4.0), and simplifies the code. git-svn-id: svn://busybox.net/trunk/busybox@15023 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Migrate endianness macros.landley2006-05-051-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15008 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Not quite compiler independent, but we've never tried to be gcc independentlandley2006-05-041-10/+4
| | | | | | | | anyway. This is at least less ugly than what was there before, and fixes building all sources at once. git-svn-id: svn://busybox.net/trunk/busybox@15000 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Whitespace and documentation cleanup from Dennis Vlasenko.landley2006-05-031-53/+60
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14987 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Portability tweak from Shaun Jackman, don't include asm/page.h directly.landley2006-04-251-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14941 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove some #if 0 code.landley2006-04-181-9/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14916 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - BusyBox is under GPL.aldot2006-04-185-5/+5
| | | | | | | | | | in http://www.busybox.net/lists/busybox/2006-April/020364.html Denis Vlasenko said when asked which license to use for these files: "Sure. LGPL or GPL is fine with me." Adjusting accordingly. git-svn-id: svn://busybox.net/trunk/busybox@14907 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use memmove() instead of bcopy()vapier2006-04-161-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14887 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use memcmp() not bcmp()vapier2006-04-161-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14883 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - patch from Denis Vlasenko to add and use bb_xopen3()aldot2006-04-132-4/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14847 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - patch from Denis Vlasenko to add and use bb_xchdir()aldot2006-04-122-1/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14837 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - patch from Denis Vlasenko to add bb_xbind() and bb_xlisten()aldot2006-04-123-1/+36
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14836 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - patch from Denis Vlasenko to add and use bb_xdaemon()aldot2006-04-122-1/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14834 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - patch from Denis Vlasenko to add and use bb_xsocket() and to usealdot2006-04-123-1/+20
| | | | | | | | bb_xopen some more while at it. Also use shorter boilerplate while at it. git-svn-id: svn://busybox.net/trunk/busybox@14833 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add and use bb_opendir(), bb_xopendir().aldot2006-04-127-44/+53
| | | | | | | | | | | text data bss dec hex filename 889445 9392 1035784 1934621 1d851d busybox.gcc-4.2.orig 889297 9392 1035784 1934473 1d8489 busybox.gcc-4.2 889009 9820 1037860 1936689 1d8d31 busybox.gcc-4.1.orig 888817 9820 1037860 1936497 1d8c71 busybox.gcc-4.1 git-svn-id: svn://busybox.net/trunk/busybox@14830 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Rob Sullivan to consolidate crc32 table generation.landley2006-04-102-1/+41
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14785 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - include proper headers.aldot2006-04-051-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14756 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - move buffer allocation schemes to libbb.haldot2006-04-0313-76/+25
| | | | | | | - include the correct headers: applets need busybox.h while lib* need libbb.h git-svn-id: svn://busybox.net/trunk/busybox@14739 69ca8d6d-28ef-0310-b511-8ec308f3f277