Fix issue unveiled on NetBSD: Add PAL__vsnprintf shadow in PAL
authorKamil Rytarowski <n54@gmx.com>
Thu, 18 Feb 2016 22:41:56 +0000 (23:41 +0100)
committerKamil Rytarowski <n54@gmx.com>
Wed, 13 Apr 2016 06:56:05 +0000 (08:56 +0200)
commitfd1f866f28c71570a7ef80dd1159a5cd755f8bf3
treef489f5cf35f33a8527a94e19c5d1a057c34aa136
parentafdce3a592e5f6f2047bed057d121225be91743d
Fix issue unveiled on NetBSD: Add PAL__vsnprintf shadow in PAL

NetBSD's libc internally uses a function named _vsnprintf. We need to mask
PAL's version of this function to remove clash with the system. With it
snprintf(3) calls were jumping out of libc and landing back to PAL.

It was unveiled with many PAL tests.

Detailed documentation about _symbols in the NetBSD libc is documented
in the NetBSD sources in a file: src/lib/libc/README

Retire unneeded _vsnprintf().

Thanks Jan Vorli (Microsoft) for help with debugging.
Thanks Jan Kotas (Microsoft) for suggesting the right solution.

Fix #3199
src/ToolBox/SOS/Strike/strike.h
src/pal/inc/pal.h
src/pal/src/cruntime/printf.cpp
src/pal/src/cruntime/printfcpp.cpp
src/pal/src/cruntime/silent_printf.cpp