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
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
ade7f95bd1
Patch from Tito: Remove -v verbose -V version -q quiet flags Remove parse_opt_v2(); Rename parse_opt_v3() to parse_xfermode() Remove if_strcat() Rearrange code in dump_identity() to reduce size Modify some strings so that they could be optimized by the compiler Minor code clean up Remove unneeded #define <shm.h>
Rob Landley
2006-05-25 18:53:06 +00:00
6cd2250953
Remove a pointless #define.
Rob Landley
2006-05-25 18:31:11 +00:00
89a22ea5d9
make the testsuite a little less brittle: - 'function fn_name\n{' breaks on older FreeBSD default shells, so use the more widely supported 'fn_name () {'. This needs more fixing.. - test for integers ought to use the proper operators - test for strings ought to use quoting of the strings to be fair to strange implementations of test(1) - make sure not to ignore return-codes != 0 from commands; Some shells exit immediately on this (much like explicitely requesting set -e in e.g. bash)
Bernhard Reutner-Fischer
2006-05-25 13:24:02 +00:00
027ea1aeac
Two more issues pointed out by Bernhard.
Rob Landley
2006-05-24 17:58:00 +00:00
5fc467e758
Yann Morin spotted some leftover flotsam from halfway through the recent llist.c interface change that accidentally got checked in. My bad.
Rob Landley
2006-05-24 17:45:47 +00:00
fa6b5e62c2
It takes _talent_ to implement a version of nohup that does everything except the actual blocking of HUP.
Rob Landley
2006-05-23 00:28:06 +00:00
a81cec9192
- set x bit
Bernhard Reutner-Fischer
2006-05-21 22:06:59 +00:00
5cd1ccd995
Convert to a global struct, the way sed was. Now I have two, I can work out the infrastructure to merge global structs into a union...
Rob Landley
2006-05-21 18:33:27 +00:00
9ffd42317b
Minor cleanups: Convert a few calloc() calls to xzalloc, remove unnecessary memset, collate variable declarations...
Rob Landley
2006-05-21 18:30:35 +00:00
c020f5f518
New version of nohup that's much smaller, less paranoid, consistent, vaguely portable, and licensed GPLv2 "or later".
Rob Landley
2006-05-21 18:28:13 +00:00
4148afe049
- fix wrong path to scripts/usage; It is in the builddir and not in the srcdir. - flag .depend as .NOTPARALLEL to workaround bug in make-3.80 and make-3.81 Some more details on the second workaround (i.e. kludge): make-3.80 silently fails, while make-3.81 is at least self-conscious enough to admit: include/usage_compressed.h: .config scripts/usage # Implicit rule search has not been done. # File does not exist. # File has not been updated. # Dependencies commands running (THIS IS A BUG). # commands to execute (from `/home/cow/src/bb2/Makefile', line 430): $(Q)$(SHELL) $(top_srcdir)/scripts/usage_compressed "$(top_builddir)/scripts" > $@
Bernhard Reutner-Fischer
2006-05-21 15:05:49 +00:00
a1e130f122
- check for existing usage binary, so it get's more obvious that the toplevel Makefile uses the wrong path to the binary (it's in top_builddir and not in top_srcdir)
Bernhard Reutner-Fischer
2006-05-21 10:45:01 +00:00
3c8c0690fd
- there is no _usage.h anymore, so don't rm it in distclean.
Bernhard Reutner-Fischer
2006-05-21 10:04:46 +00:00
30ead9a9b9
- do not create usage_compressed.h if CONFIG_FEATURE_COMPRESS_USAGE is not set
Bernhard Reutner-Fischer
2006-05-21 09:02:12 +00:00
1a5eb46820
- there is no "sh". Use $(SHELL)
Bernhard Reutner-Fischer
2006-05-21 08:25:45 +00:00
ef21629a6b
- silence warning about no return in function returning non-void - put CONFIG_DEBUG_CROND_OPTION into config no changes in size when debugging is disabled.
Bernhard Reutner-Fischer
2006-05-20 14:14:05 +00:00
9b5a99ad21
Patch from Robert P. Day to remove #ifdefed out SLIP support code that we have no CONFIG option to enable, and which existing SLIP users don't seem to miss.
Rob Landley
2006-05-19 22:54:42 +00:00
206f75784b
Remove unused function parameter, from Garrett.
Rob Landley
2006-05-19 22:42:23 +00:00
19d42df206
Add diffutils and dhcp to list of packages we provide replacements for.
Rob Landley
2006-05-19 22:14:19 +00:00
35017fb4fc
- backout erroneously checked in snippet..
Bernhard Reutner-Fischer
2006-05-19 20:48:22 +00:00
df4cdaf341
First quick stab at organizing TODO under whose TODO item it is.
Rob Landley
2006-05-19 20:47:55 +00:00
80b8ff07ca
A pending item in my tree I might as well check in: I plan to migrate calloc() and bb_calloc() calls to bb_xzalloc() which allocates prezeroed memory but only takes one argument (the size).
Rob Landley
2006-05-19 20:36:49 +00:00
b1629b1b2a
- remove emacs layout block as suggested by Robert P.J. Day - use shorter boilerplate while at it
Bernhard Reutner-Fischer
2006-05-19 19:29:19 +00:00
d8e87a09d1
- forgot to make busybox_unstripped depend on the applets in IMA mode.
Bernhard Reutner-Fischer
2006-05-19 18:37:34 +00:00
c7801c4634
- use shorter boilerplate.
Bernhard Reutner-Fischer
2006-05-19 18:35:03 +00:00
351c832d75
- redirect stdout of scripts/config/conf to /nil for allyesconfig, allnoconfig, defconfig, allbareconfig - fix invalid call to "make"; use $(MAKE) instead.
Bernhard Reutner-Fischer
2006-05-19 18:33:34 +00:00
a254065e63
- remove SIGIOT as suggested by landley.
Bernhard Reutner-Fischer
2006-05-19 17:54:05 +00:00
4ae2f511cf
Patch from tito to replace shared memory usage with mlock(), slightly tweaked by me.
Rob Landley
2006-05-19 17:24:26 +00:00
cf89c37d08
fix indenting in help output for ifconfig
Mike Frysinger
2006-05-19 16:14:31 +00:00
14b1d2930a
- typo s/allbaseconfig/allbareconfig/ I thought Robert Day pointed this out, but i cannot find the mail in the archives..
Bernhard Reutner-Fischer
2006-05-19 14:02:51 +00:00
0a8812bdc5
- replace _PATH_DEVNULL with bb_dev_null
Bernhard Reutner-Fischer
2006-05-19 13:12:21 +00:00
14aa06f29c
- do not use non-standard u_int. - do not use _PATH_DEVNULL gnuism but bb_dev_null. Thanks to Rich Felker.
Bernhard Reutner-Fischer
2006-05-19 13:02:27 +00:00
e2922e42a0
- make it C89 compatible; Declarations in the middle of a function is of course fine in C99, but it really serves no purpose other than breaking compilation on C89 compilers. Thanks to Rich Felker for pointing this out.
Bernhard Reutner-Fischer
2006-05-19 12:48:56 +00:00
38583fd6f2
- use uint32_t instead of __u32 Thanks to Rich Felker for pointing this out.
Bernhard Reutner-Fischer
2006-05-19 12:44:16 +00:00
4009ed91f7
- Rich Felker writes: SIGIOT is not defined in any standard i can find and it seems to be useless (alias for SIGABRT) on linux. i put it in #ifdef but it's probably best just to remove it and cut down the size a bit.
Bernhard Reutner-Fischer
2006-05-19 12:41:13 +00:00