NetBSD/sys/dev/wscons
riastradh d1579b2d70 Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)
2018-09-03 16:29:22 +00:00
..
ascii.h
files.wscons Add WSDISPLAY_MULTICONS option which allows wsdisplay to cooperate with 2017-12-18 18:59:32 +00:00
linux_keymap.c Instead of a Linux keymap, convert Linux event codes to USB scan codes and 2017-08-31 19:55:43 +00:00
linux_keymap.h Instead of a Linux keymap, convert Linux event codes to USB scan codes and 2017-08-31 19:55:43 +00:00
Makefile
mra.c Fix spello in a comment 2018-03-10 23:25:59 +00:00
tpcalib.c don't forget to store bounds rectangle in raw mode 2017-04-06 20:44:39 +00:00
tpcalibvar.h
unicode.h
vt100_base.h
wsbell.c Remove redundant includes of malloc.h 2017-11-03 19:49:23 +00:00
wsbelldata.h Move duplicate definition of SETBELL macro into wsbelldata.h. 2017-06-13 00:42:27 +00:00
wsbellmux.c New device wsbell - allows for a console beep for non pckbds (usb etc). 2017-06-11 03:55:56 +00:00
wsbellmuxvar.h New device wsbell - allows for a console beep for non pckbds (usb etc). 2017-06-11 03:55:56 +00:00
wsbellvar.h Change sc_dying from u_char to bool. 2017-06-13 00:54:37 +00:00
wscons_callbacks.h
wscons_raster.h
wscons_rfont.h
wscons_rinit.c Rename min/max -> uimin/uimax for better honesty. 2018-09-03 16:29:22 +00:00
wscons_rops.c
wsconsio.h Instead of a Linux keymap, convert Linux event codes to USB scan codes and 2017-08-31 19:55:43 +00:00
wsdisplay_compat_usl.c use sizeof(*var) instead of sizeof(type) 2017-11-04 01:52:09 +00:00
wsdisplay_glyphcache.c Rename min/max -> uimin/uimax for better honesty. 2018-09-03 16:29:22 +00:00
wsdisplay_glyphcachevar.h make glyph caches reconfigurable 2017-06-02 19:30:10 +00:00
wsdisplay_usl_io.h
wsdisplay_util.c
wsdisplay_vcons_util.c
wsdisplay_vcons.c - add a cookie to show_screen_cb() 2017-06-02 19:33:51 +00:00
wsdisplay_vconsvar.h - add a cookie to show_screen_cb() 2017-06-02 19:33:51 +00:00
wsdisplay.c ifdef speeding ticket. 2017-12-18 22:44:30 +00:00
wsdisplayvar.h add support for loading fonts in vcons and subsequently resizing screens 2017-05-19 19:22:33 +00:00
wsemul_dumb.c Rename min/max -> uimin/uimax for better honesty. 2018-09-03 16:29:22 +00:00
wsemul_sun.c Rename min/max -> uimin/uimax for better honesty. 2018-09-03 16:29:22 +00:00
wsemul_vt100_chars.c Use __arraycount a bunch 2017-11-03 19:20:27 +00:00
wsemul_vt100_keys.c
wsemul_vt100_subr.c Rename min/max -> uimin/uimax for better honesty. 2018-09-03 16:29:22 +00:00
wsemul_vt100.c Rename min/max -> uimin/uimax for better honesty. 2018-09-03 16:29:22 +00:00
wsemul_vt100var.h
wsemulconf.c
wsemulvar.h add support for loading fonts in vcons and subsequently resizing screens 2017-05-19 19:22:33 +00:00
wsevent.c timespec_to_timespec50 - don't leak kernel memory in struct padding. 2018-06-14 10:30:55 +00:00
wseventvar.h
wskbd.c If the wskbd driver returns type 0, return "no data" from wskbd_cngetc 2017-12-18 18:57:21 +00:00
wskbdutil.c Use __arraycount a bunch 2017-11-03 19:20:27 +00:00
wskbdvar.h
wsksymdef.h Add Turkish keyboard layout. 2018-02-19 14:34:17 +00:00
wsksymvar.h
wsmouse.c Remove redundant includes of malloc.h 2017-11-03 19:49:23 +00:00
wsmousevar.h
wsmux.c There is no longer a NWSBELL (since nothing depends on it), so there's no 2017-06-12 08:19:22 +00:00
wsmuxvar.h Always include declarations/definitions for NWSMUX and NWSDISPLAY even 2017-06-12 07:10:07 +00:00