213cc00445
- add note about ingroup and is_a_group_member
Bernhard Reutner-Fischer
2006-06-04 17:58:19 +00:00
863073da08
- add note about removing superfluous fmt specifiers
Bernhard Reutner-Fischer
2006-06-04 16:05:02 +00:00
395010b1f0
- note to cleanup fprintf(2,...) -> bb_error_msg(...) and perror("bar") -> bb_perror_msg("bar");
Bernhard Reutner-Fischer
2006-06-04 15:37:59 +00:00
1b9d7c9aa9
- use bb_msg_{read,write}_error where appropriate. text data bss dec hex filename 825015 9100 645216 1479331 1692a3 busybox.old 824919 9100 645216 1479235 169243 busybox
Bernhard Reutner-Fischer
2006-06-03 22:45:37 +00:00
a3d4bf38b0
- use bb functions instead of handrolling stuff. - add XXX question about supposedly superfluous else clause text data bss dec hex filename 5918 0 0 5918 171e editors/sed.o.orig 5901 0 0 5901 170d editors/sed.o
Bernhard Reutner-Fischer
2006-06-03 21:40:11 +00:00
e84f4343b2
Remove #ifdeffed out code, both KEEP_UNUSED and #if 0.
Rob Landley
2006-06-03 21:23:20 +00:00
5084c78cbe
- remove superfluous call of stack_machine(0) upon exit.
Bernhard Reutner-Fischer
2006-06-03 21:19:09 +00:00
5f6d67b7d6
- no need to have timer_duration in the data section. - cleanup a little bit while at it.
Bernhard Reutner-Fischer
2006-06-03 20:53:18 +00:00
b1312c9125
- use bb_msg_write_error in 3 places - whitespace
Bernhard Reutner-Fischer
2006-06-03 20:09:02 +00:00
c89982dcd7
- move #include busybox.h to the very top so we pull in the config and eventual platform specific includes in early.
Bernhard Reutner-Fischer
2006-06-03 19:49:21 +00:00
deda6a5c0d
- move #include busybox.h to the very top so we pull in the config and eventual platform specific includes in early. - remove two supposedly superfluous newlines from ...error_msg() in modprobe and use shorter boilerplate while at it.
Bernhard Reutner-Fischer
2006-06-03 19:35:15 +00:00
2c351a8f98
- patch from Yann E. Morin: makes modprobe understand shell patterns (especially '*') in module aliases, such as: "alias usb:v0582p0075d*dc*dsc*dp*ic*isc*ip* snd_usb_audio"
Bernhard Reutner-Fischer
2006-06-03 19:08:49 +00:00
5c0ae06ef1
- No options should set the current system time. Shaun Jackman writes: A bug introduced in svn 11946 broke rdate. It no longer sets the current system time when no options are specified. The options have the opposite sense from what one might think, and, oddly enough, -ps is intentionally a no-op.
Bernhard Reutner-Fischer
2006-06-03 10:24:20 +00:00
9a990aaba8
Patch from Atsushi Nemoto: This patch make depmod.pl more robust in cross environment. If native nm did not recognize target's object, you can override it with NM environment variable.
Rob Landley
2006-06-02 21:30:40 +00:00
e15d7573a1
- move #include busybox.h to the very top so we pull in the config and eventual platform specific includes in early.
Bernhard Reutner-Fischer
2006-06-02 20:56:16 +00:00
ecae66ac16
Header cleanup: don't #include headers that libbb.h already includes.
Rob Landley
2006-06-02 20:53:38 +00:00
ff97ee9abd
#ifdef reduction.
Rob Landley
2006-06-02 19:03:01 +00:00
3132e9d830
use xmalloc()
Mike Frysinger
2006-06-02 06:30:30 +00:00
f0327f8e98
fix fdflish typo (reported by erik hovland)
Paul Fox
2006-06-02 03:37:16 +00:00
b5353a20f3
- look at bb_applet_name. Should close bugs #892 and #893 also restructure code a bit so the fix only adds 1 byte..
Bernhard Reutner-Fischer
2006-06-01 18:30:42 +00:00
d04e9b8130
- shrink logread a bit. text data bss dec hex filename 862 26 188 1076 434 logread.o.orig 825 26 188 1039 40f logread.o
Bernhard Reutner-Fischer
2006-06-01 14:36:14 +00:00
d112f8fa5e
make halt and poweroff messages more accurate (i.e., claim "we're about to", rather than "it's done", and combine with reboot handler to save space.
Paul Fox
2006-06-01 13:17:49 +00:00
8fc32d9326
Shaun Jackman pointed out that KERNEL_VERSION() is used without guards, so defining it in a guard is silly.
Rob Landley
2006-06-01 00:52:30 +00:00
317a45cb62
The common case APPLET() macro only needs three arguments.
Rob Landley
2006-06-01 00:51:38 +00:00
9b1857f79f
Bugfix from Shaun Jackman: don't attempt to write 64 bytes and then fail if the write wasn't 192 bytes long.
Rob Landley
2006-05-31 23:54:50 +00:00
d5b9b60fa5
Add CONFIG_NITPICK. (And tweak a couple other help entries while I'm there.)
Rob Landley
2006-05-31 23:23:42 +00:00
0620841758
Patch from Tito to remove long options from hdparm.
Rob Landley
2006-05-31 22:52:57 +00:00
c8b360ebb7
Use BB endianness macro.
Rob Landley
2006-05-31 22:24:33 +00:00
b623a542df
Header file cleanup. platform.h apparently needs to be included early on so it 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).
Rob Landley
2006-05-31 22:09:03 +00:00
8abbee474c
Add catv (separate applet instead of cat -v). Also cleanup cat.c comments, the following of which (from cat.c) belongs in svn history instead of the source code:
Rob Landley
2006-05-31 19:36:04 +00:00
9a5686b605
- fix IMA compile error i introduced when adding this untested snippet.
Bernhard Reutner-Fischer
2006-05-31 18:57:56 +00:00
dac033e98c
ha! a scratch-buffer! ;) put the isdigit hack into it to help landley out..
Bernhard Reutner-Fischer
2006-05-31 15:36:20 +00:00
f9437aaf5b
- make getopt_ulflags aware of CONFIG_GETOPT_LONG
Bernhard Reutner-Fischer
2006-05-31 14:12:51 +00:00
8d3a6f7aaf
- add CONFIG_FEATURE_WGET_LONG_OPTIONS
Bernhard Reutner-Fischer
2006-05-31 14:11:38 +00:00
f3ac9ebc8e
- convert xcalloc(1,x) to xzalloc
Bernhard Reutner-Fischer
2006-05-31 13:31:16 +00:00
595159f38c
- shrink klogd a bit text data bss dec hex filename 569 0 0 569 239 sysklogd/klogd.o.orig 537 0 0 537 219 sysklogd/klogd.o
Bernhard Reutner-Fischer
2006-05-31 12:22:13 +00:00
c418d482ba
- s/defined(__uClinux__)/BB_NOMMU/ 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().
Bernhard Reutner-Fischer
2006-05-31 10:19:51 +00:00
507cd755a4
- conditionally define BB_NOMMU
Bernhard Reutner-Fischer
2006-05-31 10:04:03 +00:00
3252b625b7
Since we have less than 100k of usage.h data anyway, using bzip -9 is silly. That says use 900k chunks when compressing, which needs about 4 megs of data structures to undo the Burrows-Wheeler transform. Switching it down to bzip -1 (100k chunks) should have no impact on the compression (since it still all fits in one chunk) but should reduce runtime decompression memory requirements to something like 500k. Still larger than gunzip, but not egregiously so.
Rob Landley
2006-05-30 19:19:45 +00:00
b2d42fa6d1
Test to see if I can rename a file without blanking its history...
Rob Landley
2006-05-30 18:49:05 +00:00
4b146e65ad
Note about BB_NOMMU.
Rob Landley
2006-05-30 18:31:37 +00:00
7ae1553980
- consolidate "Sending SIG%s to all processes"; untested.. text data bss dec hex filename 5379 32 8 5419 152b init/init.o.oorig 5358 32 8 5398 1516 init/init.o
Bernhard Reutner-Fischer
2006-05-30 18:17:21 +00:00
a8622e049d
- this could use a brother which deals with glibc based systems..
Bernhard Reutner-Fischer
2006-05-30 15:49:10 +00:00
c58dbf28e0
- remove useless variable "status" from init_main. http://www.opengroup.org/onlinepubs/009695399/functions/waitpid.html suggests that we need not specify a status if we don't want, and we don't. "If wait() or waitpid() return because the status of a child process is available, these functions shall return a value equal to the process ID of the child process. In this case, if the value of the argument stat_loc is not a null pointer, information shall be stored in the location pointed to by stat_loc. " text data bss dec hex filename 5391 32 8 5431 1537 init/init.o.06 5379 32 8 5419 152b init/init.o
Bernhard Reutner-Fischer
2006-05-30 12:16:54 +00:00
3ab3080bc2
- use config_buffer for message() - add second argument to waitfor(*action,pid); if action==NULL then use pid tor wait for. If an action was given, we wait for the action to finish just as before. In run() remove second and third occurance of the same functionality the waitfor() call now provides. Adjust the former only caller of waitfor accordingly.
Bernhard Reutner-Fischer
2006-05-30 12:10:29 +00:00
752f0a6001
Put parentheses around some of the SWAP() macros, as pointed out by Peter Kjellerstedt.
Rob Landley
2006-05-30 06:28:03 +00:00
f14f7fc5ca
Teach bloatometer about .rodata, and tweak the display into something that has a better chance of getting merged.
Rob Landley
2006-05-29 20:56:27 +00:00
76bb97c995
- landley, remove this?
Bernhard Reutner-Fischer
2006-05-29 13:01:37 +00:00
49e60b9788
- set_term() doesn't need an argument. (Like r15220 this is just compile-tested) text data bss dec hex filename 5432 32 8 5472 1560 init/init.o.r15220 5426 32 8 5466 155a init/init.o
Bernhard Reutner-Fischer
2006-05-29 12:57:52 +00:00
0da069d382
- move common code into new open_new_terminal() function; text data bss dec hex filename 864434 10244 645892 1520570 1733ba busybox_old 864386 10244 645892 1520522 17338a busybox_unstripped
Bernhard Reutner-Fischer
2006-05-29 12:54:16 +00:00
bbc225e13d
- just whitespace
Bernhard Reutner-Fischer
2006-05-29 12:12:45 +00:00
d2c306e862
- ls: remove unused variable - dpkg.c, diff: use xstat text data bss dec hex filename 848823 9100 645216 1503139 16efa3 busybox_old 848679 9100 645216 1502995 16ef13 busybox_unstripped bloatcheck is completely useless as it sees -79 for this, which is bogus.
Bernhard Reutner-Fischer
2006-05-29 12:10:23 +00:00
1ec5b29054
More size shrinkage.
Rob Landley
2006-05-29 07:42:02 +00:00
a6e131dab3
Size reductions, mostly switching things to use libbb functions.
Rob Landley
2006-05-29 06:43:55 +00:00
bba7f08d27
Add SWAP_LE?? and SWAP_BE?? macros, and make things use them. Converts values to/from little endian or big endian, which is a NOP if that's what the current platform already is.
Rob Landley
2006-05-29 05:51:12 +00:00
9755197448
This is not C++.
Rob Landley
2006-05-29 05:21:29 +00:00
0582ee0826
A few new todo items from email with Bernhard.
Rob Landley
2006-05-29 05:06:06 +00:00
15d20a03d6
Remove _() and N_() from platform.h. #define them as NOP macros in the two 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.
Rob Landley
2006-05-29 05:00:44 +00:00
8394729ddf
Remove _().
Rob Landley
2006-05-29 04:49:55 +00:00
4e3aff3425
Remove _().
Rob Landley
2006-05-29 04:37:28 +00:00
267a0ed9e6
I changed last10 to last25, and just bumped it up to 50 so I renamed it "recent.html". There's a symlink from each of the old names for the moment, I'll zap those eventually...
Rob Landley
2006-05-28 02:10:21 +00:00
81dab2cf83
Fix hdparm to use PRIu64 instead of typecasting to long long (which is 128 bits on 64 bit platforms), and move #include <inttypes.h> to libbb.h.
Rob Landley
2006-05-28 01:56:08 +00:00
0fbe7ddbdd
Put the ending quote on the help entry...
Rob Landley
2006-05-28 01:40:26 +00:00
c44bc986b7
Fix some warnings in allbareconfig.
Rob Landley
2006-05-28 01:19:06 +00:00
3f78561d63
My first bout of untangling udhcp. Make lots of gratuitous #defines go away, substitutie BB_VER for an external VERSION, use busybox CONFIG symbols rather than checking for them then defining others, etc. Lots more cleanup to do...
Rob Landley
2006-05-28 01:06:36 +00:00
8fba99f35e
Move portability stuff to platform.h, and clean up adjtimex.c a bit while I'm in the area.
Rob Landley
2006-05-27 22:08:01 +00:00
299a6b4d7b
Consolidate #include <sys/time.h> so libbb.h does it.
Rob Landley
2006-05-27 21:42:58 +00:00
d244bc1a57
Update FAQ to mention make baseline when talking about make bloatcheck.
Rob Landley
2006-05-27 21:30:34 +00:00
d9872aa0d7
Consolidate the .PHONY targets and add "make baseline" for bloatcheck.
Rob Landley
2006-05-27 21:24:16 +00:00
95a040fac8
- use the defines CURRENT_TTY and VC_1; also shrink xargs a tiny bit: add/remove: 0/0 grow/shrink: 2/6 up/down: 5/-37 (-32) function old new delta static.add_interface 271 274 +3 static.glob3 36 38 +2 static.renice_main 409 408 -1 static.readcmd 1083 1081 -2 static.changepath 176 174 -2 static.parse_opts 56 51 -5 static.rx_main 1095 1088 -7 static.xargs_main 759 739 -20 ---------------------------------------------------------------- Result :-) -32
Bernhard Reutner-Fischer
2006-05-27 09:36:43 +00:00
8bb50782a5
Change llist_add_* to take the address of the list rather than returning the new head, and change all the callers.
Rob Landley
2006-05-26 23:44:51 +00:00
5edc10275e
Slight sanity fix: data is void *, not char *. And it's called data almost everywhere, so be consistent.
Rob Landley
2006-05-26 23:00:10 +00:00
d765ee5d0f
- provide fallback defines for non-linux
Bernhard Reutner-Fischer
2006-05-26 20:34:02 +00:00
b21d23bd46
- provide fallback defines for non-linux
Bernhard Reutner-Fischer
2006-05-26 20:33:12 +00:00
01d23ade57
- add central knob to turn off getopt_long everywhere. EXPERIMENTAL! Adds "Enable getopt long" under "General options", default y. Send patches to fix getopt_ulflags and run_parts.c if you turn this off.. See http://busybox.net/lists/busybox/2006-May/021828.html for a start to run-parts
Bernhard Reutner-Fischer
2006-05-26 20:19:22 +00:00
d29337580e
- use strtol instead of strtoll if the latter does not exist - add and use wrapper for attribute - add and use replacement for vasprintf if it is unavailable
Bernhard Reutner-Fischer
2006-05-26 19:58:58 +00:00
781e42d66c
- introduce and use bb_path_wtmp_file for portability (saves 11 Bytes). - fix last.c to also look at the double-underscore UT_ defines.
Bernhard Reutner-Fischer
2006-05-26 14:41:40 +00:00
b180e5a766
- use portability wrapper define bb_setpgrp.
Bernhard Reutner-Fischer
2006-05-26 14:24:56 +00:00
08421e1d0c
- work around bug in gcc-3.4.x on ARM
Bernhard Reutner-Fischer
2006-05-26 14:05:48 +00:00
ec74f95d10
- work around bug in gcc-3.4.x on ARM
Bernhard Reutner-Fischer
2006-05-26 14:05:00 +00:00
8379053b11
- move llist to top of file so we can potentially use it in all prototypes easily
Bernhard Reutner-Fischer
2006-05-26 13:54:07 +00:00
76b82cfd6f
- make find_mount_point conditional on df and eject; Fixes `make hosttools´ on hosts where mntent.h does not exist.
Bernhard Reutner-Fischer
2006-05-26 13:38:43 +00:00
4ed1f1d99d
- add workaround for tar being broken since it uses a non-portable constant.
Bernhard Reutner-Fischer
2006-05-26 13:34:25 +00:00
7fca7e3378
- use the SED given by the user - use the portable `` instead of $(). There is no bbsh, so this is needed.
Bernhard Reutner-Fischer
2006-05-26 13:28:39 +00:00
e28d1d6fdc
- add target hosttools (see make help) - rename check_gcc to check_cc and pass the CC to use as arg#1; peruse check_cc for HOSTCFLAGS - add and use check_strip - add checks for {,no-}whole-archive and {start,end}-group LD flags
Bernhard Reutner-Fischer
2006-05-26 13:22:57 +00:00
6d0dbeb550
- use ATTRIBUTE_ALWAYS_INLINE if requested - use shorter boilerplate while at it
Bernhard Reutner-Fischer
2006-05-26 13:13:11 +00:00
e00fc16aaa
- move libc checks from busybox.h to platform.h - 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"
Bernhard Reutner-Fischer
2006-05-26 13:10:10 +00:00
7fd9983c56
- patch from Tito to pretty print the overall delta
Bernhard Reutner-Fischer
2006-05-26 10:29:40 +00:00
314c739b07
Yann E. MORIN. writes: hdparm has a uint64_t passed to printf with a %llu format (which is ok, because it's the same size), but without first being casted(?) to unsigned long long int. Which is kinda funny because it's done OK on a few lines above...
Mike Frysinger
2006-05-26 02:05:19 +00:00
4f93a63467
errno and h_errno values are not the same #876 by rfelker
Mike Frysinger
2006-05-26 01:56:42 +00:00
fa6c4844b2
fix spelling mistakes
Mike Frysinger
2006-05-26 01:48:17 +00:00
9c03cb920a
check for queueing dependancy dependancies typos
Mike Frysinger
2006-05-26 01:41:04 +00:00
3354487393
queuing is spelled correctly
Mike Frysinger
2006-05-26 01:38:19 +00:00
399d2b5c24
Rich Felker suggested removing dprintf() from watch, and one thing led to 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...)
Rob Landley
2006-05-25 23:02:40 +00:00
69d863b6c6
And fix the error I just introduced. :)
Rob Landley
2006-05-25 21:13:30 +00:00
5a2997de72
Remove pointless #define.
Rob Landley
2006-05-25 21:12:40 +00:00