From 1cc7f499cf576dcc621edc33a3c5294814964ca8 Mon Sep 17 00:00:00 2001 From: Michal Kazior Date: Sat, 25 Jul 2020 19:14:35 +0200 Subject: wchar: implement __vfwprintf_chk Signed-off-by: Michal Kazior --- libgcompat/wchar.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/libgcompat/wchar.c b/libgcompat/wchar.c index 4ed7a7b..60384fb 100644 --- a/libgcompat/wchar.c +++ b/libgcompat/wchar.c @@ -6,6 +6,19 @@ int __vswprintf_chk(wchar_t *s, size_t n, int flag, size_t slen, const wchar_t *format, va_list ap); +/** + * Convert formatted wide-character output, with stack checking + * + * LSB 5.0: LSB-Core-generic/baselib---vfwprintf-chk-1.html + */ +int __vfwprintf_chk(FILE *fp, int flag, const wchar_t *format, va_list ap) +{ + assert(fp != NULL); + assert(format != NULL); + + return vfwprintf(fp, format, ap); +} + /** * Convert formatted wide-character output, with stack checking * -- cgit v1.2.3-70-g09d2