aboutsummaryrefslogtreecommitdiff
path: root/miscutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Patch from Erik Hovland, via Tito.landley2006-06-081-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15341 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some day, maybe gcc will be able to optimize out static functions that arelandley2006-06-081-1/+2
| | | | | | | never used so we don't have to #ifdef them. Wouldn't that be nice? git-svn-id: svn://busybox.net/trunk/busybox@15340 69ca8d6d-28ef-0310-b511-8ec308f3f277
* initial support for no-mmu systemsvapier2006-06-071-0/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15334 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hint at where the Magic comes fromvapier2006-06-071-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15330 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - do away with the comment that noted that the current implementationaldot2006-06-071-1/+1
| | | | | | | unly supports linux. git-svn-id: svn://busybox.net/trunk/busybox@15329 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix from Tito to read from stdin only when it's not a tty.landley2006-06-071-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15328 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Consolidate devfs garbage and mark it as obsolete.landley2006-06-071-2/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15324 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add applet taskset to set/retrieve the CPU affinity of a processaldot2006-06-073-0/+74
| | | | | | | | | | | | | text data bss dec hex filename 584 0 0 584 248 taskset.o.gcc-2.95 509 0 0 509 1fd taskset.o.gcc-3.3 505 0 0 505 1f9 taskset.o.gcc-3.4 506 0 0 506 1fa taskset.o.gcc-4.0 498 0 0 498 1f2 taskset.o.gcc-4.1 495 0 0 495 1ef taskset.o.gcc-4.2-HEAD git-svn-id: svn://busybox.net/trunk/busybox@15315 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito writes: this patch fixes two potential bugs with the -i -I flags that ↵vapier2006-06-071-2/+2
| | | | | | could be reset during option parsing git-svn-id: svn://busybox.net/trunk/busybox@15307 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Callers to identify() converted the endianness of the buffer. So didlandley2006-06-071-16/+16
| | | | | | | | | identify(). This meant big endian systems had a NUXI problem. Removed the redundant conversion from the callers, and made some in-passing cleanups while I was there. git-svn-id: svn://busybox.net/trunk/busybox@15301 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use vfork() instead of vork() since the only thing we do is execve() an app ↵vapier2006-06-061-1/+1
| | | | | | after fork (allows time to work on no-mmu) git-svn-id: svn://busybox.net/trunk/busybox@15293 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - remove superfluous call of stack_machine(0) upon exit.aldot2006-06-031-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15276 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - no need to have timer_duration in the data section.aldot2006-06-031-7/+4
| | | | | | | - cleanup a little bit while at it. git-svn-id: svn://busybox.net/trunk/busybox@15275 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - use bb_msg_write_error in 3 placesaldot2006-06-031-368/+346
| | | | | | | - whitespace git-svn-id: svn://busybox.net/trunk/busybox@15274 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - move #include busybox.h to the very top so we pull in the configaldot2006-06-0317-24/+22
| | | | | | | and eventual platform specific includes in early. git-svn-id: svn://busybox.net/trunk/busybox@15273 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Tito to remove long options from hdparm.landley2006-05-312-25/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15254 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - s/defined(__uClinux__)/BB_NOMMU/aldot2006-05-311-3/+3
| | | | | | | | | | This needs a second pass to: + add bb_daemon(unsigned char no_chdir, unsigned char no_close, const char*flag) + eventually globally export argc and argv, so we don't need to pass it to bb_daemon(). git-svn-id: svn://busybox.net/trunk/busybox@15244 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Size reductions, mostly switching things to use libbb functions.landley2006-05-291-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15216 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add SWAP_LE?? and SWAP_BE?? macros, and make things use them. Converts valueslandley2006-05-291-7/+5
| | | | | | | | to/from little endian or big endian, which is a NOP if that's what the current platform already is. git-svn-id: svn://busybox.net/trunk/busybox@15215 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix hdparm to use PRIu64 instead of typecasting to long long (which is 128 bitslandley2006-05-281-4/+4
| | | | | | | on 64 bit platforms), and move #include <inttypes.h> to libbb.h. git-svn-id: svn://busybox.net/trunk/busybox@15208 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move portability stuff to platform.h, and clean up adjtimex.c a bit whilelandley2006-05-271-58/+3
| | | | | | | I'm in the area. git-svn-id: svn://busybox.net/trunk/busybox@15204 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Consolidate #include <sys/time.h> so libbb.h does it.landley2006-05-274-4/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15203 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - use the defines CURRENT_TTY and VC_1; also shrink xargs a tiny bit:aldot2006-05-271-1/+1
| | | | | | | | | | | | | | | | | | | add/remove: 0/0 grow/shrink: 2/6 up/down: 5/-37 (-32) function old new delta static.add_interface 271 274 +3 static.glob3 36 38 +2 static.renice_main 409 408 -1 static.readcmd 1083 1081 -2 static.changepath 176 174 -2 static.parse_opts 56 51 -5 static.rx_main 1095 1088 -7 static.xargs_main 759 739 -20 ---------------------------------------------------------------- Result :-) -32 git-svn-id: svn://busybox.net/trunk/busybox@15200 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - provide fallback defines for non-linuxaldot2006-05-261-0/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15196 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add central knob to turn off getopt_long everywhere. EXPERIMENTAL!aldot2006-05-261-1/+1
| | | | | | | | | 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
* - introduce and use bb_path_wtmp_file for portability (saves 11 Bytes).aldot2006-05-261-2/+6
| | | | | | | - fix last.c to also look at the double-underscore UT_ defines. git-svn-id: svn://busybox.net/trunk/busybox@15193 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Yann E. MORIN. writes:vapier2006-05-261-1/+1
| | | | | | | | | hdparm has a uint64_t passed to printf with a %llu format (which is ok, because it's the same size), but without first being casted(?) to unsigned long long int. Which is kinda funny because it's done OK on a few lines above... git-svn-id: svn://busybox.net/trunk/busybox@15180 69ca8d6d-28ef-0310-b511-8ec308f3f277
* And fix the error I just introduced. :)landley2006-05-251-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15171 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove pointless #define.landley2006-05-251-4/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15170 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Tito:landley2006-05-251-168/+123
| | | | | | | | | | | | | | | | | | | | | | Remove -v verbose -V version -q quiet flags Remove parse_opt_v2(); Rename parse_opt_v3() to parse_xfermode() Remove if_strcat() Rearrange code in  dump_identity() to reduce size Modify some strings so that they could be optimized by the compiler Minor code clean up Remove unneeded #define <shm.h> #if BB_BIG_ENDIAN && !defined(__USE_XOPEN) # define __USE_XOPEN #endif     Must be before #include <unistd.h> and #include "busybox.h" (noticed by Bernhard Fischer <rep.nop@aon.at>) Remove duplicate code in do_time() git-svn-id: svn://busybox.net/trunk/busybox@15169 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New version of nohup that's much smaller, less paranoid, consistent,landley2006-05-211-15/+0
| | | | | | | vaguely portable, and licensed GPLv2 "or later". git-svn-id: svn://busybox.net/trunk/busybox@15155 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - silence warning about no return in function returning non-voidaldot2006-05-202-25/+29
| | | | | | | | - put CONFIG_DEBUG_CROND_OPTION into config no changes in size when debugging is disabled. git-svn-id: svn://busybox.net/trunk/busybox@15149 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - remove emacs layout block as suggested by Robert P.J. Dayaldot2006-05-191-8/+0
| | | | | | | - use shorter boilerplate while at it git-svn-id: svn://busybox.net/trunk/busybox@15141 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from tito to replace shared memory usage with mlock(), slightly tweakedlandley2006-05-191-24/+10
| | | | | | | by me. git-svn-id: svn://busybox.net/trunk/busybox@15136 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - fix invalid modealdot2006-05-191-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15122 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Largeish cleanup patch from Tito, mostly if statement therapy.landley2006-05-161-534/+350
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15089 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
* typecast bbig to kill format warningsvapier2006-05-111-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15060 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The if() is cheaper than the extra function parameter. According to makelandley2006-05-081-26/+26
| | | | | | | bloatcheck, this saves 112 bytes on x86... git-svn-id: svn://busybox.net/trunk/busybox@15034 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup patch from tito.landley2006-05-071-379/+158
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15028 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Dennis Vlasenko resetting values that get reused.landley2006-05-051-5/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15007 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove HDIO_GETGEO_BIG which is dead (removed from 2.6) and was pointless backlandley2006-05-031-12/+4
| | | | | | | | | | | | in 2.4 (it fetched the same hd_geometry struct only with uint cylinders instead of ushort cylinders: nothing that big has ever accurately reported gemoetry, it's all LBA. Also stop declaring the hd_geometry struct static: it's two chars, a short, and a long for a grand total of 8 bytes. That can go on the stack. git-svn-id: svn://busybox.net/trunk/busybox@14983 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use ATTRIBUTE_NORETURN as suggested by tito, plus a few in-passing cleanups.landley2006-05-031-16/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14982 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from tito removing obsolete code.landley2006-05-011-142/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14977 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove some unused code pointed out by Tito, plus a slightly more gracefullandley2006-04-291-35/+7
| | | | | | | way of handling endianness. git-svn-id: svn://busybox.net/trunk/busybox@14971 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Style fixes from Denis Vlasenko.landley2006-04-291-147/+146
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14970 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another patch from Denis Vlasenko:landley2006-04-291-48/+42
| | | | | | | | | | | | Make hdparm smaller: * Make bb_ioctl return the status * Replace ioctl with bb_ioctl in a few places * Add bb_ioctl_alt, use where appropriate (four places) * unsigned char args1[4+512] = {WIN_IDENTIFY,0,0,1,}; ate 0.5k of rodata, fix that git-svn-id: svn://busybox.net/trunk/busybox@14969 69ca8d6d-28ef-0310-b511-8ec308f3f277
* From Dennis Vlasenko, Make hdparm smaller:landley2006-04-291-73/+49
| | | | | | | | * Use combined no_scsi_no_xt() * Have common unsigned char args[4] = {WIN_SETFEATURES,0,0,0}; git-svn-id: svn://busybox.net/trunk/busybox@14968 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup to hdparm by tito.landley2006-04-291-12/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14967 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just include fcntl.h not sys/fcntl.hvapier2006-04-291-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14963 69ca8d6d-28ef-0310-b511-8ec308f3f277