summaryrefslogtreecommitdiff
path: root/miscutils/hdparm.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* whitespace fixesDenis Vlasenko2007-05-301-2/+2
|
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* hdparm: make -T -t code smaller (-194 bytes), and output prettierDenis Vlasenko2007-05-221-97/+75
|
* style fixes, no code changesDenis Vlasenko2007-04-161-1/+2
|
* hdparm: fix multisector mode settingDenis Vlasenko2007-03-311-2/+2
| | | | (from Toni Mirabete <amirabete@catix.cat>)
* hdparm: flag variables can easily be smaller than longDenis Vlasenko2007-03-281-96/+101
| | | | | | | | | | | | | | | | | | | | function old new delta process_dev 5247 5325 +78 bb_ioctl_on_off 72 78 +6 unregister_hwif 4 1 -3 ... perform_reset 4 1 -3 parse_xfermode 111 108 -3 noisy_piomode 4 1 -3 ... do_flush 4 1 -3 do_ctimings 4 1 -3 static.parm 4 - -4 static.multcount 4 - -4 parse_opts 54 48 -6 hdparm_main 1435 1383 -52 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 2/61 up/down: 84/-243) Total: -159 bytes
* hdparm: remove stray static (-200 bytes bss)Denis Vlasenko2007-03-281-1/+1
|
* hdparm: whitespace style fixesDenis Vlasenko2007-03-281-90/+89
|
* hdparm: style fixes, no code changesDenis Vlasenko2007-02-181-405/+271
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+2
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #2Denis Vlasenko2007-01-291-11/+7
|
* random small size optimizationsDenis Vlasenko2007-01-121-8/+8
|
* style fixesDenis Vlasenko2006-12-261-3/+3
| | | | last xcalloc replaced by xzalloc
* silly size savings and capitalization fixesDenis Vlasenko2006-10-261-13/+13
|
* message string changes, mostly for consistency, also -32 bytes in .rodataDenis Vlasenko2006-10-201-1/+1
|
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-3/+3
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-22/+22
| | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
* bb_askpass: shorten static password buffer. 256 is way too large.Denis Vlasenko2006-09-231-7/+7
| | | | | simplify code a bit.
* whitespace cleanupDenis Vlasenko2006-09-171-22/+22
|
* Patch from tito to improve options parsing.Rob Landley2006-08-031-2/+2
|
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-15/+1
| | | | | | | | | | 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.)
* Patch from Yann Morin to put BLKGETSIZE64 in platform.h had rather a lot ofRob Landley2006-06-151-2/+0
| | | | | | 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.)
* Some day, maybe gcc will be able to optimize out static functions that areRob Landley2006-06-081-1/+2
| | | | never used so we don't have to #ifdef them. Wouldn't that be nice?
* Fix from Tito to read from stdin only when it's not a tty.Rob Landley2006-06-071-3/+3
|
* Tito writes: this patch fixes two potential bugs with the -i -I flags that ↵Mike Frysinger2006-06-071-2/+2
| | | | could be reset during option parsing
* Callers to identify() converted the endianness of the buffer. So didRob Landley2006-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.
* - move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer2006-06-031-3/+1
| | | | and eventual platform specific includes in early.
* Patch from Tito to remove long options from hdparm.Rob Landley2006-05-311-22/+7
|
* Add SWAP_LE?? and SWAP_BE?? macros, and make things use them. Converts valuesRob Landley2006-05-291-7/+5
| | | | | to/from little endian or big endian, which is a NOP if that's what the current platform already is.
* Fix hdparm to use PRIu64 instead of typecasting to long long (which is 128 bitsRob Landley2006-05-281-4/+4
| | | | on 64 bit platforms), and move #include <inttypes.h> to libbb.h.
* Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley2006-05-271-1/+0
|
* Yann E. MORIN. writes:Mike Frysinger2006-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...
* Patch from Tito:Rob 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()
* Patch from tito to replace shared memory usage with mlock(), slightly tweakedRob Landley2006-05-191-24/+10
| | | | by me.
* Largeish cleanup patch from Tito, mostly if statement therapy.Rob Landley2006-05-161-534/+350
|
* typecast bbig to kill format warningsMike Frysinger2006-05-111-3/+3
|
* The if() is cheaper than the extra function parameter. According to makeRob Landley2006-05-081-26/+26
| | | | bloatcheck, this saves 112 bytes on x86...
* Cleanup patch from tito.Rob Landley2006-05-071-379/+158
|
* Patch from Dennis Vlasenko resetting values that get reused.Rob Landley2006-05-051-5/+18
|
* Remove HDIO_GETGEO_BIG which is dead (removed from 2.6) and was pointless backRob Landley2006-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.
* Use ATTRIBUTE_NORETURN as suggested by tito, plus a few in-passing cleanups.Rob Landley2006-05-031-16/+13
|
* Patch from tito removing obsolete code.Rob Landley2006-05-011-142/+11
|
* Remove some unused code pointed out by Tito, plus a slightly more gracefulRob Landley2006-04-291-35/+7
| | | | way of handling endianness.
* Style fixes from Denis Vlasenko.Rob Landley2006-04-291-147/+146
|
* Another patch from Denis Vlasenko:Rob 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
* From Dennis Vlasenko, Make hdparm smaller:Rob Landley2006-04-291-73/+49
| | | | | * Use combined no_scsi_no_xt() * Have common unsigned char args[4] = {WIN_SETFEATURES,0,0,0};
* Cleanup to hdparm by tito.Rob Landley2006-04-291-12/+11
|
* Patch from tito to update output of hdparm.Rob Landley2006-04-281-12/+22
|
* Patch from Tito to fix printing null and make output look like hdparm 6.3.Rob Landley2006-04-171-5/+5
|
* use more boiler plate GPL noticesMike Frysinger2006-04-161-3/+1
|