Move the IOCTLTRIM ioctl to a better header and rename it to DAIOCTRIM. <sys/ioctl_compat.h> really is only for old tty related stuff. Also bump __DragonFly_version, because there is one port which uses IOCTLTRIM currently, i.e. benchmarks/fio. We'll send a patch upstream that switches it to DAIOCTRIM, and once the updated version has hit the /usr/dports tree, I will remove IOCTLTRIM from base.
ufs: Rename a number of UFS constants throughout the tree. ROOTINO -> UFS_ROOTINO WINO -> UFS_WINO NDADDR -> UFS_NDADDR NIADDR -> UFS_NIADDR MAXSYMLINKLEN -> UFS1_MAXSYMLINKLEN This helps to better sepate them from identically named EXT2 constants which I'll rename in a later commit. It also helps with my makefs(8) port. I went with FreeBSD's names, so it is UFS1_MAXSYMLINKLEN even though we'll probably never have UFS2, but since they are in public headers, some stuff in dports might benefit from it in the future. For safety, bump <sys/param.h> too.
Add __attribute__((__noreturn__)) to various function prototypes in sbin/. This general cleanup is useful in various ways. It helps the compiler optimize better and it also helps later GCCs detect better when to give -Wimplicit-fallthrough warnings and when not. Found-with: -Wsuggest-attribute=noreturn
gcc47 build fixes: Unused-but-set-variable + more warnings The following programs fail to build with gcc47 due to the new unused-but-set-variable warning. They've been fixed in various ways. The ones set with WARNS=3 suppress cast-qual warning There is a single enum-compare error too. This effort is not complete. bin/csh pass -Wno-unused-but-set-variable bin/mined source file modified bin/sh set WARNS=3 crypto/openssh source file modified (2) gnu/lib/libdialog source file modified gnu/usr.bin/gdb/kgdb source file modified gnu/usr.bin/rcs source file modified lib/libalias source file modified lib/libdevstat source file modified lib/libdm set WARNS=3 lib/libevtr source file modified lib/libldns pass -Wno-unused-but-set-variable lib/libncp source file modified lib/libpam set WARNS=3 lib/libsmdb pass -Wno-unused-but-set-variable lib/libstand source file modified (4) lib/libtcplay source file modified lib/libthread_xu source file modified (2) libexec/rshd source file modified libexec/telnetd source file modified libexec/ypxfr pass -Wno-enum-compare sbin/atm/fore_dnld source file modified sbin/atm/ilmid source file modified sbin/atm/camcontrol source file modifief (2) sbin/ccdconfig source file modified sbin/cryptdisks source file modified sbin/ffsinfo source file modified sbin/fsirand source file modified sbin/growfs source file modified sbin/hammer source file modified sbin/ldconfig source file modified (real bug here?) sbin/mount source file modified sbin/mount_ufs source file modified sbin/mount_extfs source file modified sbin/mountd source file modified sbin/natd source file modified sbin/newfs source file modified sbin/ping6 set WARNS=3, source modified sbin/rcorder source file modified sbin/reboot source file modified (real bug here?) sbin/udevd source file modified sbin/usched source file modified sbin/vinum source file modified sys/boot/common source file modified sys/boot/pc32/loader source file modified usr.bin/brandelf source file modified usr.bin/bzip2 pass -Wno-unused-but-set-variable usr.bin/dfregress source file modified usr.bin/ee source file modified usr.bin/less pass -Wno-unused-but-set-variable
Remove all dependancies newfs had on accessing the disklabel. Use getdisktabbyname() instead of getdiskbyname() and use DIOCGPART instead of DIOCGDINFO to get the geometry information. Also make the -v option work properly with regular files. NOTE: newfs will no longer retrieve the fs fragment and block size fields from the disklabel, so non-default operation must be specified with options. newfs will also no longer attempt to update the disklabel.