diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-17 08:44:58 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-17 08:44:58 +0000 |
commit | afc4113ed747330c7f0cc281618bf3e19579810d (patch) | |
tree | 19f473eec85cd12174b4ba59fb0a807559366c18 /include | |
parent | cdf62770af9e8bf7d5bb2344ddef8acb3216cfe2 (diff) | |
download | busybox-afc4113ed747330c7f0cc281618bf3e19579810d.tar.gz |
fuser: bugfixes and shrink. It was assuming that xmalloc zeroes returned area!
function old new delta
scan_dir_links - 106 +106
add_inode - 89 +89
scan_link - 78 +78
file_to_dev_inode - 64 +64
search_dev_inode - 63 +63
add_pid - 39 +39
packed_usage 23948 23928 -20
fuser_add_pid 49 - -49
fuser_file_to_dev_inode 64 - -64
fuser_search_dev_inode 77 - -77
fuser_scan_link 91 - -91
fuser_scan_dir_links 108 - -108
fuser_add_inode 124 - -124
fuser_main 1450 1243 -207
------------------------------------------------------------------------------
(add/remove: 6/6 grow/shrink: 0/2 up/down: 439/-740) Total: -301 bytes
text data bss dec hex filename
798327 658 7428 806413 c4e0d busybox_old
797988 658 7428 806074 c4cba busybox_unstripped
Diffstat (limited to 'include')
-rw-r--r-- | include/usage.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/include/usage.h b/include/usage.h index fdf96d256..2a49454a1 100644 --- a/include/usage.h +++ b/include/usage.h @@ -757,7 +757,7 @@ USE_FEATURE_BRCTL_FANCY("\n" \ #define dos2unix_full_usage \ "Convert FILE from dos to unix format.\n" \ "When no file is given, use stdin/stdout.\n" \ - "\nOptions:\n" \ + "\nOptions:" \ "\n -u dos2unix" \ "\n -d unix2dos" @@ -1024,7 +1024,7 @@ USE_FEATURE_BRCTL_FANCY("\n" \ "[-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK" #define fdisk_full_usage \ "Change partition table\n" \ - "\nOptions:\n" \ + "\nOptions:" \ "\n -u Start and End are in sectors (instead of cylinders)" \ "\n -l Show partition table for each DISK, then exit" \ USE_FEATURE_FDISK_BLKSIZE( \ @@ -1213,13 +1213,14 @@ USE_FEATURE_BRCTL_FANCY("\n" \ #define fuser_trivial_usage \ "[options] FILE or PORT/PROTO" #define fuser_full_usage \ - "Options:\n" \ - " -m Show all processes on the same mounted fs\n" \ - " -s Don't print or kill anything\n" \ - " -4 Search only IPv4 space\n" \ - " -6 Search only IPv6 space\n" \ - " -k Kill all processes that match\n" \ - " -SIGNAL Signal to send (default: TERM)" + "Find processes which use FILEs or PORTs\n" \ + "\nOptions:" \ + "\n -m Find processes which use same fs as FILEs" \ + "\n -4 Search only IPv4 space" \ + "\n -6 Search only IPv6 space" \ + "\n -s Silent: just exit with 0 if any processes are found" \ + "\n -k Kill found processes (otherwise display PIDs)" \ + "\n -SIGNAL Signal to send (default: TERM)" #define getenforce_trivial_usage #define getenforce_full_usage @@ -4093,7 +4094,7 @@ USE_FEATURE_BRCTL_FANCY("\n" \ "[flags] FILESYSTEM|DIRECTORY" #define umount_full_usage \ "Unmount file systems" \ - "\n\nOptions:\n" \ + "\n\nOptions:" \ USE_FEATURE_UMOUNT_ALL( \ "\n -a Unmount all file systems" USE_FEATURE_MTAB_SUPPORT(" in /etc/mtab")) \ USE_FEATURE_MTAB_SUPPORT( \ @@ -4168,7 +4169,7 @@ USE_FEATURE_BRCTL_FANCY("\n" \ #define unix2dos_full_usage \ "Convert FILE from unix to dos format.\n" \ "When no file is given, use stdin/stdout.\n" \ - "\nOptions:\n" \ + "\nOptions:" \ "\n -u dos2unix" \ "\n -d unix2dos" |