summaryrefslogtreecommitdiff
path: root/util-linux (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* The kernel can't handle umount /dev/hdc, we have to do it through mtab,Rob Landley2006-08-171-8/+14
| | | | | | | | | | | | | | except that we still have to work when there is no mtab. Oh, and while we're at it, take advantage of the fact that modern processors avoid branches via conditional assignment where possible. ("x = a ? b : c;" turns into "x = c; if (a) x = b;" because that way there's no branch to potentially mispredict and thus never a bubble in the pipeline. The if(a) turns into an assembly test followed by a conditional assignment (rather than a conditional jump).) So since the compiler is going to do that _anyway_, we might as well take advantage of it to produce a slightly smaller binary. So there.
* Patch from Chris Steel to fix mdev deleting device nodes.Rob Landley2006-08-101-7/+9
|
* Vladimir Dronnikov convinced me to twiddle the semantics of the new sharedRob Landley2006-08-091-5/+14
| | | | | subtree stuff to look more like http://lwn.net/Articles/159077/ thinks they should.
* Fix a typo (|| instead of |) and remove two comments about a problem fixedRob Landley2006-08-081-3/+2
| | | | in the previous patch.
* Add shared subtree support, suggested by Vladimir Dronnikov. Also break out aRob Landley2006-08-082-51/+75
| | | | | | few new (unfinished) config options, which I intend to make hidden (but enabled) when CONFIG_NITPICK is disabled. Getting the .config infrastructure to do that is non-obvious, it seems...
* Using lstat() instead of stat() means that attempting to loopback mountRob Landley2006-08-081-1/+1
| | | | a symlink doesn't work.
* Make a warning go away on 64-bit systems.Rob Landley2006-08-061-2/+2
|
* There are a number of reasons for reinventing printf(). Writing status toRob Landley2006-08-041-18/+8
| | | | stdout is not one of them.
* Remove xcalloc() and convert its callers to xzalloc(). About half of themRob Landley2006-08-031-2/+2
| | | | | were using "1" as one of the arguments anyway, and as for the rest a multiply and a push isn't noticeably bigger than pushing two arguments on the stack.
* Fix umount so loop device disassociation hopefully doesn't screw up errno onRob Landley2006-08-031-16/+12
| | | | | | a failed mount. And while I'm at it, legacy mdev removal was only being done in the _failure_ case? That can't be right. Plus minor header cleanups and an option parsing tweak.
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-0313-137/+40
| | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
* Add back in non-ifdef version of FEATURE_PRETTY_PRINT, and get the attributionRob Landley2006-07-272-3/+40
| | | | right this time.
* There's no excuse for adding new #ifdefs to the code like that. None at all.Rob Landley2006-07-272-39/+3
|
* allow people to display dmesg output without syslog levelsMike Frysinger2006-07-272-3/+39
|
* de-cuddle if( to if (Mike Frysinger2006-07-271-1/+1
|
* New mkswap. Small and simple. Might even work. :)Rob Landley2006-07-161-380/+29
|
* Fix three embarassing thinkos in the new dmesg.c:Rob Landley2006-07-061-3/+3
| | | | | | 1) the c argument shouldn't have had a : after that, dunno how that got there. 2) the xgetlarg for level was using size 3) because xgetlarg's error message _SUCKS_ (it does a show_usage() rather than giving any specific info about the range that was violated) I dropped the range down to 2 bytes. (Which works fine, I dunno why we were nit-picking about that...)
* Standardize on the vi editing directives being on the first line."Robert P. J. Day"2006-07-0211-3/+13
|
* Remove "#if 0" content."Robert P. J. Day"2006-07-012-32/+0
|
* Remove all usage of the "register" storage class specifier."Robert P. J. Day"2006-07-011-1/+1
|
* fix from Kolbjørn Barmen for building for m68k targetsMike Frysinger2006-06-301-1/+1
|
* Upgrade mdev to allow commands to be run on create/delete.Rob Landley2006-06-262-97/+116
| | | | | | | | | | | Both Jason Schoon and Giuseppe Ciotta deserve credit for this, I used elements of both.  It's been upgraded so that you can specify that a given command should run at create, at delete, or at both using different special characters (@, $, and * respectively).  It uses the system() method of running command lines which means you can use environment variables on the command line (it sets $MDEV to the name of the current device being created/deleted, which is useful if you matched it via regex), and the documentation warns that you need a /bin/sh to make that work, so you probably want to pick a default shell.
* Various cleanups I made while going through Erik Hovland's patch submissions,Rob Landley2006-06-251-1/+1
| | | | some of which are even from him. :)
* Patch from Paul Fox to improve mount's error handling behavior, which I beatRob Landley2006-06-211-21/+16
| | | | on a bit.
* Andre (armcc2200@yahoo) patched a bug where successful mounts could sometimesRob Landley2006-06-211-1/+2
| | | | produce an error, due to a missing rc assignment.
* Make some 64 bit warnings go away on x86-64.Rob Landley2006-06-192-11/+3
|
* skip_whitespace() shouldn't claim its return value is const, it doesn't knowRob Landley2006-06-181-46/+3
| | | | that and callers wind up typecasting it back.
* Remove warnings caused by #include <sys/mount.h> in platform.h. ApparentlyRob Landley2006-06-164-19/+1
| | | | we redefine a lot of stuff from standard header files...
* Patch from Yann Morin to put BLKGETSIZE64 in platform.h had rather a lot ofRob Landley2006-06-156-45/+6
| | | | | | fallout due to the #include <sys/mount.h>. Removed that #include from various applets and fixed up those that were unhappy when that #include was made because they'd block copied stuff out of it. (Sigh.)
* Rewrite of dmesg, smaller and simpler.Rob Landley2006-06-131-70/+25
|
* Random cleanup of platform.h.Rob Landley2006-06-131-6/+0
|
* Work around a persistent uClibc bug, since 0.9.29 still hasn't shipped.Rob Landley2006-06-131-5/+6
| | | | Poked to do this by Jason Schoon.
* Patch from Denis Vlasenko, tweak error messages.Rob Landley2006-06-131-52/+50
|
* Minor size shrinkage.Rob Landley2006-06-131-4/+2
|
* - reuse strings and messages. Saves about 600BBernhard Reutner-Fischer2006-06-071-4/+6
|
* Whack the one last warning in make allbareconfig...Rob Landley2006-06-061-1/+1
|
* - use bb_msg_{read,write}_error where appropriate.Bernhard Reutner-Fischer2006-06-031-1/+1
| | | | | | text data bss dec hex filename 825015 9100 645216 1479331 1692a3 busybox.old 824919 9100 645216 1479235 169243 busybox
* - No options should set the current system time.Bernhard Reutner-Fischer2006-06-031-4/+4
| | | | | | | | | | | | | 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. Quoth rdate(8) from the BSD System Manager's Manual: -p Do not set, just print the remote time -s Do not print the time.
* Remove _() and N_() from platform.h. #define them as NOP macros in the twoRob Landley2006-05-291-0/+2
| | | | | | 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.
* Remove _().Rob Landley2006-05-291-14/+12
|
* Fix some warnings in allbareconfig.Rob Landley2006-05-281-5/+2
|
* Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley2006-05-272-2/+0
|
* Change llist_add_* to take the address of the list rather than returning the newRob Landley2006-05-261-1/+1
| | | | head, and change all the callers.
* - add central knob to turn off getopt_long everywhere. EXPERIMENTAL!Bernhard Reutner-Fischer2006-05-262-4/+4
| | | | | | 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
* - work around bug in gcc-3.4.x on ARMBernhard Reutner-Fischer2006-05-261-1/+1
|
* fix spelling mistakesMike Frysinger2006-05-262-8/+8
|
* Convert to a global struct, the way sed was. Now I have two, I can work outRob Landley2006-05-211-4/+9
| | | | the infrastructure to merge global structs into a union...
* - remove emacs layout block as suggested by Robert P.J. DayBernhard Reutner-Fischer2006-05-192-30/+3
| | | | - use shorter boilerplate while at it
* - single KERNEL_VERSION(a,b,c) macro in platform.hBernhard Reutner-Fischer2006-05-192-12/+11
| | | | | - rename get_kernel_revision() to get_linux_version_code from Robert P. J. Day
* pull Rules.mak from top_srcdir as pointed out by Robert P. J. Day on the ↵Mike Frysinger2006-05-131-1/+1
| | | | mailing list