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-w32-afc4113ed747330c7f0cc281618bf3e19579810d.tar.gz busybox-w32-afc4113ed747330c7f0cc281618bf3e19579810d.tar.bz2 busybox-w32-afc4113ed747330c7f0cc281618bf3e19579810d.zip | |
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" \ | |||
| 757 | #define dos2unix_full_usage \ | 757 | #define dos2unix_full_usage \ |
| 758 | "Convert FILE from dos to unix format.\n" \ | 758 | "Convert FILE from dos to unix format.\n" \ |
| 759 | "When no file is given, use stdin/stdout.\n" \ | 759 | "When no file is given, use stdin/stdout.\n" \ |
| 760 | "\nOptions:\n" \ | 760 | "\nOptions:" \ |
| 761 | "\n -u dos2unix" \ | 761 | "\n -u dos2unix" \ |
| 762 | "\n -d unix2dos" | 762 | "\n -d unix2dos" |
| 763 | 763 | ||
| @@ -1024,7 +1024,7 @@ USE_FEATURE_BRCTL_FANCY("\n" \ | |||
| 1024 | "[-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK" | 1024 | "[-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK" |
| 1025 | #define fdisk_full_usage \ | 1025 | #define fdisk_full_usage \ |
| 1026 | "Change partition table\n" \ | 1026 | "Change partition table\n" \ |
| 1027 | "\nOptions:\n" \ | 1027 | "\nOptions:" \ |
| 1028 | "\n -u Start and End are in sectors (instead of cylinders)" \ | 1028 | "\n -u Start and End are in sectors (instead of cylinders)" \ |
| 1029 | "\n -l Show partition table for each DISK, then exit" \ | 1029 | "\n -l Show partition table for each DISK, then exit" \ |
| 1030 | USE_FEATURE_FDISK_BLKSIZE( \ | 1030 | USE_FEATURE_FDISK_BLKSIZE( \ |
| @@ -1213,13 +1213,14 @@ USE_FEATURE_BRCTL_FANCY("\n" \ | |||
| 1213 | #define fuser_trivial_usage \ | 1213 | #define fuser_trivial_usage \ |
| 1214 | "[options] FILE or PORT/PROTO" | 1214 | "[options] FILE or PORT/PROTO" |
| 1215 | #define fuser_full_usage \ | 1215 | #define fuser_full_usage \ |
| 1216 | "Options:\n" \ | 1216 | "Find processes which use FILEs or PORTs\n" \ |
| 1217 | " -m Show all processes on the same mounted fs\n" \ | 1217 | "\nOptions:" \ |
| 1218 | " -s Don't print or kill anything\n" \ | 1218 | "\n -m Find processes which use same fs as FILEs" \ |
| 1219 | " -4 Search only IPv4 space\n" \ | 1219 | "\n -4 Search only IPv4 space" \ |
| 1220 | " -6 Search only IPv6 space\n" \ | 1220 | "\n -6 Search only IPv6 space" \ |
| 1221 | " -k Kill all processes that match\n" \ | 1221 | "\n -s Silent: just exit with 0 if any processes are found" \ |
| 1222 | " -SIGNAL Signal to send (default: TERM)" | 1222 | "\n -k Kill found processes (otherwise display PIDs)" \ |
| 1223 | "\n -SIGNAL Signal to send (default: TERM)" | ||
| 1223 | 1224 | ||
| 1224 | #define getenforce_trivial_usage | 1225 | #define getenforce_trivial_usage |
| 1225 | #define getenforce_full_usage | 1226 | #define getenforce_full_usage |
| @@ -4093,7 +4094,7 @@ USE_FEATURE_BRCTL_FANCY("\n" \ | |||
| 4093 | "[flags] FILESYSTEM|DIRECTORY" | 4094 | "[flags] FILESYSTEM|DIRECTORY" |
| 4094 | #define umount_full_usage \ | 4095 | #define umount_full_usage \ |
| 4095 | "Unmount file systems" \ | 4096 | "Unmount file systems" \ |
| 4096 | "\n\nOptions:\n" \ | 4097 | "\n\nOptions:" \ |
| 4097 | USE_FEATURE_UMOUNT_ALL( \ | 4098 | USE_FEATURE_UMOUNT_ALL( \ |
| 4098 | "\n -a Unmount all file systems" USE_FEATURE_MTAB_SUPPORT(" in /etc/mtab")) \ | 4099 | "\n -a Unmount all file systems" USE_FEATURE_MTAB_SUPPORT(" in /etc/mtab")) \ |
| 4099 | USE_FEATURE_MTAB_SUPPORT( \ | 4100 | USE_FEATURE_MTAB_SUPPORT( \ |
| @@ -4168,7 +4169,7 @@ USE_FEATURE_BRCTL_FANCY("\n" \ | |||
| 4168 | #define unix2dos_full_usage \ | 4169 | #define unix2dos_full_usage \ |
| 4169 | "Convert FILE from unix to dos format.\n" \ | 4170 | "Convert FILE from unix to dos format.\n" \ |
| 4170 | "When no file is given, use stdin/stdout.\n" \ | 4171 | "When no file is given, use stdin/stdout.\n" \ |
| 4171 | "\nOptions:\n" \ | 4172 | "\nOptions:" \ |
| 4172 | "\n -u dos2unix" \ | 4173 | "\n -u dos2unix" \ |
| 4173 | "\n -d unix2dos" | 4174 | "\n -d unix2dos" |
| 4174 | 4175 | ||
