libc: Replace vis(3) and unvis(3) files with NetBSD versions
commit4be4de019fe4a28d5378192245290895096def17
authorFrançois Tigeot <ftigeot@wolfpond.org>
Mon, 9 Apr 2018 19:54:26 +0000 (9 21:54 +0200)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Mon, 9 Apr 2018 19:57:11 +0000 (9 21:57 +0200)
tree08789d98a22e1c61dd1e3c1ef24481f233d12c59
parent29f13cb6490754babc4058fa2e432c23471f53a9
libc: Replace vis(3) and unvis(3) files with NetBSD versions

* Rendering the corresponding APIs compatible with NetBSD and FreeBSD.

* Keep strnvis() as-is, keeping it compatible with previous DragonFly
  versions, OpenBSD and libbsd

* We already had the original OpenBSD version of strnvis(), which
  predates the NetBSD one by more than 10 years

* New userland utilities code partially obtained from FreeBSD.

Reviewed-by: swildner
include/vis.h
lib/libc/gen/Makefile.inc
lib/libc/gen/Symbol.map
lib/libc/gen/unvis.3
lib/libc/gen/unvis.c
lib/libc/gen/vis.3
lib/libc/gen/vis.c
usr.bin/showmount/showmount.c
usr.sbin/fstyp/fstyp.c