aboutsummaryrefslogtreecommitdiff
path: root/util-linux
AgeCommit message (Collapse)Author
2006-09-12Remove pointless "const". Bloatcheck says 0 bytes difference.Rob Landley
2006-09-11nfsmount: sanitize it. It had a rather peculiar idea of implementing "bg"Denis Vlasenko
option - it was going to return a special flag back to caller and expecting caller to call it again with special parameter! Also caller was charged with calling mount() syscall... mount: mtab support was non-functional. Enabling it revealed serious bug which is not fixed yet.
2006-09-11- convert a few xopen3(,,0) into xopen(,). Also peruse the fact that xopen ↵Bernhard Reutner-Fischer
defaults to 0777 on it's own, so we don't need to xopen3(,,0777). Saves a few bytes: $ size busybox.old busybox text data bss dec hex filename 839676 8780 243592 1092048 10a9d0 busybox.old 839660 8780 243592 1092032 10a9c0 busybox $ make CC=gcc-4.2-HEAD bloatcheck function old new delta static.vconfig_main 281 279 -2 static.rx_main 1076 1074 -2 static.mt_main 294 292 -2 static.gzip_main 753 751 -2 static.mkfs_minix_main 4034 4030 -4 static.unzip_main 1771 1766 -5 static.crontab_main 1513 1507 -6 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/7 up/down: 0/-23) Total: -23 bytes
2006-09-10nfsmount: remove some really old code (for kernels 1.x!) + small cleanups.Denis Vlasenko
2006-09-10nfsmount: delete nfsmount.hDenis Vlasenko
2006-09-10nfsmount: nfsmount.h merged into nfsmount.cDenis Vlasenko
2006-09-10nfsmount: style fixDenis Vlasenko
2006-09-10ipcs: silly trick with strings. saves ~200 bytes.Denis Vlasenko
2006-09-08A quick cleanup pass of some low-hanging mess.Rob Landley
2006-09-06removed a lot of trailing \n in bb_msg() calls. It is addedDenis Vlasenko
automatically by function itself.
2006-09-05Vladimir Dronnikov (ybrnj80 at yandex dot ru) pointed out that my cleanup ofRob Landley
his code introduced a bug (an extra backslash in the CIFS mount string).
2006-09-04Thinko.Rob Landley
2006-09-01Vladimir Dronnikov also submitted a CIFS support patch to mount, which IRob Landley
heavily reworked here and probably broke. Tomorrow I need to set up a copy of samba to test against. (This compiles, I make no promises beyond that.)
2006-08-29Svn 16007 broke the build under gcc 4.0.3. This fixes up some of the damageRob Landley
(the e2fsprogs directory is too twisty and evil to easily fix, but I plan to rewrite it anyway so I'll just bump that up in priority a bit).
2006-08-28- pull from busybox_scratch: r15829:15850Bernhard Reutner-Fischer
Various fixes, cleanups and shrinkage: saves 952 Bytes: text data bss dec hex filename 1087742 15853 790632 1894227 1ce753 ../busybox/busybox.old 1086790 15853 790632 1893275 1ce39b busybox via: # scripts/bloat-o-meter ../busybox/busybox_unstripped.old busybox_unstripped function old new delta ipcrm_main 756 822 +66 getval - 61 +61 maybe_set_utc - 40 +40 udhcpc_main 2896 2912 +16 md5_hash_block 428 437 +9 opt 8 16 +8 qgravechar 106 110 +4 make_bitmap 292 295 +3 inflate_unzip 2056 2059 +3 add_partition 1412 1414 +2 __parsespent 156 158 +2 qrealloc 41 42 +1 format - 1 +1 catv_main 313 314 +1 watch_main 293 292 -1 varunset 81 80 -1 part 1 - -1 check_if_skip 837 836 -1 start_stop_daemon_main 840 837 -3 create_lost_and_found 175 172 -3 supress_non_delimited_lines 4 - -4 static.l 4 - -4 static.c 5 1 -4 bsd_sum_file 237 233 -4 eval2 338 332 -6 arithmetic_common 166 158 -8 cmpfunc 22 5 -17 cksum_main 294 275 -19 cmp_main 465 439 -26 dd_main 1535 1508 -27 rmmod_main 376 333 -43 cut_file 727 644 -83 ipcs_main 3809 3721 -88 cut_main 722 614 -108 date_main 1443 1263 -180 remove_ids 222 - -222 ------------------------------------------------------------------------------ (add/remove: 3/4 grow/shrink: 11/18 up/down: 217/-853) Total: -636 bytes
2006-08-17The kernel can't handle umount /dev/hdc, we have to do it through mtab,Rob Landley
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.
2006-08-10Patch from Chris Steel to fix mdev deleting device nodes.Rob Landley
2006-08-09Vladimir Dronnikov convinced me to twiddle the semantics of the new sharedRob Landley
subtree stuff to look more like http://lwn.net/Articles/159077/ thinks they should.
2006-08-08Fix a typo (|| instead of |) and remove two comments about a problem fixedRob Landley
in the previous patch.
2006-08-08Add shared subtree support, suggested by Vladimir Dronnikov. Also break out aRob Landley
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...
2006-08-08Using lstat() instead of stat() means that attempting to loopback mountRob Landley
a symlink doesn't work.
2006-08-06Make a warning go away on 64-bit systems.Rob Landley
2006-08-04There are a number of reasons for reinventing printf(). Writing status toRob Landley
stdout is not one of them.
2006-08-03Remove xcalloc() and convert its callers to xzalloc(). About half of themRob Landley
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.
2006-08-03Fix umount so loop device disassociation hopefully doesn't screw up errno onRob Landley
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.
2006-08-03Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley
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.)
2006-07-27Add back in non-ifdef version of FEATURE_PRETTY_PRINT, and get the attributionRob Landley
right this time.
2006-07-27There's no excuse for adding new #ifdefs to the code like that. None at all.Rob Landley
2006-07-27allow people to display dmesg output without syslog levelsMike Frysinger
2006-07-27de-cuddle if( to if (Mike Frysinger
2006-07-16New mkswap. Small and simple. Might even work. :)Rob Landley
2006-07-06Fix three embarassing thinkos in the new dmesg.c:Rob Landley
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...)
2006-07-02Standardize on the vi editing directives being on the first line."Robert P. J. Day"
2006-07-01Remove "#if 0" content."Robert P. J. Day"
2006-07-01Remove all usage of the "register" storage class specifier."Robert P. J. Day"
2006-06-30fix from Kolbjørn Barmen for building for m68k targetsMike Frysinger
2006-06-26Upgrade mdev to allow commands to be run on create/delete.Rob Landley
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.
2006-06-25Various cleanups I made while going through Erik Hovland's patch submissions,Rob Landley
some of which are even from him. :)
2006-06-21Patch from Paul Fox to improve mount's error handling behavior, which I beatRob Landley
on a bit.
2006-06-21Andre (armcc2200@yahoo) patched a bug where successful mounts could sometimesRob Landley
produce an error, due to a missing rc assignment.
2006-06-19Make some 64 bit warnings go away on x86-64.Rob Landley
2006-06-18skip_whitespace() shouldn't claim its return value is const, it doesn't knowRob Landley
that and callers wind up typecasting it back.
2006-06-16Remove warnings caused by #include <sys/mount.h> in platform.h. ApparentlyRob Landley
we redefine a lot of stuff from standard header files...
2006-06-15Patch from Yann Morin to put BLKGETSIZE64 in platform.h had rather a lot ofRob Landley
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.)
2006-06-13Rewrite of dmesg, smaller and simpler.Rob Landley
2006-06-13Random cleanup of platform.h.Rob Landley
2006-06-13Work around a persistent uClibc bug, since 0.9.29 still hasn't shipped.Rob Landley
Poked to do this by Jason Schoon.
2006-06-13Patch from Denis Vlasenko, tweak error messages.Rob Landley
2006-06-13Minor size shrinkage.Rob Landley
2006-06-07- reuse strings and messages. Saves about 600BBernhard Reutner-Fischer