aboutsummaryrefslogtreecommitdiff
path: root/include/busybox.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rename _BB_SUID_ALWAYS and NEVER into REQUIRE and DROP. No code changes.Denys Vlasenko2009-07-301-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make "pragma GCC visibility push(hidden)" less uglyDenis Vlasenko2009-04-091-9/+5
|
* Use intra-DSO calls when we build libbusybox. No-op for normal build.Denis Vlasenko2008-05-091-0/+7
| | | | | | | | | This was Bernhard Fischer' idea. text data bss dec hex filename 773549 7781 9740 791070 c121e busybox.t7/0_lib/libbusybox.so.1.11.0.svn_unstripped 769683 7397 9740 786820 c0184 busybox.t9t/0_lib/libbusybox.so.1.11.0.svn_unstripped
* shells: do not frocibly enable test, echo and kill _applets_,Denis Vlasenko2008-04-011-3/+0
| | | | | | | | | | | | | | | | | | | just build relevant source and use xxx_main functions. build system: add a special case when we have exactly one applet enabled (makes "true", "false", "basename" REALLY tiny). getopt32: do not use stdio. function old new delta getopt32 1385 1412 +27 make_device 1187 1200 +13 basename_main 120 127 +7 tcpudpsvd_main 1922 1926 +4 testcmd 5 - -5 echocmd 5 - -5 fuser_main 1243 1231 -12 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 4/1 up/down: 51/-22) Total: 29 bytes
* *: fix fallout from -Wunused-parameterDenis Vlasenko2008-03-171-2/+2
| | | | | | | | | | | | | | | | | | function old new delta bbunpack 358 366 +8 passwd_main 1070 1072 +2 handle_incoming_and_exit 2651 2653 +2 getpty 88 86 -2 script_main 975 972 -3 inetd_main 2036 2033 -3 dname_enc 377 373 -4 make_new_session 474 462 -12 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/5 up/down: 12/-24) Total: -12 bytes text data bss dec hex filename 797429 658 7428 805515 c4a8b busybox_old 797417 658 7428 805503 c4a7f busybox_unstripped
* *: add -Wunused-parameter; fix resulting breakageDenis Vlasenko2008-03-171-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta procps_scan 1265 1298 +33 aliascmd 278 283 +5 parse_file_cmd 116 120 +4 dname_enc 373 377 +4 setcmd 90 93 +3 execcmd 57 60 +3 count_lines 72 74 +2 process_command_subs 340 339 -1 test_main 409 407 -2 mknod_main 179 177 -2 handle_incoming_and_exit 2653 2651 -2 argstr 1312 1310 -2 shiftcmd 131 128 -3 exitcmd 46 43 -3 dotcmd 297 294 -3 breakcmd 86 83 -3 evalpipe 353 349 -4 evalcommand 1180 1176 -4 evalcmd 109 105 -4 send_tree 374 369 -5 mkfifo_main 82 77 -5 evalsubshell 152 147 -5 typecmd 75 69 -6 letcmd 61 55 -6 add_cmd 1190 1183 -7 main 891 883 -8 ash_main 1415 1407 -8 parse_stream 1377 1367 -10 alloc_procps_scan 55 - -55 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 7/21 up/down: 54/-148) Total: -94 bytes text data bss dec hex filename 797195 658 7428 805281 c49a1 busybox_old 797101 658 7428 805187 c4943 busybox_unstripped
* Further optimize applet tables; prettify build outputDenis Vlasenko2007-11-291-13/+16
| | | | | | | text data bss dec hex filename 775923 929 9100 785952 bfe20 busybox_old 775565 929 9100 785594 bfcba busybox_unstripped
* reorganize applet table. Eliminates pointers to names.Denis Vlasenko2007-11-281-23/+23
| | | | | | | | | Should be a big win for libbusybox. busybox wins too: text data bss dec hex filename 776524 929 9100 786553 c0079 busybox_old 775903 929 9100 785932 bfe0c busybox_unstripped
* fix a problem with two different applet_name'sDenis Vlasenko2007-10-111-1/+1
|
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-2/+12
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* Move applets/applet.c into libbb, allows to get rid of --whole-archiveDenis Vlasenko2007-10-101-0/+3
| | | | | (smaller code). Tested in static and shared mode.
* make --help work for "individual applets" too.Denis Vlasenko2007-10-071-1/+1
|
* libbusybox: move (possibly compressed) help stuff into libbusybox.Denis Vlasenko2007-10-071-1/+2
| | | | | Makes individual binaries much smaller.
* fix typo in commentDenis Vlasenko2007-04-111-2/+2
|
* Rename two config options:Denis Vlasenko2007-04-101-1/+1
| | | | | | | FEATURE_SH_STANDALONE_SHELL => FEATURE_SH_STANDALONE FEATURE_EXEC_PREFER_APPLETS => FEATURE_PREFER_APPLETS Make SH_STANDALONE depend on PREFER_APPLETS. getopt.c: more randomconfig-induced fixes
* make a few struct bb_applet members conditionalDenis Vlasenko2007-04-101-8/+18
| | | | | | rename sllep_and_die -> xfunc_die make fflush_stdout_and_exit NOFORK-safe fix some buglets found by randomconfig
* Improve STANDALONE_SHELL. "safe" applets are renamed NOEXEC appletsDenis Vlasenko2007-04-091-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* merge busybox.c into applets.cDenis Vlasenko2007-04-091-2/+1
|
* do not put all <applet>_main() declarationsDenis Vlasenko2007-02-031-12/+2
| | | | in busybox.h - this produces false dependencies
* Cleanup usage messages (-200 bytes).Denis Vlasenko2006-12-241-0/+1
| | | | | Remove busybox_main from applet table since it is called via separate check
* random tiny size savingsDenis Vlasenko2006-12-241-2/+3
|
* build system overhaulDenis Vlasenko2006-10-051-2/+0
|
* add ordering warning on enum LocationPaul Fox2006-06-091-0/+1
|
* Header file cleanup. platform.h apparently needs to be included early on so itRob Landley2006-05-311-27/+0
| | | | | | | | | | | 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.
* - move libc checks from busybox.h to platform.hBernhard Reutner-Fischer2006-05-261-8/+0
| | | | | | | - 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"
* - move buffer allocation schemes to libbb.hBernhard Reutner-Fischer2006-04-031-17/+0
| | | | - include the correct headers: applets need busybox.h while lib* need libbb.h
* moved BB_BANNER to applets/version.c file: make kernel like version, "Vladimir N. Oleynik"2006-02-161-5/+1
| | | | removed depend loop: busybox.h depend with BB_BT, and all sources depend with busybox.h
* - add platform.h.Bernhard Reutner-Fischer2006-01-221-20/+3
| | | | - use shorter boilerplate while at it.
* reorder include <sys/types.h> and <sys/types.h>."Vladimir N. Oleynik"2005-09-291-1/+1
|
* - make sure to include dmalloc.h at the very end of busybox.h or libbb.h.Bernhard Reutner-Fischer2005-09-211-4/+4
|
* #ifdef reduction infrastructure, based on an argument between Shaun Jackman,Rob Landley2005-07-271-1/+1
| | | | | | | | | | | | | | | | | | | 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.)
* newlib fixe from Shaun JackmanMike Frysinger2005-03-041-4/+4
|
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-2/+2
|
* Make sure stdlib.h is always included before dmalloc.h to avoid problemsManuel Novoa III2004-02-051-0/+1
| | | | parsing problems.
* Patch from Bastian Blank, allow the buildtime to be overriden with aGlenn L McGrath2004-01-131-0/+4
| | | | | different string, used by the debian busybox-cvs to specify the debian date based version number.
* Remove remaining libc5 support codeEric Andersen2003-07-221-11/+6
|
* Patch from mathuria, compatability with solarisGlenn L McGrath2003-02-081-0/+2
|
* Remove unwanted comments, run through indentGlenn L McGrath2002-08-221-11/+10
|
* Implement two types of suid/sgid support for BusyBox:Robert Griebl2002-06-041-2/+10
| | | | | | 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]
* Try to pull in PATH_MAX properlyEric Andersen2002-03-161-0/+4
|
* If PATH_MAX isn't defined, define it outselvesEric Andersen2002-01-261-1/+3
|
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-241-14/+14
| | | | -Erik
* Add a RELEASE_BB_BUFFER macro and use it to fix a memory leak in syslogd.cMatt Kraai2001-07-191-0/+3
| | | | (noted by Adam Slattery).
* Move applet_name declaration from busybox.h to libbb.h.Matt Kraai2001-04-241-2/+0
|
* Applied patch from Larry Doolittle to give users the third option of puttingMark Whitley2001-04-201-0/+5
| | | | buffers in BSS (in addition to stack and heap).
* Use date -u instead of date --utc and consolidate version string.Matt Kraai2001-04-121-0/+2
| | | | Patch by Larry Doolittle <ldoolitt@recycle.lbl.gov>.
* In fact, socklen_t *is* defined by libc5.Mark Whitley2001-03-271-6/+0
|
* Convert utility.c into libbb.a. It is now a whole pile of .cEric Andersen2001-03-161-180/+13
| | | | | files. Clean up the resulting damage and fix up the makefile. -Erik
* Amazing the difference between an "and" and an "or".Eric Andersen2001-03-141-1/+2
|
* Some updates for libc5Eric Andersen2001-03-141-0/+8
|