aboutsummaryrefslogtreecommitdiff
path: root/util-linux (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix umount so loop device disassociation hopefully doesn't screw up errno onlandley2006-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. git-svn-id: svn://busybox.net/trunk/busybox@15769 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidatelandley2006-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.) git-svn-id: svn://busybox.net/trunk/busybox@15767 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add back in non-ifdef version of FEATURE_PRETTY_PRINT, and get the attributionlandley2006-07-272-3/+40
| | | | | | | right this time. git-svn-id: svn://busybox.net/trunk/busybox@15754 69ca8d6d-28ef-0310-b511-8ec308f3f277
* There's no excuse for adding new #ifdefs to the code like that. None at all.landley2006-07-272-39/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15752 69ca8d6d-28ef-0310-b511-8ec308f3f277
* allow people to display dmesg output without syslog levelsvapier2006-07-272-3/+39
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15750 69ca8d6d-28ef-0310-b511-8ec308f3f277
* de-cuddle if( to if (vapier2006-07-271-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15748 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New mkswap. Small and simple. Might even work. :)landley2006-07-161-380/+29
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15704 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix three embarassing thinkos in the new dmesg.c: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...) git-svn-id: svn://busybox.net/trunk/busybox@15656 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Standardize on the vi editing directives being on the first line.rpjday2006-07-0211-3/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15581 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove "#if 0" content.rpjday2006-07-012-32/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15570 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove all usage of the "register" storage class specifier.rpjday2006-07-011-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15568 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix from Kolbjørn Barmen for building for m68k targetsvapier2006-06-301-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15553 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Upgrade mdev to allow commands to be run on create/delete.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. git-svn-id: svn://busybox.net/trunk/busybox@15515 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Various cleanups I made while going through Erik Hovland's patch submissions,landley2006-06-251-1/+1
| | | | | | | some of which are even from him. :) git-svn-id: svn://busybox.net/trunk/busybox@15513 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Paul Fox to improve mount's error handling behavior, which I beatlandley2006-06-211-21/+16
| | | | | | | on a bit. git-svn-id: svn://busybox.net/trunk/busybox@15455 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Andre (armcc2200@yahoo) patched a bug where successful mounts could sometimeslandley2006-06-211-1/+2
| | | | | | | produce an error, due to a missing rc assignment. git-svn-id: svn://busybox.net/trunk/busybox@15454 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make some 64 bit warnings go away on x86-64.landley2006-06-192-11/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15429 69ca8d6d-28ef-0310-b511-8ec308f3f277
* skip_whitespace() shouldn't claim its return value is const, it doesn't knowlandley2006-06-181-46/+3
| | | | | | | that and callers wind up typecasting it back. git-svn-id: svn://busybox.net/trunk/busybox@15420 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove warnings caused by #include <sys/mount.h> in platform.h. Apparentlylandley2006-06-164-19/+1
| | | | | | | we redefine a lot of stuff from standard header files... git-svn-id: svn://busybox.net/trunk/busybox@15403 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Yann Morin to put BLKGETSIZE64 in platform.h had rather a lot oflandley2006-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.) git-svn-id: svn://busybox.net/trunk/busybox@15393 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rewrite of dmesg, smaller and simpler.landley2006-06-131-70/+25
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15376 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Random cleanup of platform.h.landley2006-06-131-6/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15375 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Work around a persistent uClibc bug, since 0.9.29 still hasn't shipped.landley2006-06-131-5/+6
| | | | | | | Poked to do this by Jason Schoon. git-svn-id: svn://busybox.net/trunk/busybox@15374 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Denis Vlasenko, tweak error messages.landley2006-06-131-52/+50
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15369 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Minor size shrinkage.landley2006-06-131-4/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15368 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - reuse strings and messages. Saves about 600Baldot2006-06-071-4/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15325 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Whack the one last warning in make allbareconfig...landley2006-06-061-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15299 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - use bb_msg_{read,write}_error where appropriate.aldot2006-06-031-1/+1
| | | | | | | | | text data bss dec hex filename 825015 9100 645216 1479331 1692a3 busybox.old 824919 9100 645216 1479235 169243 busybox git-svn-id: svn://busybox.net/trunk/busybox@15279 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - No options should set the current system time.aldot2006-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. git-svn-id: svn://busybox.net/trunk/busybox@15269 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove _() and N_() from platform.h. #define them as NOP macros in the twolandley2006-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. git-svn-id: svn://busybox.net/trunk/busybox@15212 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove _().landley2006-05-291-14/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15211 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix some warnings in allbareconfig.landley2006-05-281-5/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15206 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Consolidate #include <sys/time.h> so libbb.h does it.landley2006-05-272-2/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15203 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change llist_add_* to take the address of the list rather than returning the newlandley2006-05-261-1/+1
| | | | | | | head, and change all the callers. git-svn-id: svn://busybox.net/trunk/busybox@15199 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add central knob to turn off getopt_long everywhere. EXPERIMENTAL!aldot2006-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 git-svn-id: svn://busybox.net/trunk/busybox@15195 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - work around bug in gcc-3.4.x on ARMaldot2006-05-261-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15191 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix spelling mistakesvapier2006-05-262-8/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15177 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Convert to a global struct, the way sed was. Now I have two, I can work outlandley2006-05-211-4/+9
| | | | | | | the infrastructure to merge global structs into a union... git-svn-id: svn://busybox.net/trunk/busybox@15157 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - remove emacs layout block as suggested by Robert P.J. Dayaldot2006-05-192-30/+3
| | | | | | | - use shorter boilerplate while at it git-svn-id: svn://busybox.net/trunk/busybox@15141 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - single KERNEL_VERSION(a,b,c) macro in platform.haldot2006-05-192-12/+11
| | | | | | | | - rename get_kernel_revision() to get_linux_version_code from Robert P. J. Day git-svn-id: svn://busybox.net/trunk/busybox@15121 69ca8d6d-28ef-0310-b511-8ec308f3f277
* pull Rules.mak from top_srcdir as pointed out by Robert P. J. Day on the ↵vapier2006-05-131-1/+1
| | | | | | mailing list git-svn-id: svn://busybox.net/trunk/busybox@15079 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Shut up the warning "implicit declaration of strlen".landley2006-05-101-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15055 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fiddling with llist to make memory management easier. Specifically, thelandley2006-05-081-1/+1
| | | | | | | | option to delete the contents of the list when we delete the list is a good thing. git-svn-id: svn://busybox.net/trunk/busybox@15037 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Shrink the code about 50 bytes, allocate less run-time memory, and add alandley2006-05-081-20/+19
| | | | | | | | comment that null terminating the string we sscanf() shouldn't be required since the kernel adds \n to the end of it and sscanf will stop there. git-svn-id: svn://busybox.net/trunk/busybox@15030 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More busting on legacy mtab support in the help text.landley2006-05-081-1/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15029 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove bb_strlen() in favor of -fno-builtin-strlen. Saves as many byteslandley2006-05-071-2/+2
| | | | | | | | as the old optimization did (actually does slightly better under gcc 4.0), and simplifies the code. git-svn-id: svn://busybox.net/trunk/busybox@15023 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Migrate endianness macros.landley2006-05-051-6/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15008 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Jason Schoon to make mount -a not abort on the first failure.landley2006-05-051-4/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15005 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Build break fix from Bernhard fischer, fixing fallout from svn 14974. (My bad.)landley2006-05-031-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14988 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patches from Denis Vlasenko to rework "current_name" handling and removelandley2006-04-291-126/+95
| | | | | | | | print_current_name(). git-svn-id: svn://busybox.net/trunk/busybox@14974 69ca8d6d-28ef-0310-b511-8ec308f3f277