044228d5ec
This is vodz' latest patch. Sorry it took so long...
...
1) ping cleanup (compile fix from this patch already applied).
2) traceroute call not spare ntohl() now (and reduce size);
3) Fix for functions not declared static in insmod, ash, vi and mount.
4) a more simple API cmdedit :))
5) adds "stopped jobs" warning to ash on Ctrl-D and fixes "ignoreeof" option
6) reduce exporting library function index->strchr (traceroute), bzero->memset (syslogd)
2001-07-17 01:12:36 +00:00
c308847274
Remove redundant initialization of lfile to reduce executable size by
...
8192 bytes (noted by Mike Castle).
2001-07-06 19:28:07 +00:00
22ecf049b6
Per patch from vodz, change a couple of consts to defines, since
...
apparently gcc 2.95.4, at least, is too stupid to realize that a
"static const int" is in fact a constant.
2001-07-02 17:32:40 +00:00
addabd6f16
Patch from Gennady Feldman
...
This should fix "circular buffer" error message shown when running "syslogd -C"
2001-06-26 01:41:59 +00:00
c55b8d41c1
Add xgethostbyname and herror_msg* functions.
2001-05-16 15:40:51 +00:00
238bc4090d
Per comment from Jim McQuillan <jam@mcquil.com>, don't log
...
syslogd startup/shutdown messages as KERN.EMERG, but use
SYSLOG.INFO instead.
2001-05-07 17:55:05 +00:00
87d893c04b
devfs does not support creation of regular files. So change the
...
test a bit so as to not possibly create a regular file.
-Erik
2001-05-03 07:01:41 +00:00
6ba1a80c26
Use date -u instead of date --utc and consolidate version string.
...
Patch by Larry Doolittle <ldoolitt@recycle.lbl.gov >.
2001-04-12 20:11:55 +00:00
b6b519b416
Update how we detect if libc5 is in use.
...
-Erik
2001-04-09 23:52:18 +00:00
ea9065072c
Some cleanups/fixes for the syslogd circular buffer code
...
from Gennady Feldman.
2001-04-05 20:55:17 +00:00
e76c3b08e1
A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a few
...
shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can
handle them sanely and all at once.
-Erik
2001-04-05 03:14:39 +00:00
e5c24dfd01
Use daemon() to spawn syslogd and klogd daemons.
...
-Erik
2001-03-29 21:58:33 +00:00
bff6b18bf9
Applied patch from Gennady Feldman to fix a single-threaded syslogd bug that
...
turned up. This code needs to be tested on an embedded system, since that's
where the bug turned up in the first place.
2001-03-27 20:17:58 +00:00
f6aa13d403
-Wshadow tr fix from Jeff Garzik
2001-03-23 17:08:21 +00:00
8ffaf8d139
-Wshadow logread fix from Jeff Garzik
2001-03-23 17:04:47 +00:00
1ca20a7747
A nice patch from Larry Doolittle that adds -Wshadow and
...
cleans up most of the now-revealed problems.
2001-03-21 07:34:27 +00:00
b0c2b7dfe3
dos2unix logread.c
2001-03-15 19:05:59 +00:00
a8035a51be
Move the warning msg after features.h gets pulled in.
...
-Erik
2001-03-15 18:20:23 +00:00
2892c35bdb
Applied patch from Giulio Orsero to fix some preprocessor bugs.
2001-03-14 17:18:52 +00:00
c319601db5
Some updates for libc5
2001-03-14 01:15:06 +00:00
6bff9cc487
Added some comment lines in the header indicating that Gennady Feldman is the
...
maintainer of these three applets.
2001-03-12 23:41:34 +00:00
6317c4baf7
Applied patch from Gennady Feldman to split up syslogd.c into syslogd and
...
klogd (as it should be).
2001-03-12 22:51:50 +00:00
1a49fc5e92
Applied patch from Gennady Feldman to use single-thread instead of forking.
2001-03-12 19:51:09 +00:00
cbe31dace5
It turns out that DODMALLOC was broken when I reorganized busybox.h
...
header file usage before the 0.49 release. To fix it, I had to move
the '#include "busybox.h"' to the end of the list of #include files.
-Erik
2001-02-20 06:14:08 +00:00
67991cf824
This patch, put together by Manuel Novoa III, is a merge of work
...
done by Evin Robertson (bug#1105) and work from Manuel to make
usage messages occupy less space and simplify how usage messages
are displayed.
2001-02-14 21:23:06 +00:00
dd19c69904
Removed trailing \n from error_msg{,_and_die} messages.
2001-01-31 19:00:21 +00:00
8ec10a9483
Fix up copyright msgs. Bump version to 0.49 in preparation for
...
a release. Update the website with release details.
-Erik
2001-01-27 09:33:39 +00:00
ed3ef50c23
Fix header file usage -- there were many unnecessary header files included in
...
busybox.h which slowed compiles. I left only what was needed and then fixed up
all the apps to include their own header files. I also fixed naming for pwd.h
and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc.
-Erik
2001-01-27 08:24:39 +00:00
d35c21587a
Commit Larry Doolittle's buffers-on-stack/buffers-via-malloc patch.
...
-Erik
2001-01-25 23:49:09 +00:00
59ab025363
#define -> static const int. Also got rid of some big static buffers.
2001-01-23 22:30:04 +00:00
5e8b3ea19d
Logger forgot to NULL terminate strings from stdin.
2001-01-03 00:06:46 +00:00
1944f547bd
Log stdin when no message given and use getopt.
2001-01-02 18:13:58 +00:00
1fa1adea2a
Change calls to error_msg.* and strerror to use perror_msg.*.
2000-12-18 03:57:16 +00:00
d323d32c5b
Patch from larry doolittle to make sure we don't realloc
...
a pointer that was not yet malloced mem.
2000-12-11 20:29:13 +00:00
5a964f9d0b
Keep unknown priorities from segfaulting.
2000-12-11 20:13:37 +00:00
4ed17829ac
Fix a thinko -- when REMOTE_LOG support is compiled in,
...
but the user has not specified remote logging, then
be sure to log locally... duh.
2000-12-11 19:28:29 +00:00
394cf22668
Fix the option parsing to use getopt, which seems to fix bug #1050
2000-12-11 16:48:50 +00:00
cf7982e908
Patch from Larry Doolittle, fix up logging across multilple lines, hopefully
...
fixing bug #1061 .
2000-12-11 16:31:11 +00:00
70d09ed1cf
Reverse logic so when network logging, it by default does not log locally.
2000-12-11 16:24:16 +00:00
afdde3e356
Some little cleanups from Larry Doolittle
2000-12-09 16:41:42 +00:00
bf2b8ae49a
Make no local logging a runtime option for network logging...
2000-12-08 19:52:01 +00:00
76fef0a5d0
Patch from Gennady Feldman <gfeldman@mail.com> to make syslogd not log
...
when compiled for remote logging. Not the ideal way to fix it (it should
really be a runtime switch), but good enough for now I guess...
2000-12-08 19:41:21 +00:00
9cff4fbac9
Patch from Matt Kraai to make logger log all arguments.
2000-12-08 19:35:51 +00:00
f57c944e09
Changed names of functions in utility.c and all affected files, to make
...
compliant with the style guide. Everybody rebuild your tags file!
2000-12-07 19:56:48 +00:00
7b5c16ebe5
Fix by Tim Robbins <fyre@box3n.gumbynet.org> to prevent bad format
...
strings from being passed to syslog(3).
2000-12-07 16:22:04 +00:00
3e856ce428
Stop using TRUE and FALSE for exit status.
2000-12-01 02:55:13 +00:00
4e573f4729
Remove the BSD advertising clause, and replace it with a link to how
...
the advertising clause has been retroactivly declared null and void.
2000-11-14 23:29:24 +00:00
3180413e76
Clean up error handling and uses of TRUE/FALSE.
2000-10-25 16:40:21 +00:00
3570a34de4
Renamed "internal.h" to the more sensible "busybox.h".
...
-Erik
2000-09-25 21:45:58 +00:00
d39d120998
Make syslogd ignore SIGCLD only if SIGCLD is defined. This should fix SPARC.
...
Also ignore SIGCHLD - it must have been meant.
2000-09-13 14:14:29 +00:00