world: Staticize various variables and also remove a couple of unused ones.
<sys/time.h>: Add 3rd arg to timespecadd()/sub() and make them public.* Switch to the three argument versions of the timespecadd() and timespecsub() macros. These are now the predominant ones. Fr
<sys/time.h>: Add 3rd arg to timespecadd()/sub() and make them public.* Switch to the three argument versions of the timespecadd() and timespecsub() macros. These are now the predominant ones. FreeBSD, OpenBSD, NetBSD, and Solaris (albeit only for the kernel) have them.* Make those macros public too. This allows for a number of cleanups where they were defined locally.Pointed-out-by: zrjReviewed-by: dillon
show more ...
tetris(6): Fix -Wformat-truncation warning.Also make use of macro instead of relying on magic numbers for keys.While there, do a similar thing in sail(6).
Add __attribute__((__noreturn__)) to various function prototypes in games/.This general cleanup is useful in various ways. It helps the compileroptimize better and it also helps later GCCs detect
Add __attribute__((__noreturn__)) to various function prototypes in games/.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
games: Make benefits for the glorious curses lib.Consolidate all private ncurses handling in top level Makefile.inc in games/.Will simplify upcoming base ncurses library update.While there, perf
games: Make benefits for the glorious curses lib.Consolidate all private ncurses handling in top level Makefile.inc in games/.Will simplify upcoming base ncurses library update.While there, perfom the same for private crypto lib even if it a single case.
Bring in OpenBSD's tetris(6).Will be handy to test upcoming ncurses update.Taken-from: OpenBSD