mined(1): Fix -Wundef.
world/kernel: Use the rounddown() macro in various places.Tested-by: zrj
Add __attribute__((__noreturn__)) to various function prototypes in bin/.This general cleanup is useful in various ways. It helps the compileroptimize better and it also helps later GCCs detect be
Add __attribute__((__noreturn__)) to various function prototypes in bin/.This general cleanup is useful in various ways. It helps the compileroptimize better and it also helps later GCCs detect better when to give-Wimplicit-fallthrough warnings and when not.Found-with: -Wsuggest-attribute=noreturn
show more ...
mined(1): Fix alignment issue on strict alignment architectures.Reported-by: Eitan Adler <eadler@freebsd.org>Dragonfly-bug: <http://bugs.dragonflybsd.org/issues/2541>
mined.1: Move some info from CAVEATS to DESCRIPTION.mandoc(1) warns about CAVEATS not being in conventional order andsilencing it by moving the section would have caused it to be behindHISTORY ev
mined.1: Move some info from CAVEATS to DESCRIPTION.mandoc(1) warns about CAVEATS not being in conventional order andsilencing it by moving the section would have caused it to be behindHISTORY even.However, the info is more important than the editor's history, soinstead add it to the DESCRIPTION, which is short in this case, anyway.Reported-by: Eitan Adler <eadler@freebsd.org>Dragonfly-bug: <http://bugs.dragonflybsd.org/issues/2540>
gcc47 build fixes: Unused-but-set-variable + more warningsThe following programs fail to build with gcc47 due to the newunused-but-set-variable warning. They've been fixed in various ways.The on
gcc47 build fixes: Unused-but-set-variable + more warningsThe following programs fail to build with gcc47 due to the newunused-but-set-variable warning. They've been fixed in various ways.The ones set with WARNS=3 suppress cast-qual warningThere is a single enum-compare error too.This effort is not complete.bin/csh pass -Wno-unused-but-set-variablebin/mined source file modifiedbin/sh set WARNS=3crypto/openssh source file modified (2)gnu/lib/libdialog source file modifiedgnu/usr.bin/gdb/kgdb source file modifiedgnu/usr.bin/rcs source file modifiedlib/libalias source file modifiedlib/libdevstat source file modifiedlib/libdm set WARNS=3lib/libevtr source file modifiedlib/libldns pass -Wno-unused-but-set-variablelib/libncp source file modifiedlib/libpam set WARNS=3lib/libsmdb pass -Wno-unused-but-set-variablelib/libstand source file modified (4)lib/libtcplay source file modifiedlib/libthread_xu source file modified (2)libexec/rshd source file modifiedlibexec/telnetd source file modifiedlibexec/ypxfr pass -Wno-enum-comparesbin/atm/fore_dnld source file modifiedsbin/atm/ilmid source file modifiedsbin/atm/camcontrol source file modifief (2)sbin/ccdconfig source file modifiedsbin/cryptdisks source file modifiedsbin/ffsinfo source file modifiedsbin/fsirand source file modifiedsbin/growfs source file modifiedsbin/hammer source file modifiedsbin/ldconfig source file modified (real bug here?)sbin/mount source file modifiedsbin/mount_ufs source file modifiedsbin/mount_extfs source file modifiedsbin/mountd source file modifiedsbin/natd source file modifiedsbin/newfs source file modifiedsbin/ping6 set WARNS=3, source modifiedsbin/rcorder source file modifiedsbin/reboot source file modified (real bug here?)sbin/udevd source file modifiedsbin/usched source file modifiedsbin/vinum source file modifiedsys/boot/common source file modifiedsys/boot/pc32/loader source file modifiedusr.bin/brandelf source file modifiedusr.bin/bzip2 pass -Wno-unused-but-set-variableusr.bin/dfregress source file modifiedusr.bin/ee source file modifiedusr.bin/less pass -Wno-unused-but-set-variable
Generally use NULL instead of explicitly casting 0 to some pointer type (part2).
* Fix some cases where NULL was used but 0 was meant (and vice versa).* Remove some bogus casts of NULL to (void *).
Remove some redundancy and add some markup.
Remove redundant .Pp macros right before .El, .Sh and .Ss.
Fix xref order.
Fix some manlint nits and add .Dx where appropriate.
Cleanup:- In function definitions, move the type on a line of its own.- Ansify function definitions.- Remove (void) casts for discarded return values.
- include <stdlib.h>- remove register keywords- remove (void) casts before function calls- ANSI function declarations- proper variable initialization- constify strings where necessary- remove p
- include <stdlib.h>- remove register keywords- remove (void) casts before function calls- ANSI function declarations- proper variable initialization- constify strings where necessary- remove prototype macro- style(9) issues- bump WARNS to 6 (no longer override bin/Makefile.inc)Submitted-by: sephe
Remove trailing blank space characters. mdoc(7) explicitly recommends doingso lest troff might get confused.
We are DragonFly. Besides, FreeBSD doesn't include mined at all.
- Document mined(1) key bindingsSubmitted by: Steven G. Kargl <kargl@troutmask.apl.washington.edu>
de-errno
Ignore additional stty control characters like ^Y which interfere withthe editor's operation.Reported-by: Jasse Jansson <jasse@hornet.ac>
flesh out a tiny bit so people at least know what the help key is.
Add 'mined' to the bin build and add a minimal manual page for it.
Support XTERM function key escape sequences.
Make ^L redraw the screen, like people expect.Make ^Z tty-stop the editor, like people expect (but don't try todeal with window resizes).
Bring in PicoBSD changes from the FreeBSD Attic.Prepend the Minix LICENSE in all source files.Add a few other random defines... slightly different from the way FreeBSDdid it.
Bring in the minix editor 'mined', in its original form except for necessaryDragonFly CVS IDs at the top of each file. Bring the LICENSE file in fromhttp://www.cs.vu.nl/pub/minix/LICENSE.