Mike Frysinger
1fb7961e08
use more busybox functions and remove redundant code
2005-05-16 22:35:59 +00:00
Mike Frysinger
b2312e9901
make sure we add the local dir to the include path
2005-05-16 22:05:07 +00:00
Mike Frysinger
1ece21bddd
as Rob Landley pointed out, need to fix the 1 versus i typo in indexing
2005-05-13 03:09:20 +00:00
Mike Frysinger
0fb397e617
blah, forgot to save last time to fix whitespacing
2005-05-13 00:58:18 +00:00
Mike Frysinger
867a6080fe
remove duplicated code and rework algorithms to end up with smaller code
2005-05-13 00:57:30 +00:00
Mike Frysinger
dad4cf7e63
use a bunch of if statements since it is a few bytes smaller than a switch; also use bb_xfopen() instead of fopen() so comm doesnt segfault when given non-existant files :(
2005-05-12 22:50:12 +00:00
Mike Frysinger
b3a6ec3e62
err, added 2 to the wrong var :) also touchup the option detection to shrink size
2005-05-12 22:41:13 +00:00
Mike Frysinger
3ba93c0438
fix segfault if user only specifies 1 file
2005-05-12 22:36:32 +00:00
Mike Frysinger
4d149205c3
update usage to match actual behavior
2005-05-12 22:36:07 +00:00
Mike Frysinger
0d605e98b2
fix whitespace/coding style
2005-05-12 22:25:41 +00:00
Mike Frysinger
a84a512700
add missing comm.o rule
2005-05-12 22:23:15 +00:00
Mike Frysinger
5b300dd3a9
whitespace touchups
2005-05-12 22:22:50 +00:00
Mike Frysinger
b662f0d58b
import ether-wake applet by haveaniceday Bug 252
2005-05-11 03:59:53 +00:00
Mike Frysinger
348e84c202
change the hardcoded error constant (0x80000000UL) to a nice flexible define (BB_GETOPT_ERROR)
2005-05-11 00:39:03 +00:00
Mike Frysinger
55e2cf6533
import eject by Peter Willis / Tito Ragusa
2005-05-11 00:25:47 +00:00
Mike Frysinger
fb6d22c96c
now that mjn3 explained it to me, add documentation for the 3rd field in long opts
2005-05-11 00:02:39 +00:00
Mike Frysinger
e5d0bde697
add documentation for long options and touch up the current docs now that i actually understand how to use the function myself :)
2005-05-10 23:48:35 +00:00
Mike Frysinger
38a33f91c0
import more libs to prep for new e2fsprogs
2005-05-09 22:13:22 +00:00
Mike Frysinger
1fd98e039d
import ext2fs lib to prep for new e2fsprogs
2005-05-09 22:10:42 +00:00
Mike Frysinger
b32011943a
no longer applies
2005-05-09 22:10:10 +00:00
Mike Frysinger
7a121e92eb
import base_device.c for fsck
2005-05-09 22:09:00 +00:00
Mike Frysinger
8d929dab60
remove unused files
2005-05-09 21:58:36 +00:00
Mike Frysinger
a88d52237b
trim out useless defines and use some busybox funcs
2005-05-09 21:57:44 +00:00
Mike Frysinger
507d1f76e5
override nls P_() macro
2005-05-09 21:53:25 +00:00
Mike Frysinger
ae38d65e95
abort if user passes -r or if they dont pass anything
2005-05-09 21:51:41 +00:00
Mike Frysinger
9dc93ac561
syntax/whitespace touchup
2005-05-09 21:51:15 +00:00
Mike Frysinger
ea338fffb5
patch by Tito which uses a lot more busybox functions to reduce size nicely
2005-05-07 07:17:43 +00:00
Mike Frysinger
6adfd349e9
update e2p target to match condensed files
2005-05-07 07:16:54 +00:00
Mike Frysinger
548ffd49a3
patch by Tito which unifies common get/set functions into 1 get/set function and cuts down on the size used significantly :)
2005-05-07 07:14:41 +00:00
Mike Frysinger
ba3a01f5e0
add/remove defines to handle more e2fsprogs
2005-05-07 06:49:54 +00:00
Mike Frysinger
9c85ecdef4
use shared busybox error messages to save a few bytes
2005-05-07 06:45:29 +00:00
Mike Frysinger
7dc7f402a7
make the exec (-e) an optional feature of netcat
2005-05-06 05:00:34 +00:00
Mike Frysinger
60a5c38a4b
In bug 247, haveaniceday writes:
...
The option "-w secs" adds a timeout for writing.
2005-05-06 04:45:38 +00:00
Mike Frysinger
edb3fbc305
fix stupid build mistake i made earlier as pointed out by psm
2005-04-26 00:43:19 +00:00
Mike Frysinger
d6a8f5f0d0
use a generic error message
2005-04-25 05:27:12 +00:00
Mike Frysinger
c238a97a9e
use asprintf in place of malloc/sprintf as suggested by solar
2005-04-25 05:24:35 +00:00
Mike Frysinger
7eb6457c4c
moved to e2fsprogs too
2005-04-25 05:00:33 +00:00
Mike Frysinger
d2a64d2fc2
bbify to shrink size
2005-04-25 04:10:35 +00:00
Mike Frysinger
560047ce86
use busybox funcs to make smaller
2005-04-24 05:39:52 +00:00
Mike Frysinger
cf131bb328
new version of ed taken from sash
2005-04-24 05:18:00 +00:00
Mike Frysinger
d89e5e6450
svn didnt auto add these ...
2005-04-24 05:15:12 +00:00
Mike Frysinger
d89e629e52
add new subdir for e2fsprogs
2005-04-24 05:07:59 +00:00
Mike Frysinger
408ae211ce
rework human_fstype to cut down size
2005-04-24 04:11:44 +00:00
Mike Frysinger
f06c494636
rework options to get rid of extra variables
2005-04-24 03:53:12 +00:00
Mike Frysinger
058e740d1e
fix whitespace usage, fix un-escaped quotes in a bunch of examples, and standardize a bunch of trivial/full usage statements (no trailing newline in either, and when listing options, dont append a . each time)
2005-04-23 07:00:33 +00:00
Mike Frysinger
82e6c0b3db
fix inconsistent whitespace
2005-04-23 06:35:06 +00:00
Mike Frysinger
964a368e5c
remove extra whitespace
2005-04-23 06:28:42 +00:00
Mike Frysinger
9b5f71ec02
stat implementation based upon coreutils
2005-04-23 06:26:38 +00:00
Mike Frysinger
84ab267e22
patch for a very alpha busybox ed
2005-04-23 01:50:55 +00:00
Mike Frysinger
6b05b0ce93
whitespace fix
2005-04-23 01:46:55 +00:00
Mike Frysinger
3b59821cbd
remove lsattr/chattr to prepare for a top level e2fsprogs dir with more stuff in it
2005-04-23 01:45:08 +00:00
Mike Frysinger
0ea3a6f660
update example to use bb_ prefixed names and remove old note about config.h (since the header is generated automatically now)
2005-04-23 01:43:45 +00:00
Mike Frysinger
19d7021d99
add comments about ignoring some warnings which are OK
2005-04-23 01:43:07 +00:00
Mike Frysinger
7202e00b4c
remove unused variable and declare writepid inline
2005-04-23 01:42:29 +00:00
Mike Frysinger
5b2e27137d
cast the time pointer so gcc stops warning over nothing
2005-04-23 01:42:03 +00:00
Mike Frysinger
5cfa5ef6f3
use bb_fflush_stdout_and_exit instead of exit
2005-04-23 01:41:51 +00:00
Mike Frysinger
de9f1f757a
import lsattr and chattr from e2fsprogs
2005-04-22 02:33:37 +00:00
Mike Frysinger
2c12d435e5
output busybox help to stdout, not stderr
2005-04-22 02:19:01 +00:00
Mike Frysinger
95d3c4503f
printenv / sum defines
2005-04-21 23:29:24 +00:00
Mike Frysinger
4a2117027f
grab sum from coreutils, clean it up, and make it busybox happy
2005-04-21 23:24:46 +00:00
Mike Frysinger
6d1d2e59bf
add a printenv implementation
2005-04-21 23:23:13 +00:00
Mike Frysinger
c0bc9652fd
fix whitespace
2005-04-21 23:19:57 +00:00
Mike Frysinger
78333d0452
fix typos
2005-04-21 23:17:57 +00:00
Mike Frysinger
f547d672cf
fix typoe (buildddir -> builddir)
2005-04-21 01:49:05 +00:00
Mike Frysinger
5c9ed9f41a
fix printf warning
2005-04-20 00:28:44 +00:00
Mike Frysinger
618d62f593
fix whitespace
2005-04-19 23:50:22 +00:00
Mike Frysinger
2bf88a891f
In Bug 5, Tito writes:
...
This is a first attempt to improve the comments of getopt_ulflags.c.
Maybe under some aspects the text could be refined, but so
far it is already usable and should help people who "avoided getopt_ulflags as the pest" to understand how it works.
This patch was created with the help of
Vodz, the author of the code, who explained me patiently
how getopt_ulflags works
and with the help of
Paul Fox, who corrected my broken english.
So thanks and merits should go to them also.
2005-04-18 22:42:58 +00:00
Mike Frysinger
91d8f0e892
touchups as suggested by Vladimir N. Oleynik
2005-04-18 18:52:15 +00:00
Mike Frysinger
ef614ecca6
err, use name attr of a tag, not href
2005-04-17 07:25:32 +00:00
Mike Frysinger
fa69f110d9
import fakeidentd module started by Thomas Lundquist
2005-04-17 07:24:19 +00:00
Mike Frysinger
77dbe738d2
add a new list of external tiny utilities
2005-04-17 04:32:22 +00:00
Mike Frysinger
a77b4f3970
jfb2 writes in Bug 119:
...
The init applet will restart (re-exec) itsself when it
receives a SIGHUP. However, just before it enters its
main loop, it resets SIGHUP to either re-load the inittab
(or ignore it if no inittab is used). Thus preventing
the re-exec option from being triggerable.
This patch adds a signal handler for SIGQUIT for init that
always causes init to re-exec itsself (along with killing
anything else that might be still running).
2005-04-16 08:21:34 +00:00
Mike Frysinger
5ba5f4d2e7
In Bug 78, shortkey points out:
...
If you run `grep -h . file1 file2 file3 ...`, the output is not prefixed
with the filename. If you run `grep -h . file1` however, the filename
will incorrectly prefix the output.
2005-04-16 04:56:11 +00:00
Mike Frysinger
b31566ef32
minor style touchups
2005-04-16 04:48:48 +00:00
Mike Frysinger
4e5936ef95
In Bug 208, bernhardf writes:
...
On machines with only ANSI compliant compilers, not explitily delcaring
an empty parameter list 'void' causes failure.
2005-04-16 04:30:38 +00:00
Mike Frysinger
5c63a72968
In Bug 207, bernhardf writes:
...
proper escape strings in usage.h
2005-04-16 04:23:58 +00:00
Mike Frysinger
3cc01a80a3
In Bug 209, bernhardf writes:
...
struct named {
named_field: init,
};
appear to be depraced by now; rather use C{99} format as in
struct named {
.named_field = init,
};
2005-04-16 04:17:39 +00:00
Mike Frysinger
a9ae74d25b
bernhardf reports with Bug 210:
...
For certain non-gcc compilers, alloca_h is defined (included) but there,
no alloca() is declared. Fallback to malloc if _ALLOCA_H is defined but
still, there is no alloca() in the included _ALLOCA_H.
2005-04-16 04:06:14 +00:00
Mike Frysinger
2ed05ab146
fake out support for POSIX -H and -L options since busybox cp dereferences everything by default
2005-04-14 02:52:50 +00:00
Mike Frysinger
75ac42b1ae
add aliases == and [[ for = and [ to support more bash scripts
2005-04-14 02:49:22 +00:00
Mike Frysinger
354b527e03
amd64 is rela, not rel
2005-03-30 06:29:41 +00:00
Mike Frysinger
a36ac0db67
Shaun Jackman writes: Fix typo. Use __NR_umount2 instead of __NR_pivot_root.
2005-03-04 01:34:23 +00:00
Mike Frysinger
dcc40b7ecc
Shaun Jackman writes: Newlib uses both __getopt_initialized and optind to track initialization of getopt()
2005-03-04 01:33:17 +00:00
Mike Frysinger
9b9e5479e8
add some more comments
2005-03-04 01:27:18 +00:00
Mike Frysinger
3b05b80cd7
newlib fixe from Shaun Jackman
2005-03-04 01:10:56 +00:00
Mike Frysinger
ca1b6fc745
newlib fixe from Shaun Jackman
2005-03-04 01:09:43 +00:00
Mike Frysinger
6077d90c26
cp: make -P a synonym for -d
2005-01-07 00:56:47 +00:00
Mike Frysinger
63654c1b08
alpha/parisc support
2004-12-26 09:13:32 +00:00
Mike Frysinger
d824853de3
merge from udhcp module
2004-12-06 14:59:45 +00:00