aboutsummaryrefslogtreecommitdiff
path: root/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
* moved BB_BANNER to applets/version.c file: make kernel like version, vodz2006-02-161-5/+1
| | | | | | removed depend loop: busybox.h depend with BB_BT, and all sources depend with busybox.h git-svn-id: svn://busybox.net/trunk/busybox@14080 69ca8d6d-28ef-0310-b511-8ec308f3f277
* full removed config.h, use bb_config.h onlyvodz2006-02-151-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14055 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New USE() macroslandley2006-02-131-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For each CONFIG_SYMBOL, include/bb_config.h now has both ENABLE_SYMBOL and USE_SYMBOL(x). ENABLE_SYMBOL is still always defined (1 or 0) so that if(ENABLE) should optimize out when it's zero. The USE_SYMBOL(X) will only splice in X if the symbol is defined, otherwise it'll be empty. Thus we can convert this: #ifdef CONFIG_ARGS opt = bb_getopt_ulflags(argc, argv, "ab:c" #ifdef CONFIG_THINGY "d:" #endif , &bvalue #ifdef CONFIG_THINGY , &thingy #endif ); #endif into this: if (ENABLE_ARGS) { opt = bb_getopt_ulflags(argc, argv, "ab:c" USE_THINGY("d:"), &bvalue USE_THINGY(, &thingy)); } And it should produce the same code. Unlike the old versions in include/_usage.h, the new USE_SYMBOL(x) can handle commas in its arguments (as shown above). (The _usage.h file is obsolete and no longer generated.) Nobody should need to include config.h directly anymore, bb_config.h should define all the configuration stuff we need. Someday, the CONFIG_SYMBOL versions should go away in favor of ENABLE_SYMBOL and USE_SYMBOL(). Thanks to vodz for the new version of bb_mkdep.c that works with function macros. git-svn-id: svn://busybox.net/trunk/busybox@13955 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fixup whitespace in awk help outputvapier2006-02-061-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13861 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix mdev help outputvapier2006-02-021-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13798 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add and use ATTRIBUTE_ALIGNED(num_bytes)aldot2006-01-311-0/+4
| | | | | | | - remove unused parameter pindex from fdisk.c, xbsd_initlabel() git-svn-id: svn://busybox.net/trunk/busybox@13751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Re-add initrd support, unify halt/reboot/poweroff, add -n and -f options.landley2006-01-302-11/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13701 69ca8d6d-28ef-0310-b511-8ec308f3f277
* new applet. Thanks Roberto A. Fogliettavodz2006-01-252-0/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13592 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just whitespacetimr2006-01-251-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13584 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Testing CONFIG_SORT_BIG to display the help for the big version of sort isn'tlandley2006-01-231-1/+4
| | | | | | | much use when the symbol is CONFIG_FEATURE_SORT_BIG. git-svn-id: svn://busybox.net/trunk/busybox@13530 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add platform.h.aldot2006-01-223-55/+93
| | | | | | | - use shorter boilerplate while at it. git-svn-id: svn://busybox.net/trunk/busybox@13494 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Aurelien Jacobs to add unlzma. (A new decompression type,landley2006-01-203-1/+28
| | | | | | | see www.7-zip.org) git-svn-id: svn://busybox.net/trunk/busybox@13454 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - Document -m, -c, -s and provide a default shell for standalone build.aldot2006-01-191-1/+3
| | | | | | | | - Wrap overlong lines plus a few whitespace fixes. - add GPL header. git-svn-id: svn://busybox.net/trunk/busybox@13433 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - shared libbusybox.aldot2006-01-151-1/+1
| | | | | | | | - IMA compilation option (aka IPO, IPA,..) Please holler if i broke something.. git-svn-id: svn://busybox.net/trunk/busybox@13346 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add find's "-mmin" option. configurable.pgf2006-01-131-1/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13271 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito writes:vapier2006-01-081-1/+1
| | | | | | | | | | | | | | | | | | Somehow while applying the bb_do_delay patch a change slipped in libbb.h that broke compilation. libbb.h Line 355 extern char bb_path_mtab_file[]; This conflicts with mtab_file.c #if defined(CONFIG_FEATURE_MTAB_SUPPORT) const char bb_path_mtab_file[] = "/etc/mtab"; #else const char bb_path_mtab_file[] = "/proc/mounts"; #endif git-svn-id: svn://busybox.net/trunk/busybox@13161 69ca8d6d-28ef-0310-b511-8ec308f3f277
* patch from tito: consolidate delay functions as bb_do_delay()landley2006-01-061-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13135 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make mount usage a bit more tersevapier2006-01-041-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* When you went "losetup -d /dev/loop0 /dev/loop1" the error message was strange.landley2005-12-211-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@12971 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Nothing to see here. Move along.landley2005-12-132-2/+27
| | | | | | | | | | | | Not buying it, eh? I know I said new features before 1.1, but, well... (I was weak!) The config file and hotplug modes aren't implemented yet. Might take a stab at those tomorrow. (I _should_ go back to focusing on the bug triage list.) git-svn-id: svn://busybox.net/trunk/busybox@12856 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Yann E. Morin's update to modprobe usage.landley2005-12-111-4/+60
| | | | git-svn-id: svn://busybox.net/trunk/busybox@12837 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add build options to control SuS compatability, allows numeric bug12005-12-111-1/+1
| | | | | | | | option handling to be disabled. Defaults to enabled, so no changes in default behaviour git-svn-id: svn://busybox.net/trunk/busybox@12835 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito is using broken kernel headers that pollute the namespace with everylandley2005-12-061-2/+2
| | | | | | | | | | | | | CONFIG_ symbol in the kernel, and this clashes with busybox's CONFIG_TR and CONFIG_WATCHDOG, causing applets.h to barf if they're not switched on (since the broken headers don't affect kconfig or the makefiles). Since such broken kernel headers are common enough to crop up every few months, a simple work around is to move TR and WATCHDOG from CONFIG_ to ENABLE_ early. git-svn-id: svn://busybox.net/trunk/busybox@12707 69ca8d6d-28ef-0310-b511-8ec308f3f277
* restore compare_string_array new interface (make broken by landley)vodz2005-12-061-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@12690 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix losetup so that it A) actually works again, B) has much better errorlandley2005-11-292-68/+19
| | | | | | | | | | | messages, C) can show the current association (if any) when called with only one argument. Update the documentation a lot too. Remind me to add a test suite for this thing. I think I've figured out how to handle root-only testsuites... git-svn-id: svn://busybox.net/trunk/busybox@12582 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add "-C" format to hexdumppgf2005-11-281-1/+2
| | | | | | | | | | | | | fixes bug #113 and satisfies a personal need at the same time. output compares identically to util-linux version. (with exception of whitespace differences on last lines of output with non-uniform length, which are neither fixed nor worsened by this change.) git-svn-id: svn://busybox.net/trunk/busybox@12560 69ca8d6d-28ef-0310-b511-8ec308f3f277
* change the interface of libbb/compare_string_array (unsigned short to int), ↵vodz2005-11-261-1/+1
| | | | | | usaging for e2fsprogs/fsck git-svn-id: svn://busybox.net/trunk/busybox@12535 69ca8d6d-28ef-0310-b511-8ec308f3f277
* more use const for interface of libbb/compare_string_array, example usage ↵vodz2005-11-261-1/+1
| | | | | | for e2fsprogs/fsck git-svn-id: svn://busybox.net/trunk/busybox@12534 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update to modprobe usage from Yann E. Morinlandley2005-11-231-4/+60
| | | | git-svn-id: svn://busybox.net/trunk/busybox@12488 69ca8d6d-28ef-0310-b511-8ec308f3f277
* telnetd -b (bind to specific address) support from Iuri Gomes Diniz.landley2005-11-101-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@12205 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add BB_APPLET_RUNLEVEL used by emdebian via /etc/init.d/rc.aldot2005-10-282-0/+15
| | | | | | | Note that we leave the buggy CONFIG_* namespace now, so please fix any applet you thouch. git-svn-id: svn://busybox.net/trunk/busybox@11965 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New applet, fuser, from Tony J. White. (Needs some cleanup.)landley2005-10-282-0/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11954 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add a switch_root utility (like kconfig's utils/run_init.c, although notlandley2005-10-272-0/+9
| | | | | | | | actuall using any of that code). This is needed because pivot_root doesn't work right under initramfs. (See the menuconfig help.) git-svn-id: svn://busybox.net/trunk/busybox@11935 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add --no-same-owner and --no-same-permissions options to tar.landley2005-10-271-5/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11933 69ca8d6d-28ef-0310-b511-8ec308f3f277
* common BUFSIZ BSS buffer, small reduce code, data and bssvodz2005-10-151-0/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11867 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_dev_nullvodz2005-10-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11845 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - pidof(8): make -s optional and optional -o; closes #168aldot2005-10-061-3/+24
| | | | | | | first cut. git-svn-id: svn://busybox.net/trunk/busybox@11793 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add llist_free_one() and llist_free() to libbb; Add a bit of documentation.aldot2005-10-061-1/+13
| | | | | | | | | | - change llist_add_to_end as proposed by vodz in http://busybox.net/lists/busybox/2005-September/016411.html - remove unneeded includes, add short boilerplate and copyright to llist.c - move COMM_LEN from find_pid_by_name to libbb.h and use it in procps_status_t - add reverse_pidlist() to find_pid_by_name. Will be needed for pidof. git-svn-id: svn://busybox.net/trunk/busybox@11785 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add option 'w' to ps (wide output, optional feature defaults to off).aldot2005-10-041-8/+2
| | | | | | | | | | | | | | - move to ENABLE_ and use shorter boilerplate. sizes without selinux-support: text data bss dec hex filename 356 0 0 356 164 procps/ps.o.with-w 300 0 0 300 12c procps/ps.o.no-w 302 0 0 302 12e procps/ps.o.oorig git-svn-id: svn://busybox.net/trunk/busybox@11751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add prototype for llist_add_to_end to libbb.haldot2005-10-041-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11750 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add find -exec support from Rob Sullivan, and convert CONFIG_ to ENABLE_landley2005-10-041-1/+10
| | | | | | | while we're in the area. git-svn-id: svn://busybox.net/trunk/busybox@11749 69ca8d6d-28ef-0310-b511-8ec308f3f277
* change interface to bb_xasprintf() - more perfect for me.vodz2005-09-291-2/+1
| | | | | | | ln.c: error_msg(str)->error_msg(%s, str) - remove standart "feature" for hackers reduce 100 bytes don't care in sum git-svn-id: svn://busybox.net/trunk/busybox@11694 69ca8d6d-28ef-0310-b511-8ec308f3f277
* reorder include <sys/types.h> and <sys/types.h>.vodz2005-09-291-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11686 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cristian Ionescu-Idbohrn says: touchup whitespace/displayvapier2005-09-241-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11637 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito switched option parsing over to switch umount over to bb_getopt_ulflags().landley2005-09-241-2/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* import the very fat e2fsck/fsck appletsvapier2005-09-242-0/+44
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11623 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add a attribute_noreturn macrovapier2005-09-241-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11619 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make e2label and findfs optionalvapier2005-09-241-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11616 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add missing descriptions of supported argumentsaldot2005-09-231-4/+26
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11595 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add support for setting the dhcp vendor class option (option 60). pgf2005-09-221-1/+2
| | | | | | | | | udhcpc now has a -V (--vendorclass), which will replace the default "udhcpRELEASE" string in this option. git-svn-id: svn://busybox.net/trunk/busybox@11582 69ca8d6d-28ef-0310-b511-8ec308f3f277