aboutsummaryrefslogtreecommitdiff
path: root/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add ordering warning on enum Locationpgf2006-06-091-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15347 69ca8d6d-28ef-0310-b511-8ec308f3f277
* made "test" an ash built-in.pgf2006-06-081-0/+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
* need prototype for new vfork_daemon()vapier2006-06-071-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15335 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix from Tito to read from stdin only when it's not a tty.landley2006-06-071-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15328 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - reuse strings and messages. Saves about 600Baldot2006-06-071-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15325 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add applet taskset to set/retrieve the CPU affinity of a processaldot2006-06-072-0/+18
| | | | | | | | | | | | | text data bss dec hex filename 584 0 0 584 248 taskset.o.gcc-2.95 509 0 0 509 1fd taskset.o.gcc-3.3 505 0 0 505 1f9 taskset.o.gcc-3.4 506 0 0 506 1fa taskset.o.gcc-4.0 498 0 0 498 1f2 taskset.o.gcc-4.1 495 0 0 495 1ef taskset.o.gcc-4.2-HEAD git-svn-id: svn://busybox.net/trunk/busybox@15315 69ca8d6d-28ef-0310-b511-8ec308f3f277
* only check __GNU_LIBRARY__ if it is actually definedvapier2006-06-061-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15292 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Header cleanup on two more networking files (move libbb.h to the top andlandley2006-06-051-16/+13
| | | | | | | | remove #includes that libbb.h already does), plus a minor cleanup of libbb.h to move #includes towards the top of the file where we can see 'em. git-svn-id: svn://busybox.net/trunk/busybox@15287 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix fdflish typo (reported by erik hovland)pgf2006-06-021-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15262 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Shaun Jackman pointed out that KERNEL_VERSION() is used without guards, solandley2006-06-011-2/+0
| | | | | | | defining it in a guard is silly. git-svn-id: svn://busybox.net/trunk/busybox@15258 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The common case APPLET() macro only needs three arguments.landley2006-06-011-232/+232
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15257 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Tito to remove long options from hdparm.landley2006-05-311-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15254 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Header file cleanup. platform.h apparently needs to be included early on so itlandley2006-05-312-36/+21
| | | | | | | | | | | | | | can figure out what header files to include, and override stuff that comes later. But applets shouldn't include platform.h directly, they should include busybox.h or libbb.h. Since busybox.h already includes libbb.h, move libbb.h to the top of busybox.h and platform.h near the top of libbb.h (right after bbconfig.h, which is something platform.h also needs access to). While we're at it, move some stuff from busybox.h to libbb.h so we have one big file to audit/clean up/try to make sense of instead of many. git-svn-id: svn://busybox.net/trunk/busybox@15252 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add catv (separate applet instead of cat -v). Also cleanup cat.c comments,landley2006-05-312-0/+8
| | | | | | | | | | | | | | | | | | | | | the following of which (from cat.c) belongs in svn history instead of the source code: /* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org) * * This is a new implementation of 'cat' which aims to be SUSv3 compliant. * * Changes from the previous implementation include: * 1) Multiple '-' args are accepted as required by SUSv3. The previous * implementation would close stdin and segfault on a subsequent '-'. * 2) The '-u' options is required by SUSv3. Note that the specified * behavior for '-u' is done by default, so all we need do is accept * the option. */ git-svn-id: svn://busybox.net/trunk/busybox@15251 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - s/defined(__uClinux__)/BB_NOMMU/aldot2006-05-311-1/+1
| | | | | | | | | | 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
* - conditionally define BB_NOMMUaldot2006-05-311-4/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15243 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Put parentheses around some of the SWAP() macros, as pointed out by Peterlandley2006-05-301-6/+6
| | | | | | | Kjellerstedt. git-svn-id: svn://busybox.net/trunk/busybox@15226 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add SWAP_LE?? and SWAP_BE?? macros, and make things use them. Converts valueslandley2006-05-291-5/+16
| | | | | | | | 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
* This is not C++.landley2006-05-291-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15214 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove _() and N_() from platform.h. #define them as NOP macros in the twolandley2006-05-291-12/+4
| | | | | | | | | files still using them. I didn't remove them from e2fsck.c to avoid stomping pending cleanup patches from Garrett, and I didn't bother to remove them from fdisk.c because that entire file needs to be rewritten from scratch. git-svn-id: svn://busybox.net/trunk/busybox@15212 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix hdparm to use PRIu64 instead of typecasting to long long (which is 128 bitslandley2006-05-281-0/+1
| | | | | | | on 64 bit platforms), and move #include <inttypes.h> to libbb.h. git-svn-id: svn://busybox.net/trunk/busybox@15208 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move portability stuff to platform.h, and clean up adjtimex.c a bit whilelandley2006-05-271-0/+17
| | | | | | | I'm in the area. git-svn-id: svn://busybox.net/trunk/busybox@15204 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Consolidate #include <sys/time.h> so libbb.h does it.landley2006-05-271-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15203 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change llist_add_* to take the address of the list rather than returning the newlandley2006-05-261-2/+2
| | | | | | | 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-2/+2
| | | | | | | 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-4/+6
| | | | | | | - 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
* - move llist to top of file so we can potentially use it in all prototypes ↵aldot2006-05-261-9/+10
| | | | | | easily git-svn-id: svn://busybox.net/trunk/busybox@15189 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add workaround for tar being broken since it uses a non-portable constant.aldot2006-05-261-0/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15187 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - move libc checks from busybox.h to platform.haldot2006-05-262-12/+101
| | | | | | | | | | - add ATTRIBUTE_ALWAYS_INLINE, endian handling for DEC UNIX, some more compiler dependent defines to platform.h - add conditional bb_setpgrp define to platform.h - remove superfluous specifying args from "#define fdprintf dprintf" git-svn-id: svn://busybox.net/trunk/busybox@15183 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix spelling mistakesvapier2006-05-261-9/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15177 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rich Felker suggested removing dprintf() from watch, and one thing led tolandley2006-05-251-0/+2
| | | | | | | | | 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
* New version of nohup that's much smaller, less paranoid, consistent,landley2006-05-211-0/+2
| | | | | | | vaguely portable, and licensed GPLv2 "or later". git-svn-id: svn://busybox.net/trunk/busybox@15155 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - backout erroneously checked in snippet..aldot2006-05-191-2/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15144 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/+1
| | | | | | | | 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-191-0/+3
| | | | | | | - use shorter boilerplate while at it git-svn-id: svn://busybox.net/trunk/busybox@15141 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix indenting in help output for ifconfigvapier2006-05-191-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15135 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - single KERNEL_VERSION(a,b,c) macro in platform.haldot2006-05-192-1/+8
| | | | | | | | - 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
* Rob Sullivan cleaned up the longstanding patch from Hideki IWAMOTO to addlandley2006-05-161-5/+9
| | | | | | | | | ibs and obs support to dd, and made it configurable. I cleaned it up a bit further and moved conv= into the same config option. git-svn-id: svn://busybox.net/trunk/busybox@15090 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make md5 calculation always go through an the buffer so that A) we don'tlandley2006-05-161-1/+1
| | | | | | | | | | | | | | 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
* implement -print0 for findpgf2006-05-121-1/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15076 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fiddling with llist to make memory management easier. Specifically, thelandley2006-05-081-2/+2
| | | | | | | | 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
* add back in udhcp supportvapier2006-05-081-0/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15031 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The udhcp was deleted from busybox in 14634. Bolting an external project tolandley2006-05-071-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | the side of the tree doesn't _COUNT_, and I will not ship it. Udhcp was deleted shortly after I posted my philosophy for what should and shouldn't go into busybox: http://www.busybox.net/lists/busybox/2006-March/019484.html I complained about the change t the time. I've complained repeatedly since. But nobody felt like fixing it. External dependencies are something to be minimized. I don't care about the ability for packages to build outside busybox: something is either part of busybox, or it isn't. If I convert any part of the external udhcp repository to use libbb, I've broken the external package. Any random cleanups that touch that directory suddenly have to worry about external dependencies that are NOT OUR PROBLEM. Therefore, that directory is not and cannot be part of busybox. Wishful thinking isn't going to change that. I will not ship something I can't maintain. I'll try to get a new dhcp client and server in before the ship window closes, but I have a half-dozen other projects pending. I'm sorry this happened, but I'm not the one who removed it, and I'm not the one who ignored the project maintainer's repeated complaints about the situation for the next month and a half. git-svn-id: svn://busybox.net/trunk/busybox@15026 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove bb_strlen() in favor of -fno-builtin-strlen. Saves as many byteslandley2006-05-071-5/+0
| | | | | | | | 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
* fix udhcp againvapier2006-05-061-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15019 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Dennis Vlasenko simplifying the APPLET macros.landley2006-05-051-260/+260
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15006 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Not quite compiler independent, but we've never tried to be gcc independentlandley2006-05-042-17/+5
| | | | | | | | 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
* It was sitting there, in the patches directory, for years. It was delete itlandley2006-05-042-3/+7
| | | | | | | | or apply it. It's small, simple, evil, part of SUSv3, and we can switch it off. git-svn-id: svn://busybox.net/trunk/busybox@14999 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More usage.h cleanups, with collateral changes to httpd. Specifically,landley2006-04-281-72/+14
| | | | | | | | most of our CONFIG entries switch stuff on instead of off when enabled, so fix the gratuitously reversed INETD thing. git-svn-id: svn://busybox.net/trunk/busybox@14952 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Dennis Vlasenko to add the option to compress help text.landley2006-04-271-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14949 69ca8d6d-28ef-0310-b511-8ec308f3f277