Mark Whitley
59ab025363
#define -> static const int. Also got rid of some big static buffers.
2001-01-23 22:30:04 +00:00
Eric Andersen
6f65a3a7e8
More printf cleanups
2001-01-20 01:10:07 +00:00
Matt Kraai
12f417edbd
Eliminate calls of the form "fprintf(stdout,". Thanks for the idea to
...
Vladimir N. Oleynik.
2001-01-18 02:57:08 +00:00
Matt Kraai
fd4c58d7c5
Fix the exit status of umount -a, a casualty of the TRUE/FALSE normalization.
...
Thanks to Francois-R Boyer <boyerf@IRO.UMontreal.CA> for the report.
2001-01-17 00:12:11 +00:00
Eric Andersen
27c7bec4d4
Be more careful about dmalloc handling
2001-01-02 01:16:02 +00:00
Matt Kraai
e6e818309e
Improvements from Vladimir N. Oleynik.
2000-12-30 07:46:23 +00:00
Matt Kraai
a9819b2908
Use busybox error handling functions wherever possible.
2000-12-22 01:48:07 +00:00
Eric Andersen
16fdbe8b27
Make more things be static (like they are supposed to be).
2000-12-20 23:40:57 +00:00
Matt Kraai
1fa1adea2a
Change calls to error_msg.* and strerror to use perror_msg.*.
2000-12-18 03:57:16 +00:00
Eric Andersen
77508b29fa
Fix from Gennady Feldman for error msg
2000-12-12 23:51:43 +00:00
Eric Andersen
d9d03b83f8
Mount error return code fix from Kent Robotti -- we must reset the error
...
code when looping...
2000-12-12 23:20:37 +00:00
Glenn L McGrath
c52a97d79f
NFS_PORT and NFS_FHSIZE are not defined in the kernel headers that come with libc6-2.2-5
...
This just defines that if they arent found in the kernel header
2000-12-09 23:59:04 +00:00
Eric Andersen
afdde3e356
Some little cleanups from Larry Doolittle
2000-12-09 16:41:42 +00:00
Mark Whitley
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
Matt Kraai
92ed8a3519
Fix exit status on failure.
2000-12-06 15:55:23 +00:00
Eric Andersen
87559829ff
Remove #ifdef __STDC__ junk. We don't do K&R round these parts,
...
so no point acting like we do.
2000-12-01 19:02:24 +00:00
Matt Kraai
3e856ce428
Stop using TRUE and FALSE for exit status.
2000-12-01 02:55:13 +00:00
Eric Andersen
63a862272c
Cleanup of duplicated symbols -- found by compiling with
...
LDFLAGS += -Wl,-warn-common
2000-11-07 06:52:13 +00:00
Eric Andersen
ef936da7c5
Fix uname problem that was breaking poweroff.
2000-10-30 17:22:04 +00:00
Matt Kraai
269e07cadc
Make fbset compile with the readmode feature by pulling defs from fb.h.
2000-10-28 16:56:32 +00:00
Eric Andersen
d1ee7e39f7
Silence a warning,
2000-10-26 07:57:27 +00:00
Mark Whitley
6050618096
Put getopt_usage where it belongs and added *_usage entries in busybox.[ch]
2000-10-19 22:28:06 +00:00
Matt Kraai
bbaef66b3f
Consolidate handling of some fopen failures.
2000-09-27 02:43:35 +00:00
Eric Andersen
3570a34de4
Renamed "internal.h" to the more sensible "busybox.h".
...
-Erik
2000-09-25 21:45:58 +00:00
Eric Andersen
c873d61008
Remove all the kernel headers so it will compile under libc5
...
-Erik
2000-09-21 04:09:58 +00:00
Eric Andersen
ba35b98444
Fix a potential warning
2000-09-21 04:05:38 +00:00
Eric Andersen
8a2e56c5df
Large file >2Gib support.
2000-09-21 02:23:30 +00:00
Eric Andersen
8847b9a03a
Remove a warning. Patch from Bryan Rittmeyer <bryan@ixiacom.com>
2000-09-21 01:33:05 +00:00
Eric Andersen
0cccdfaf36
When mounting a ro fs rw, print warning and then mount it ro. Patch
...
from Dave Cinege.
-Erik
2000-09-20 06:23:36 +00:00
Eric Andersen
56f3e353da
Both of these commands were subtly broken. Fortunately when used together the
...
damage was only ugly fscks. Reverted to the static inline code so they work
correctly again,
-Erik
2000-09-19 21:13:55 +00:00
Eric Andersen
252bacc9ea
Apply a patch from Chip Rosenthal <chip@unicom.com> to fix NFS mounting,
...
which had been inadvertantly broken...
-Erik
2000-09-19 01:21:13 +00:00
Matt Kraai
322ae93a5e
Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead of
...
segfaulting or handling errors the same way themselves.
2000-09-13 02:46:14 +00:00
Pavel Roskin
32f2769800
From Ken Chalmers <chalmers@norscan.com>:
...
The current CVS mount.c is missing a semicolon, causing building to fail
if NFS is enabled (#define BB_NFSMOUNT).
2000-08-22 15:35:31 +00:00
Eric Andersen
6ab22027d0
Oops. Forgot to commit rdate.c.
...
-Erik
2000-08-21 23:04:00 +00:00
Eric Andersen
a1f16bba72
Added getopt(1) from "Alfred M. Szmidt" <ams@trillian.itslinux.org>
...
-Erik
2000-08-21 22:02:34 +00:00
Eric Andersen
88f50b6bf5
Some #include updates.
...
-Erik
2000-08-10 17:59:11 +00:00
Eric Andersen
0c8e2a6580
Fixed the "-f" option.
...
-Erik
2000-08-02 18:56:25 +00:00
Eric Andersen
fdd5103348
Merge in two patches from Dave Cinege:
...
the first is a cleanup of tar --exclude
the second changes mount so mtab works more as it should, and
also allows mount to use the traditional short form (i.e.
'mount / -o remount,rw' now works.
While inside tar, I changed it to use getopt...
-Erik
2000-08-02 18:48:26 +00:00
Eric Andersen
b040d4f3da
Use BB_FEATURE_CLEAN_UP where appropriate
...
-Erik
2000-07-25 18:01:20 +00:00
Matt Kraai
27a804246a
Centralize handling of --help.
2000-07-19 19:24:01 +00:00
Pavel Roskin
bc0aed79a8
It is now possible to select in busybox.def.h whether minixfs version 2
...
is to be supported.
2000-07-17 17:52:00 +00:00
Pavel Roskin
47d4926244
The result of getopt() is "int" and should be treated as such
2000-07-17 16:17:19 +00:00
Matt Kraai
bf181b9338
Extract usage information into a separate file.
2000-07-16 20:57:15 +00:00
Matt Kraai
3bd8bd89ee
Don't use strings directly in calls to usage(). This is in preparation
...
for their extraction to a separate file.
2000-07-14 23:28:47 +00:00
Eric Andersen
add09fd558
Getopt'ed by Marc Nijdam <marc_nijdam@hp.com>
...
-Erik
2000-07-14 18:39:08 +00:00
Pavel Roskin
f626dcbc84
More fixes for "missing initializers"
2000-07-14 15:55:41 +00:00
Eric Andersen
e7413a9cde
A couple of minor warning cleanups.
...
-Erik
2000-07-14 06:19:41 +00:00
Matt Kraai
d537a95fdb
Use errorMsg rather than fprintf.
2000-07-14 01:51:25 +00:00
Eric Andersen
6f96e674b9
Patch from Jon McClintock <jonm@bluemug.com>
...
>The attached patch adds the ability to parse the actual mode specifier in
>fbset. So now
>
> fbset -n 640x480-72
>
>Will actually work. I don't know if I've reinvented the wheel though...
-Erik
2000-07-12 23:01:04 +00:00
Matt Kraai
be84cd4ef6
Always report the applet name when doing error reporting.
2000-07-12 17:02:35 +00:00
Matt Kraai
e58771e73c
Use global applet_name instead of local versions.
2000-07-12 15:38:49 +00:00
Eric Andersen
be909b1cd5
Forgot to commit these cleanups it seems.
...
-Erik
2000-07-11 17:52:22 +00:00
Eric Andersen
da1d1e763d
Fixed NFS so it supports 2.4.x kernels and NFSv3. Should close bug #1009 .
...
-Erik
2000-07-10 23:39:44 +00:00
Eric Andersen
c674d70699
Comment on kernel stuff
...
-Erik
2000-07-10 22:57:14 +00:00
Eric Andersen
85c552035e
More linux kernel header file removal.
...
-Erik
2000-07-10 22:46:55 +00:00
Eric Andersen
9b2297a34e
Remove yet more kernel header dependancies.
...
-Erik
2000-07-10 20:08:44 +00:00
Eric Andersen
a57ba4db64
Argh. More cross libc cleanup. Should be ok now...
...
-Erik
2000-07-08 19:20:49 +00:00
Eric Andersen
2cd439f7f0
More cleanup on umount
...
-Erik
2000-07-08 19:10:29 +00:00
Eric Andersen
bd22ed8067
Update files to reduce dependance on kernel version...
...
-Erik
2000-07-08 18:55:24 +00:00
Eric Andersen
03f4c27bd6
Turned some stuff into features that really are features, not apps.
...
-Erik
2000-07-06 23:10:29 +00:00
Eric Andersen
c8c10c5715
Added (fixed) the '-n' option to fbset. Renumbered the command parameters to
...
put a gap between the normal commands and the fancy commands. This makes it
cleaner to add normal commands. Patch from Jon McClintock <jonm@bluemug.com>.
-Erik
2000-07-06 17:23:23 +00:00
Eric Andersen
b1e379f7f3
Remove some warning with glibc.
...
-Erik
2000-07-06 17:08:38 +00:00
Eric Andersen
1e03add675
a few minor cleanups.
...
-Erik
2000-07-06 09:56:35 +00:00
Eric Andersen
89bc256c94
Remove misguided klude around for 2.4.x-test* brokenness. Al Viro
...
will be removing this stuff from /proc/mounts real soon now I am assured.
-Erik
2000-07-05 19:29:59 +00:00
Eric Andersen
2086e3d679
Some cosmetic updates. Changed "OPTIONS" to "Options".
...
-Erik
2000-07-04 22:17:01 +00:00
Eric Andersen
10dc9d4d17
Updates to handle Linux 2.4.0 kernels (kludged around the "none" entries in
...
/proc/mounts, added a hack to make sysinfo work with both old and new kernels).
-Erik
2000-06-26 10:45:52 +00:00
Mark Whitley
4fa84e6b54
Cleaned up some #ifdef spiderwebs.
2000-06-21 22:53:16 +00:00
Eric Andersen
bd4a75f6c8
Finish off the libc5 porting effort. Everything now works with libc5
...
except for md5sum, which uses the GNU libc addition getline().
-Erik
2000-06-19 20:03:48 +00:00
Eric Andersen
e1e23eecab
Make umount work and compile cleanly under libc5 and libc6.
...
-Erik
2000-06-19 18:38:51 +00:00
Eric Andersen
5e29c6ffce
Make swaponoff compile cleanly under both libc5 and libc6.
...
-Erik
2000-06-19 18:25:49 +00:00
Eric Andersen
b610615be9
Updates to a number of apps to remove warnings/compile errors under libc5.
...
Tested under both libc5 and libc6 and all seems well with these fixes.
-Erik
2000-06-19 17:25:40 +00:00
Mark Whitley
b991395405
Added some comments and changed a variable name to be more meaningful. No
...
fixes yet for the space bug, but should be coming soon.
2000-06-16 00:26:51 +00:00
Eric Andersen
a42982e8f5
* Fixed 'swapon -a' and 'swapoff -a', which were broken.
...
* Fixed 'mount -a' so it works as expected.
* Implemented 'ls -R' (enabled by enabling BB_FEATURE_LS_RECURSIVE)
-Erik
2000-06-07 17:28:53 +00:00
Eric Andersen
fb8ba506bb
Oops. Remove the debugging noise.
...
-Erik
2000-06-06 22:13:39 +00:00
Eric Andersen
3232203226
mkfs.minix rev 1.7 completely broke the option parser. This fixes it.
...
-Erik
2000-06-06 22:12:35 +00:00
Pavel Roskin
680d65a646
"mount" now reports errors from nfsmount() and assumes NFS mount
...
if ':' is present in the device name - Pavel Roskin
2000-06-06 17:03:55 +00:00
Eric Andersen
815e904470
Fixed a bunch of stuff:
...
* Fixed segfault caused by "touch -c"
* Fixed segfault caused by "rm -f"
* Fixed segfault caused by "ln -s -s" and similar abuses.
* Fixed segfault caused by "cp -a -a" and similar abuses.
* Implemented "rm -- <foo>"
updated docs accordingly.
-Erik
2000-06-06 16:15:23 +00:00
Eric Andersen
ef4268efa7
This patch
...
- eliminates the need to have a buffer and strcpy to it
- makes freeramdisk complain if it's given more than one argument
Regards,
Pavel Roskin
2000-06-04 05:08:29 +00:00
Eric Andersen
86ab8a32bd
A number of additional fixed from Pavel Roskin, note some more bugs in the
...
TODO list. Add Glenn to the Authors list for writing a mini ar for BusyBox,
which is now included.
-Erik
2000-06-02 03:21:42 +00:00
Erik Andersen
8ea7d8cdaf
First pass at fixing tar segfault, and more portability updates.
...
-Erik
2000-05-20 00:40:08 +00:00
Erik Andersen
330fd2b576
More libc portability updates, add in the website (which has not been
...
archived previously). Wrote 'which' during the meeting today.
-Erik
2000-05-19 05:35:19 +00:00
Erik Andersen
7ab9c7ee52
Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP
...
which lets you compile out most of the "--help" output, saving
up to 17k.
Renamed mnc to nc.
-Erik
2000-05-12 19:41:47 +00:00
Erik Andersen
59b9e87024
* cp -fa now works as expected for symlinks (it didn't before)
...
* zcat works again (wasn't working since option parsing was broken)
* more doc updates/more support for BB_FEATURE_SIMPLE_HELP
-Erik
2000-05-10 05:05:45 +00:00
Erik Andersen
6c5f2c6021
Add support for "noatime" and "nodiratime" mount flags to mount.
...
Change umount "-f" to mean force, and actually use umount2.
Change umount "-l" to mean "Do not free loop device".
Updates docs accordingly.
-Erik
2000-05-05 19:49:33 +00:00
Erik Andersen
0a704e8ff6
Remove BB_FEATURE_REMOUNT (small, and should always be present)
...
and fix documentation dependancy checks, so it is only built when
it should be built.
-Erik
2000-05-03 03:19:06 +00:00
Erik Andersen
4f3f757d56
Latest and greatest. Some effort at libc5 (aiming towards newlib)
...
compatability.
-Erik
2000-04-28 00:18:56 +00:00
Erik Andersen
e90f4045af
Some more updates and such...
...
-Erik
2000-04-21 21:53:58 +00:00
Erik Andersen
1d1d95051a
More Doc updates. cmdedit and more termio fixes.
2000-04-21 01:26:49 +00:00
Erik Andersen
a6c752201e
Updates
...
-Erik
2000-04-18 00:00:52 +00:00
Erik Andersen
9cf3bfa7c1
More doc updates for BusyBox, with fixes to apps for bugs revealed
...
while trying to write docs . :-)
-Erik
2000-04-13 18:49:43 +00:00
Erik Andersen
61677feff7
Upates to include copyright 2000 to everything
...
-Erik
2000-04-13 01:18:56 +00:00
Erik Andersen
983b51b17b
minor changes to mount/umount to support-by-ignoring the "-v" flag.
...
Added optional core dumping as a feature for init, and include a rewrite
of syslogd so that it now supports multiple concurrent connections.
-Erik
2000-04-04 18:14:25 +00:00
Erik Andersen
3364d78b18
Yet another installment in the ongoing tar saga
...
-Erik
2000-03-28 00:58:14 +00:00
Erik Andersen
298854f029
My latest ramblings.
...
-Erik
2000-03-23 01:09:18 +00:00
Erik Andersen
ec5bd90916
Use the nice new find_real_root_device function to find the
...
name of the root device, instead of having libc read whatever
lies happen to be in /etc/mtab.
-Erik
2000-03-22 07:12:05 +00:00
Erik Andersen
0d068a2067
* all mallocs now use xmalloc (and so are OOM error safe), and
...
the common error handling saves a few bytes. Thanks to
Bob Tinsley <bob@earthrise.demon.co.uk> for the patch.
-Erik
2000-03-21 22:32:57 +00:00
Erik Andersen
a967e3c8f0
Bug fix
...
-Erik
2000-03-14 16:34:49 +00:00
Erik Andersen
ce91732416
Some bug fixes I forgot to check-in the other day.
...
Mounting loop devices w/o specifying the filesystem
type choked if it didn't guess right the first time.
-Erik
2000-03-13 04:07:02 +00:00
Erik Andersen
269bba2514
Change BB_FEATURE_USE_DEVPS_N_DEVMTAB to the simpler
...
BB_FEATURE_USE_DEVPS_PATCH.
-Erik
2000-03-08 14:50:47 +00:00
Erik Andersen
246cc6dddd
Wrote killall.
...
Adjusted mount, ps, utility.c, etc to handle my nifty new kernel
patches the allow busybox to run perfectly without /proc.
-Erik
2000-03-07 07:41:42 +00:00