summaryrefslogtreecommitdiff
path: root/util-linux/swaponoff.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* swapon: optional -p PRIO support (by Francois Barel <frabar666 AT gmail.com>)Denis Vlasenko2008-05-181-6/+31
| | | | | | | | | | function old new delta swap_on_off_main 153 216 +63 packed_usage 24190 24214 +24 swap_enable_disable 127 131 +4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 91/0) Total: 91 bytes
* *: shrink: use Vladimir's "o+" specifier instead of xatou(opt_param)Denis Vlasenko2008-03-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta getopt32 1370 1385 +15 sulogin_main 490 494 +4 realpath_main 84 86 +2 sleep_main 76 77 +1 mt_main 256 257 +1 printenv_main 75 74 -1 fdformat_main 546 545 -1 usleep_main 44 42 -2 setlogcons_main 77 75 -2 ed_main 2654 2649 -5 deallocvt_main 69 64 -5 addgroup_main 373 368 -5 mkfs_minix_main 2989 2982 -7 tail_main 1221 1213 -8 sv_main 1254 1241 -13 du_main 348 328 -20 tftp_main 325 302 -23 split_main 581 558 -23 nc_main 1000 977 -23 diff_main 891 868 -23 arping_main 1797 1770 -27 ls_main 893 847 -46 od_main 2797 2750 -47 readprofile_main 1944 1895 -49 tcpudpsvd_main 1973 1922 -51 udhcpc_main 2590 2513 -77 grep_main 824 722 -102 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/22 up/down: 23/-560) Total: -537 bytes text data bss dec hex filename 796973 658 7428 805059 c48c3 busybox_old 796479 662 7420 804561 c46d1 busybox_unstripped
* swaponoff: prevent arithmetic overflow (spotted by Paul Fox ↵Denis Vlasenko2007-11-051-1/+1
| | | | <pgf@brightstareng.com>)
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>.Denis Vlasenko2007-10-011-1/+1
| | | | | 263 bytes saved.
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-181-1/+1
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* swapon: reinstate hole check but reduce it to warningDenis Vlasenko2007-03-141-2/+2
| | | | inode_hash: remove unused variable
* swapon: random shrinkageDenis Vlasenko2007-03-121-5/+4
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* bb_applet_name -> applet_nameDenis Vlasenko2006-10-031-1/+1
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-1/+1
| | | | | | | | 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.
* Change license statements (and clean up headers) on some of the files thatRob Landley2006-09-221-4/+1
| | | | Erik or I are primary copyright holders on.
* - fix copy'n paste errors that got introduced when switching to the shorter ↵Bernhard Reutner-Fischer2006-09-131-1/+1
| | | | | | boilerplate. No object code changes.
* Remove pointless "const". Bloatcheck says 0 bytes difference.Rob Landley2006-09-121-1/+1
|
* Patch from Yann Morin to put BLKGETSIZE64 in platform.h had rather a lot ofRob Landley2006-06-151-4/+1
| | | | | | 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.)
* Patch from Denis Vlasenko to add xstat() and use it.Rob Landley2006-03-131-2/+1
|
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-1/+1
| | | | definitions. (That should only be on prototypes.)
* accept unlimited number of swap arguments like the real swap{on,off} and ↵Mike Frysinger2005-09-161-8/+11
| | | | shrink do_em_all a little
* whitespace/syntax cleanups, dont mind me :pMike Frysinger2005-09-131-36/+22
|
* Cleanup patch from Tito.Rob Landley2005-09-131-36/+11
|
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-2/+1
|
* Remove remaining libc5 support codeEric Andersen2003-07-221-7/+0
|
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-141-2/+2
|
* Major coreutils update.Manuel Novoa III2003-03-191-7/+7
|
* Test for holes in swapfilesEric Andersen2002-11-031-0/+12
| | | | -Erik
* last_patch64 from vodz:0_60_5Eric Andersen2002-10-261-15/+17
| | | | | | | | | | | | | The following usage from original user: $ ./busybox swapon -a Have typo problem: swapon: swapon: Operation not permitted But regular version: swapon: /dev/hda5: Operation not permitted Patch attached, reduced 9 bytes and advanced exit code also.
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-241-3/+2
| | | | -Erik
* Scrub up some function prototypes.Eric Andersen2001-10-181-1/+1
| | | | -Erik
* A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a fewEric Andersen2001-04-051-5/+8
| | | | | | shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can handle them sanely and all at once. -Erik
* A cleanup patch from Jeff Garzik to static-ify a number ofEric Andersen2001-03-091-2/+2
| | | | namespace polluting things that really should be static.
* Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanupEric Andersen2001-03-091-0/+1
| | | | | warnings with glibc 2.2 and use always use xfopen -Erik
* It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen2001-02-201-1/+1
| | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
* This patch, put together by Manuel Novoa III, is a merge of workEric Andersen2001-02-141-1/+1
| | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
* Removed trailing \n from error_msg{,_and_die} messages.Matt Kraai2001-01-311-1/+1
|
* Fix up copyright msgs. Bump version to 0.49 in preparation for0_49Eric Andersen2001-01-271-1/+1
| | | | | a release. Update the website with release details. -Erik
* Fix header file usage -- there were many unnecessary header files included inEric Andersen2001-01-271-1/+4
| | | | | | | busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik
* #define -> static const int. Also got rid of some big static buffers.Mark Whitley2001-01-231-2/+2
|
* Use busybox error handling functions wherever possible.Matt Kraai2000-12-221-8/+4
|
* Changed names of functions in utility.c and all affected files, to makeMark Whitley2000-12-071-1/+1
| | | | compliant with the style guide. Everybody rebuild your tags file!
* Stop using TRUE and FALSE for exit status.Matt Kraai2000-12-011-4/+3
|
* Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen2000-09-251-1/+1
| | | | -Erik
* Extract usage information into a separate file.Matt Kraai2000-07-161-19/+0
|
* Use global applet_name instead of local versions.Matt Kraai2000-07-121-6/+2
|
* Forgot to commit these cleanups it seems.Eric Andersen2000-07-111-1/+0
| | | | -Erik
* Remove yet more kernel header dependancies.Eric Andersen2000-07-101-1/+1
| | | | -Erik
* Make swaponoff compile cleanly under both libc5 and libc6.Eric Andersen2000-06-191-2/+4
| | | | -Erik
* * Fixed 'swapon -a' and 'swapoff -a', which were broken.Eric Andersen2000-06-071-1/+1
| | | | | | * Fixed 'mount -a' so it works as expected. * Implemented 'ls -R' (enabled by enabling BB_FEATURE_LS_RECURSIVE) -Erik
* Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELPErik Andersen2000-05-121-6/+12
| | | | | | | | which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik
* Upates to include copyright 2000 to everythingErik Andersen2000-04-131-1/+1
| | | | -Erik