aboutsummaryrefslogtreecommitdiff
path: root/include/busybox.h
AgeCommit message (Collapse)Author
2007-04-09Improve STANDALONE_SHELL. "safe" applets are renamed NOEXEC appletsDenis Vlasenko
and now this fact is recorded in applets.h, not ash.c. Several fixes to "--help + STANDALONE_SHELL" scenarios. function old new delta run_current_applet_and_exit - 355 +355 arith 2064 2073 +9 refresh 1148 1156 +8 getopt32 1068 1073 +5 telnet_main 1510 1514 +4 md5_sha1_sum_main 565 566 +1 xstrtoul_range_sfx 255 251 -4 packed_usage 22523 22514 -9 tryexec 255 203 -52 static.safe_applets 152 - -152 .rodata 131320 131128 -192 run_applet_by_name 869 506 -363 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 5/5 up/down: 382/-772) Total: -390 bytes ./busybox ash -c 'i=20000; while test $i != 0; do touch z; i=$((i-1)); done' runs more than twice as fast with STANDALONE_SHELL versus without.
2007-04-09merge busybox.c into applets.cDenis Vlasenko
2007-02-03do not put all <applet>_main() declarationsDenis Vlasenko
in busybox.h - this produces false dependencies
2006-12-24Cleanup usage messages (-200 bytes).Denis Vlasenko
Remove busybox_main from applet table since it is called via separate check
2006-12-24random tiny size savingsDenis Vlasenko
2006-10-05build system overhaulDenis Vlasenko
2006-06-09add ordering warning on enum LocationPaul Fox
2006-05-31Header file cleanup. platform.h apparently needs to be included early on so itRob Landley
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.
2006-05-26- move libc checks from busybox.h to platform.hBernhard Reutner-Fischer
- 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"
2006-04-03- move buffer allocation schemes to libbb.hBernhard Reutner-Fischer
- include the correct headers: applets need busybox.h while lib* need libbb.h
2006-02-16moved BB_BANNER to applets/version.c file: make kernel like version, "Vladimir N. Oleynik"
removed depend loop: busybox.h depend with BB_BT, and all sources depend with busybox.h
2006-01-22- add platform.h.Bernhard Reutner-Fischer
- use shorter boilerplate while at it.
2005-09-29reorder include <sys/types.h> and <sys/types.h>."Vladimir N. Oleynik"
2005-09-21- make sure to include dmalloc.h at the very end of busybox.h or libbb.h.Bernhard Reutner-Fischer
2005-07-27#ifdef reduction infrastructure, based on an argument between Shaun Jackman,Rob Landley
Rob Landley, and others. Currently CONFIG options are defined or undefined, so we chop out code with #ifdefs, ala: #ifdef CONFIG_THING stuff(); #endif This creates a new header file, bb_config.h, which sets the CONFIG entry to 1 or 0, and lets us do: if(CONFIG_THING) stuff(); And let the compiler do dead code elimination to get rid of it. (Note: #ifdef will still work because for the 1 case it's a static const int, not a #define.)
2005-03-04newlib fixe from Shaun JackmanMike Frysinger
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2004-02-05Make sure stdlib.h is always included before dmalloc.h to avoid problemsManuel Novoa III
parsing problems.
2004-01-13Patch from Bastian Blank, allow the buildtime to be overriden with aGlenn L McGrath
different string, used by the debian busybox-cvs to specify the debian date based version number.
2003-07-22Remove remaining libc5 support codeEric Andersen
2003-02-08Patch from mathuria, compatability with solarisGlenn L McGrath
2002-08-22Remove unwanted comments, run through indentGlenn L McGrath
2002-06-04Implement two types of suid/sgid support for BusyBox:Robert Griebl
1) tinylogin like with compile time selection and a chown root.root 2) Runtime configurable via /etc/busybox.conf (docu is in the works) [Parts of this patch may overlap with my other two patches]
2002-03-16Try to pull in PATH_MAX properlyEric Andersen
2002-01-26If PATH_MAX isn't defined, define it outselvesEric Andersen
2001-10-24Major rework of the directory structure and the entire build system.Eric Andersen
-Erik
2001-07-19Add a RELEASE_BB_BUFFER macro and use it to fix a memory leak in syslogd.cMatt Kraai
(noted by Adam Slattery).
2001-04-24Move applet_name declaration from busybox.h to libbb.h.Matt Kraai
2001-04-20Applied patch from Larry Doolittle to give users the third option of puttingMark Whitley
buffers in BSS (in addition to stack and heap).
2001-04-12Use date -u instead of date --utc and consolidate version string.Matt Kraai
Patch by Larry Doolittle <ldoolitt@recycle.lbl.gov>.
2001-03-27In fact, socklen_t *is* defined by libc5.Mark Whitley
2001-03-16Convert utility.c into libbb.a. It is now a whole pile of .cEric Andersen
files. Clean up the resulting damage and fix up the makefile. -Erik
2001-03-14Amazing the difference between an "and" and an "or".Eric Andersen
2001-03-14Some updates for libc5Eric Andersen
2001-03-13Applied patch from Christophe Boyanique to add -i support to rm.Mark Whitley
2001-03-12Applied patch from Gennady Feldman to split up syslogd.c into syslogd andMark Whitley
klogd (as it should be).
2001-03-08Add in 'trim' routine. Fix up sh.c so it works when wordexpEric Andersen
is not available. -Erik
2001-03-07Changed KILOBYTE, MEGABYTE, and GIGABYTE from #define to enum.Mark Whitley
2001-03-07Some minor cleanups to df.c. Also, with Erik's blessing, changed name ofMark Whitley
'format' function to 'make_human_readable_str'.
2001-03-01Applied patch from David Douthitt to fix build error in df.c whenMark Whitley
BB_FEATURE_HUMAN_READABLE was disabled.
2001-02-27Patch from Vladimir N. Oleynik to save 128 bytes by moving errorEric Andersen
checking for some my_* functions to utility.c
2001-02-22Turn off the printf attribute for the ?error_msg* functions, since itEric Andersen
is ok to pass them a NULL, unlike printf. This silences a pointless warning message. -Erik
2001-02-22Another update to the way usage messages are done by Evin RobertsonEric Andersen
<nitfol@my-deja.com>, which makes things just a little bit smaller, but makes usage.h more readable/maintainable IMHO. -Erik
2001-02-14This patch, put together by Manuel Novoa III, is a merge of workEric Andersen
done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
2001-02-14Add in ifconfig and routeEric Andersen
2001-02-14Several cleanups from Manuel Novoa III.Eric Andersen
get_kernel_revision -- size reduction NOTE: may want to combine with get_kernel_version in insmod??? parse_mode -- size reduction, multiple settings with "," now work correctly, sticky-bit setting now implemented process_escape_sequence -- size reduction, octal code to big for char bug fixed format -- size reduction, val > LONG_MAX and hr = 1 printing bug fixed (was %ld),
2001-02-05Make suffix_mult structures const. Thanks to Vladimir N. Oleynik.Matt Kraai
2001-02-01Create find_applet_by_name function. Save 32 bytes.Matt Kraai
2001-02-01Fix wget error message and add (and use) chomp library function.Matt Kraai
2001-01-27Fix header file usage -- there were many unnecessary header files included inEric Andersen
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