summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Kazior <kazikcz@gmail.com>2020-07-25 19:14:35 +0200
committerMichal Kazior <kazikcz@gmail.com>2020-07-25 19:18:41 +0200
commit1cc7f499cf576dcc621edc33a3c5294814964ca8 (patch)
treea532f1c715def757428bcf7ceebd5e2a9eaca529
parent715b50ecba88d8cb83166c86567a51b165846ce6 (diff)
downloadgcompat-1cc7f499cf576dcc621edc33a3c5294814964ca8.tar.gz
gcompat-1cc7f499cf576dcc621edc33a3c5294814964ca8.tar.bz2
gcompat-1cc7f499cf576dcc621edc33a3c5294814964ca8.tar.xz
gcompat-1cc7f499cf576dcc621edc33a3c5294814964ca8.zip
wchar: implement __vfwprintf_chk
Signed-off-by: Michal Kazior <kazikcz@gmail.com>
-rw-r--r--libgcompat/wchar.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libgcompat/wchar.c b/libgcompat/wchar.c
index 4ed7a7b..60384fb 100644
--- a/libgcompat/wchar.c
+++ b/libgcompat/wchar.c
@@ -9,6 +9,19 @@ int __vswprintf_chk(wchar_t *s, size_t n, int flag, size_t slen,
/**
* 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
+ *
* LSB 5.0: LSB-Core-generic/baselib---swprintf-chk-1.html
*/
int __swprintf_chk(wchar_t *s, size_t n, int flag, size_t slen,