busybox/util-linux
Denys Vlasenko ddf7850f2b fdisk: add a warning and truncate disks with >= 2^32 sectors
As a result, for sectors we can use uint32_t instead of long long,
and on 32 bits it has drastic effects:

function                                             old     new   delta
get_geometry                                         619     646     +27
set_sun_partition                                    148     150      +2
get_partition                                        134     135      +1
xbsd_write_bootstrap                                 382     381      -1
xbsd_readlabel                                       247     246      -1
bsd_select                                          1674    1672      -2
sun_other_endian                                       4       1      -3
scsi_disk                                              4       1      -3
floppy                                                 4       1      -3
fdisk_main                                          3735    3732      -3
read_maybe_empty                                      43      37      -6
create_doslabel                                      111     104      -7
read_line                                             97      88      -9
add_logical                                          117     107     -10
write_table                                          599     588     -11
new_partition                                       1684    1670     -14
list_disk_geometry                                   229     215     -14
wrong_p_order                                        130     110     -20
xselect                                             3142    3114     -28
seek_sector                                           71      40     -31
get_boot                                            1576    1533     -43
fill_bounds                                          174     128     -46
delete_partition                                     603     551     -52
list_table                                          1401    1232    -169
set_partition                                        459     286    -173
verify                                              1840    1495    -345
add_partition                                       2486    1270   -1216
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/24 up/down: 30/-2210)       Total: -2180 bytes
   text    data     bss     dec     hex filename
 848812     460    7116  856388   d1144 busybox_old
 846620     460    7108  854188   d08ac busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-09-16 03:03:13 +02:00
..
volume_id use PACKED macro insted of open-coding GCC-ism 2009-09-16 00:58:11 +02:00
acpid.c *: mass renaming of USE_XXXX to IF_XXXX 2009-04-21 11:09:40 +00:00
blkid.c blkid: vda forgot to svn add it again. vda is stupid 2008-10-19 17:47:31 +00:00
Config.in fix dependencies of FEATURE_GETOPT_LONG 2009-07-04 16:50:43 +02:00
dmesg.c dmesg: try to detect buffer size 2009-07-10 14:14:14 +02:00
fbset.c remove some GNUisms. by Dan Fandrich (dan AT coneharvesters.com) 2009-09-06 02:36:23 +02:00
fdformat.c Fix forgotten license comments 2008-12-07 00:52:58 +00:00
fdisk_aix.c fdisk: add a warning and truncate disks with >= 2^32 sectors 2009-09-16 03:03:13 +02:00
fdisk_osf.c fdisk: add a warning and truncate disks with >= 2^32 sectors 2009-09-16 03:03:13 +02:00
fdisk_sgi.c fdisk: add a warning and truncate disks with >= 2^32 sectors 2009-09-16 03:03:13 +02:00
fdisk_sun.c fdisk: add a warning and truncate disks with >= 2^32 sectors 2009-09-16 03:03:13 +02:00
fdisk.c fdisk: add a warning and truncate disks with >= 2^32 sectors 2009-09-16 03:03:13 +02:00
findfs.c findfs,mount: trivial build fix and whitespace fiexs 2008-02-19 11:29:46 +00:00
freeramdisk.c move libc related stuff out of platform.h 2009-07-08 02:58:38 +02:00
fsck_minix.c fix mountpoint test to not prevemt mkfs_xxx from making image in any file 2009-07-18 16:22:26 +02:00
getopt.c getopt: FEATURE_GETOPT_LONG for -l; rename GETOPT_LONG to LONG_OPTS 2009-06-19 12:10:38 +02:00
hexdump.c more C standard compat fixes from Dan Fandrich 2009-09-06 12:47:55 +02:00
hwclock.c more C standard compat fixes from Dan Fandrich 2009-09-06 12:47:55 +02:00
ipcrm.c - use EXIT_{SUCCESS,FAILURE}. No object-code changes 2008-05-19 09:29:47 +00:00
ipcs.c *: rename ATTRIBUTE_XXX to just XXX. 2008-07-05 09:18:54 +00:00
Kbuild scriptreplay: new applet. +423 bytes 2009-05-19 17:36:16 +02:00
losetup.c - commentary typo fix 2008-07-21 15:29:36 +00:00
mdev.c mdev: be more permissive on errors (dont die): mdev -s users want that 2009-07-02 13:17:10 +02:00
minix.h - s/super.block/superblock/g; # for consistency; -1b 2008-07-21 13:33:22 +00:00
mkfs_minix.c fix mountpoint test to not prevemt mkfs_xxx from making image in any file 2009-07-18 16:22:26 +02:00
mkfs_vfat.c use PACKED macro insted of open-coding GCC-ism 2009-09-16 00:58:11 +02:00
mkswap.c mkswap: separate UUID feature 2009-06-19 13:14:48 +02:00
more.c *: reduce #ifdef forest 2009-06-05 14:55:26 +02:00
mount.c mount: do not execute "mount.(null)" :) 2009-09-15 23:00:09 +02:00
pivot_root.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
rdate.c *: rename ATTRIBUTE_XXX to just XXX. 2008-07-05 09:18:54 +00:00
rdev.c - add new applet rdev (Grant Erickson) 2008-08-19 11:28:52 +00:00
readprofile.c libbb: [x]fopen_for_{read,write} introduced and used. 2008-07-21 23:05:26 +00:00
rtcwake.c getopt: FEATURE_GETOPT_LONG for -l; rename GETOPT_LONG to LONG_OPTS 2009-06-19 12:10:38 +02:00
script.c getopt: FEATURE_GETOPT_LONG for -l; rename GETOPT_LONG to LONG_OPTS 2009-06-19 12:10:38 +02:00
scriptreplay.c scriptreplay: show help text if run with no arguments 2009-07-19 23:11:45 +02:00
setarch.c setarch: do not try to use non-existent data in argv[] 2008-08-23 23:15:17 +00:00
swaponoff.c *: rename ATTRIBUTE_XXX to just XXX. 2008-07-05 09:18:54 +00:00
switch_root.c move libc related stuff out of platform.h 2009-07-08 02:58:38 +02:00
umount.c move libc related stuff out of platform.h 2009-07-08 02:58:38 +02:00