summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs
diff options
context:
space:
mode:
authorzehata <zenon.hans.taneka@dhs.sg>2018-12-08 11:26:43 -0600
committerJoel Sherrill <joel@rtems.org>2018-12-08 11:28:03 -0600
commit8e06affb9fcdb544c42706417adbcb2d4b8a9f59 (patch)
tree7268da3811798b4fc9290c2c8ec1470e9f09b18f /testsuites/psxtests/psxhdrs
parentImplement POSIX API Signature Compliance Tests for stddef.h (GCI 2018) (diff)
downloadrtems-8e06affb9fcdb544c42706417adbcb2d4b8a9f59.tar.bz2
psxhdrs: Added POSIX Compliance Test for wchar.h (GCI 2018)
Diffstat (limited to 'testsuites/psxtests/psxhdrs')
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/btowc.c36
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/fgetwc.c36
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/fgetws.c40
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/fputwc.c38
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/fputws.c40
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/fwide.c38
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/fwprintf.c40
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/fwscanf.c40
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/getwc.c36
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/getwchar.c33
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/iswalnum.c41
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/iswalpha.c41
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/iswcntrl.c41
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/iswctype.c43
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/iswdigit.c41
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/iswgraph.c41
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/iswlower.c41
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/iswprint.c37
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/iswpunct.c37
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/iswspace.c37
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/iswupper.c37
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/iswxdigit.c37
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/mbrlen.c40
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/mbrtowc.c41
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/mbsinit.c35
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/mbsnrtowcs.c42
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/mbsrtowcs.c41
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/open_wmemstream.c39
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/putwc.c38
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/putwchar.c36
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/swprintf.c40
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/swscanf.c38
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/towlower.c41
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/towupper.c41
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/ungetwc.c38
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/vfwprintf.c45
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/vfwscanf.c45
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/vswprintf.c47
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/vswscanf.c45
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/vwprintf.c43
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/vwscanf.c43
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcpcpy.c38
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcpncpy.c40
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcrtomb.c40
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcscasecmp.c38
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcscasecmp_l.c40
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcscat.c38
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcschr.c36
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcscmp.c36
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcscoll.c36
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcscoll_l.c38
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcscpy.c38
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcscspn.c36
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcsdup.c35
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcsnlen.c37
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcsnrtombs.c44
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcspbrk.c36
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcsrchr.c37
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcsrtombs.c42
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcsspn.c36
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcsstr.c38
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcstod.c38
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcstof.c38
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcstok.c40
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcstol.c38
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcstold.c38
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcstoll.c38
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcstoul.c38
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcstoull.c38
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcswidth.c38
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcsxfrm.c40
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcsxfrm_l.c42
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wctob.c36
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wctype.c36
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wcwidth.c37
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wmemchr.c39
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wmemcmp.c38
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wmemcpy.c40
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wmemmove.c39
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wmemset.c39
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wprintf.c36
-rw-r--r--testsuites/psxtests/psxhdrs/wchar/wscanf.c36
82 files changed, 3190 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxhdrs/wchar/btowc.c b/testsuites/psxtests/psxhdrs/wchar/btowc.c
new file mode 100644
index 0000000000..346379d7c7
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/btowc.c
@@ -0,0 +1,36 @@
+/**
+ * @file
+ * @brief btowc() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ int number;
+
+ number = 0;
+ return (btowc(number));
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/fgetwc.c b/testsuites/psxtests/psxhdrs/wchar/fgetwc.c
new file mode 100644
index 0000000000..02f1ff7a0a
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/fgetwc.c
@@ -0,0 +1,36 @@
+/**
+ * @file
+ * @brief fgetwc() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ FILE *file;
+
+ file = (void *) 0;
+ return fgetwc(file);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/fgetws.c b/testsuites/psxtests/psxhdrs/wchar/fgetws.c
new file mode 100644
index 0000000000..dfb8d48200
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/fgetws.c
@@ -0,0 +1,40 @@
+/**
+ * @file
+ * @brief fgetws() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ FILE *file;
+ wchar_t* wcr;
+ wchar_t wc;
+
+ wc = L'\x3b1';
+ wcr = &wc;
+ file = (void *) 0;
+ return *fgetws(wcr, 0, file);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/fputwc.c b/testsuites/psxtests/psxhdrs/wchar/fputwc.c
new file mode 100644
index 0000000000..54c1ebbaae
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/fputwc.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief fputwc() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wchar_t wc;
+ FILE *file;
+
+ wc = L'\x3b1';
+ file = (void *) 0;
+ return fputwc(wc, file);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/fputws.c b/testsuites/psxtests/psxhdrs/wchar/fputws.c
new file mode 100644
index 0000000000..289fb53688
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/fputws.c
@@ -0,0 +1,40 @@
+/**
+ * @file
+ * @brief fputws() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ FILE *file;
+ const wchar_t *wcr;
+ wchar_t wc;
+
+ wc = L'\x3b1';
+ wcr = &wc;
+ file = (void *)0;
+ return fputws(wcr, file);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/fwide.c b/testsuites/psxtests/psxhdrs/wchar/fwide.c
new file mode 100644
index 0000000000..041757d72a
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/fwide.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief fwide() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ FILE *file;
+ int number;
+
+ file = (void *)0;
+ number = 0;
+ return fwide(file, number);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/fwprintf.c b/testsuites/psxtests/psxhdrs/wchar/fwprintf.c
new file mode 100644
index 0000000000..b0e3f8e161
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/fwprintf.c
@@ -0,0 +1,40 @@
+/**
+ * @file
+ * @brief fwprintf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ FILE *file;
+ const wchar_t *wcr;
+ wchar_t wc;
+
+ wc = L'\x3b1';
+ wcr = &wc;
+ file = (void *)0;
+ return fwprintf(file, wcr);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/fwscanf.c b/testsuites/psxtests/psxhdrs/wchar/fwscanf.c
new file mode 100644
index 0000000000..12ab241c0e
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/fwscanf.c
@@ -0,0 +1,40 @@
+/**
+ * @file
+ * @brief fwscanf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ FILE *file;
+ const wchar_t *wcr;
+ wchar_t wc;
+
+ wc = L'\x3b1';
+ wcr = &wc;
+ file = (void *)0;
+ return fwscanf(file, wcr);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/getwc.c b/testsuites/psxtests/psxhdrs/wchar/getwc.c
new file mode 100644
index 0000000000..40f652e327
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/getwc.c
@@ -0,0 +1,36 @@
+/**
+ * @file
+ * @brief getwc() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ FILE *file;
+
+ file = (void *)0;
+ return getwc(file);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/getwchar.c b/testsuites/psxtests/psxhdrs/wchar/getwchar.c
new file mode 100644
index 0000000000..6df6c902c0
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/getwchar.c
@@ -0,0 +1,33 @@
+/**
+ * @file
+ * @brief getwchar() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ return getwchar();
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswalnum.c b/testsuites/psxtests/psxhdrs/wchar/iswalnum.c
new file mode 100644
index 0000000000..1bcc9cc4dc
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswalnum.c
@@ -0,0 +1,41 @@
+/**
+ * @file
+ * @brief iswalnum() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+/*
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed
+*/
+
+int test(void);
+
+int test(void)
+{
+ wint_t wi;
+
+ wi = 0;
+ return iswalnum(wi);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswalpha.c b/testsuites/psxtests/psxhdrs/wchar/iswalpha.c
new file mode 100644
index 0000000000..0b38be5b40
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswalpha.c
@@ -0,0 +1,41 @@
+/**
+ * @file
+ * @brief iswalpha() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+/*
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed
+*/
+
+int test(void);
+
+int test(void)
+{
+ wint_t wi;
+
+ wi = 0;
+ return iswalpha(wi);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswcntrl.c b/testsuites/psxtests/psxhdrs/wchar/iswcntrl.c
new file mode 100644
index 0000000000..72bec9cb9c
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswcntrl.c
@@ -0,0 +1,41 @@
+/**
+ * @file
+ * @brief iswcntrl() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+/*
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed
+*/
+
+int test(void);
+
+int test(void)
+{
+ wint_t wi;
+
+ wi = 0;
+ return iswcntrl(wi);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswctype.c b/testsuites/psxtests/psxhdrs/wchar/iswctype.c
new file mode 100644
index 0000000000..85c9b89846
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswctype.c
@@ -0,0 +1,43 @@
+/**
+ * @file
+ * @brief iswctype() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+/*
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed
+*/
+
+int test(void);
+
+int test(void)
+{
+ wint_t wi;
+ wctype_t wc;
+
+ wi = 0;
+ wc = 0;
+ return iswctype(wi, wc);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswdigit.c b/testsuites/psxtests/psxhdrs/wchar/iswdigit.c
new file mode 100644
index 0000000000..41f5003bd0
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswdigit.c
@@ -0,0 +1,41 @@
+/**
+ * @file
+ * @brief iswdigit() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+/*
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed
+*/
+
+int test(void);
+
+int test(void)
+{
+ wint_t wi;
+
+ wi = 0;
+ return iswdigit(wi);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswgraph.c b/testsuites/psxtests/psxhdrs/wchar/iswgraph.c
new file mode 100644
index 0000000000..8c21f1381d
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswgraph.c
@@ -0,0 +1,41 @@
+/**
+ * @file
+ * @brief iswgraph() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+/*
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed
+*/
+
+int test(void);
+
+int test(void)
+{
+ wint_t wi;
+
+ wi = 0;
+ return iswgraph(wi);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswlower.c b/testsuites/psxtests/psxhdrs/wchar/iswlower.c
new file mode 100644
index 0000000000..396bd2c6f3
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswlower.c
@@ -0,0 +1,41 @@
+/**
+ * @file
+ * @brief iswlower() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+/*
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed
+*/
+
+int test(void);
+
+int test(void)
+{
+ wint_t wi;
+
+ wi = 0;
+ return iswlower(wi);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswprint.c b/testsuites/psxtests/psxhdrs/wchar/iswprint.c
new file mode 100644
index 0000000000..2c084cbb24
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswprint.c
@@ -0,0 +1,37 @@
+/**
+ * @file
+ * @brief iswprint() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+
+int test(void);
+
+int test(void)
+{
+ wint_t wi;
+
+ wi = 0;
+ return iswprint(wi);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswpunct.c b/testsuites/psxtests/psxhdrs/wchar/iswpunct.c
new file mode 100644
index 0000000000..816405572f
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswpunct.c
@@ -0,0 +1,37 @@
+/**
+ * @file
+ * @brief iswpunct() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+
+int test(void);
+
+int test(void)
+{
+ wint_t wi;
+
+ wi = 0;
+ return iswpunct(wi);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswspace.c b/testsuites/psxtests/psxhdrs/wchar/iswspace.c
new file mode 100644
index 0000000000..ced5ff97c1
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswspace.c
@@ -0,0 +1,37 @@
+/**
+ * @file
+ * @brief iswspace() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+
+int test(void);
+
+int test(void)
+{
+ wint_t wi;
+
+ wi = 0;
+ return iswspace(wi);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswupper.c b/testsuites/psxtests/psxhdrs/wchar/iswupper.c
new file mode 100644
index 0000000000..7bb8be5322
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswupper.c
@@ -0,0 +1,37 @@
+/**
+ * @file
+ * @brief iswupper() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+
+int test(void);
+
+int test(void)
+{
+ wint_t wi;
+
+ wi = 0;
+ return iswupper(wi);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/iswxdigit.c b/testsuites/psxtests/psxhdrs/wchar/iswxdigit.c
new file mode 100644
index 0000000000..53692249bc
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/iswxdigit.c
@@ -0,0 +1,37 @@
+/**
+ * @file
+ * @brief iswxdigit() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+
+int test(void);
+
+int test(void)
+{
+ wint_t wi;
+
+ wi = 0;
+ return iswxdigit(wi);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/mbrlen.c b/testsuites/psxtests/psxhdrs/wchar/mbrlen.c
new file mode 100644
index 0000000000..960f500da7
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/mbrlen.c
@@ -0,0 +1,40 @@
+/**
+ * @file
+ * @brief mbrlen() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const char *ch;
+ mbstate_t *state;
+ size_t si;
+
+ ch = (void *)0;
+ si = 0;
+ state = NULL;
+ return mbrlen(ch, si, state);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/mbrtowc.c b/testsuites/psxtests/psxhdrs/wchar/mbrtowc.c
new file mode 100644
index 0000000000..5460f10d57
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/mbrtowc.c
@@ -0,0 +1,41 @@
+/**
+ * @file
+ * @brief mbrtowc() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wchar_t *wc;
+ const char *ch;
+ mbstate_t state;
+ size_t si;
+
+ ch = (void *)0;
+ wc = 0;
+ si = 0;
+ return mbrtowc(wc, ch, si, &state);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/mbsinit.c b/testsuites/psxtests/psxhdrs/wchar/mbsinit.c
new file mode 100644
index 0000000000..f476d58bfa
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/mbsinit.c
@@ -0,0 +1,35 @@
+/**
+ * @file
+ * @brief mbsinit() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const mbstate_t state;
+
+ return mbsinit(&state);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/mbsnrtowcs.c b/testsuites/psxtests/psxhdrs/wchar/mbsnrtowcs.c
new file mode 100644
index 0000000000..df932be593
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/mbsnrtowcs.c
@@ -0,0 +1,42 @@
+/**
+ * @file
+ * @brief mbsnrtowcs() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wchar_t *wc;
+ const char* *ch;
+ mbstate_t state;
+ size_t s0, s1;
+
+ wc = 0;
+ ch = 0;
+ s0 = 0;
+ s1 = 0;
+ return mbsnrtowcs(wc, ch, s0, s1, &state);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/mbsrtowcs.c b/testsuites/psxtests/psxhdrs/wchar/mbsrtowcs.c
new file mode 100644
index 0000000000..0cf9be7e9f
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/mbsrtowcs.c
@@ -0,0 +1,41 @@
+/**
+ * @file
+ * @brief mbsrtowcs() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wchar_t *wc;
+ const char* *ch;
+ mbstate_t state;
+ size_t s0;
+
+ wc = 0;
+ ch = 0;
+ s0 = 0;
+ return mbsrtowcs(wc, ch, s0, &state);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/open_wmemstream.c b/testsuites/psxtests/psxhdrs/wchar/open_wmemstream.c
new file mode 100644
index 0000000000..a2431e03d0
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/open_wmemstream.c
@@ -0,0 +1,39 @@
+/**
+ * @file
+ * @brief open_wmemstream() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wchar_t** wc;
+
+ wc = 0;
+ if(open_wmemstream(wc, 0)){
+ return 1;
+ }
+ return 0;
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/putwc.c b/testsuites/psxtests/psxhdrs/wchar/putwc.c
new file mode 100644
index 0000000000..5dc7676b74
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/putwc.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief putwc() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wchar_t wc;
+ FILE *file;
+
+ wc = L'\x3b1';
+ file = (void *)0;
+ return putwc(wc, file);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/putwchar.c b/testsuites/psxtests/psxhdrs/wchar/putwchar.c
new file mode 100644
index 0000000000..8003eea19b
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/putwchar.c
@@ -0,0 +1,36 @@
+/**
+ * @file
+ * @brief putwchar() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wchar_t wc;
+
+ wc = L'\x3b1';
+ return putwchar(wc);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/swprintf.c b/testsuites/psxtests/psxhdrs/wchar/swprintf.c
new file mode 100644
index 0000000000..19effbb2e9
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/swprintf.c
@@ -0,0 +1,40 @@
+/**
+ * @file
+ * @brief swprintf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wchar_t *wc;
+ const wchar_t *ch;
+ size_t s0;
+
+ wc = 0;
+ ch = 0;
+ s0 = 0;
+ return swprintf(wc, s0, ch);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/swscanf.c b/testsuites/psxtests/psxhdrs/wchar/swscanf.c
new file mode 100644
index 0000000000..4dc5dae873
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/swscanf.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief swscanf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t *wc;
+ const wchar_t *ch;
+
+ wc = 0;
+ ch = 0;
+ return swscanf(wc, ch);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/towlower.c b/testsuites/psxtests/psxhdrs/wchar/towlower.c
new file mode 100644
index 0000000000..f0af09ecae
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/towlower.c
@@ -0,0 +1,41 @@
+/**
+ * @file
+ * @brief towlower() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wctype.h>
+/*
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed
+*/
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wint_t wi;
+
+ wi = 0;
+ return towlower(wi);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/towupper.c b/testsuites/psxtests/psxhdrs/wchar/towupper.c
new file mode 100644
index 0000000000..11067b50cb
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/towupper.c
@@ -0,0 +1,41 @@
+/**
+ * @file
+ * @brief towupper() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wctype.h>
+/*
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed
+*/
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wint_t wi;
+
+ wi = 0;
+ return towupper(wi);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/ungetwc.c b/testsuites/psxtests/psxhdrs/wchar/ungetwc.c
new file mode 100644
index 0000000000..a3a6708911
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/ungetwc.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief ungetwc() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wint_t wi;
+ FILE *file;
+
+ wi = 0;
+ file = (void *)0;
+ return ungetwc(wi, file);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/vfwprintf.c b/testsuites/psxtests/psxhdrs/wchar/vfwprintf.c
new file mode 100644
index 0000000000..c48e23cb07
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/vfwprintf.c
@@ -0,0 +1,45 @@
+/**
+ * @file
+ * @brief vfwprintf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <stdarg.h>
+/*
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed
+*/
+
+int test(char *fmt, ...);
+
+int test(char *fmt, ...)
+{
+ FILE *file;
+ const wchar_t *wc;
+ va_list va;
+
+ wc = 0;
+ file = (void *)0;
+ va_start(va, fmt);
+ return vfwprintf(file, wc, va);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/vfwscanf.c b/testsuites/psxtests/psxhdrs/wchar/vfwscanf.c
new file mode 100644
index 0000000000..4ed042812c
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/vfwscanf.c
@@ -0,0 +1,45 @@
+/**
+ * @file
+ * @brief vfwscanf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <stdarg.h>
+/*
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed
+*/
+
+int test(char *fmt, ...);
+
+int test(char *fmt, ...)
+{
+ FILE *file;
+ const wchar_t *wc;
+ va_list va;
+
+ wc = 0;
+ file = (void *)0;
+ va_start(va, fmt);
+ return vfwscanf(file, wc, va);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/vswprintf.c b/testsuites/psxtests/psxhdrs/wchar/vswprintf.c
new file mode 100644
index 0000000000..b84840230f
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/vswprintf.c
@@ -0,0 +1,47 @@
+/**
+ * @file
+ * @brief vswprintf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <stdarg.h>
+/*
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed
+*/
+
+int test(char *fmt, ...);
+
+int test(char *fmt, ...)
+{
+ wchar_t *wc;
+ const wchar_t *wc1;
+ size_t si;
+ va_list va;
+
+ wc = 0;
+ wc1 = 0;
+ si = 0;
+ va_start(va, fmt);
+ return vswprintf(wc, si, wc1, va);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/vswscanf.c b/testsuites/psxtests/psxhdrs/wchar/vswscanf.c
new file mode 100644
index 0000000000..3e25d4f707
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/vswscanf.c
@@ -0,0 +1,45 @@
+/**
+ * @file
+ * @brief vswscanf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <stdarg.h>
+/*
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed
+*/
+
+int test(char *fmt, ...);
+
+int test(char *fmt, ...)
+{
+ const wchar_t *wc;
+ const wchar_t *wc1;
+ va_list va;
+
+ wc = 0;
+ wc1 = 0;
+ va_start(va, fmt);
+ return vswscanf(wc, wc1, va);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/vwprintf.c b/testsuites/psxtests/psxhdrs/wchar/vwprintf.c
new file mode 100644
index 0000000000..c947e5fb27
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/vwprintf.c
@@ -0,0 +1,43 @@
+/**
+ * @file
+ * @brief vwprintf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <stdarg.h>
+/*
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed
+*/
+
+int test(char *fmt, ...);
+
+int test(char *fmt, ...)
+{
+ const wchar_t *wc;
+ va_list va;
+
+ wc = 0;
+ va_start(va, fmt);
+ return vwprintf(wc, va);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/vwscanf.c b/testsuites/psxtests/psxhdrs/wchar/vwscanf.c
new file mode 100644
index 0000000000..8fd66f9109
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/vwscanf.c
@@ -0,0 +1,43 @@
+/**
+ * @file
+ * @brief vwscanf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <stdarg.h>
+/*
+ Corresponds to ticket #3642, please remove the line
+ above and this comment when fixed
+*/
+
+int test(char *fmt, ...);
+
+int test(char *fmt, ...)
+{
+ const wchar_t *wc;
+ va_list va;
+
+ wc = 0;
+ va_start(va, fmt);
+ return vwscanf(wc, va);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcpcpy.c b/testsuites/psxtests/psxhdrs/wchar/wcpcpy.c
new file mode 100644
index 0000000000..68de693a2e
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcpcpy.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief wcpcpy() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wchar_t *wc;
+ const wchar_t *wc1;
+
+ wc = 0;
+ wc1 = 0;
+ return *wcpcpy(wc, wc1);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcpncpy.c b/testsuites/psxtests/psxhdrs/wchar/wcpncpy.c
new file mode 100644
index 0000000000..dae664c4f2
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcpncpy.c
@@ -0,0 +1,40 @@
+/**
+ * @file
+ * @brief wcpncpy() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wchar_t *wc;
+ const wchar_t *wc1;
+ size_t si;
+
+ wc = 0;
+ wc1 = 0;
+ si = 0;
+ return *wcpncpy(wc, wc1, si);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcrtomb.c b/testsuites/psxtests/psxhdrs/wchar/wcrtomb.c
new file mode 100644
index 0000000000..0b74783cc0
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcrtomb.c
@@ -0,0 +1,40 @@
+/**
+ * @file
+ * @brief wcrtomb() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wchar_t wc;
+ char *ch;
+ mbstate_t *state;
+
+ wc = 0;
+ ch = 0;
+ state = (void *)0;
+ return wcrtomb(ch, wc, state);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcscasecmp.c b/testsuites/psxtests/psxhdrs/wchar/wcscasecmp.c
new file mode 100644
index 0000000000..4862356acc
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcscasecmp.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief wcscasecmp() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t *wc;
+ const wchar_t *wc1;
+
+ wc = 0;
+ wc1 = 0;
+ return wcscasecmp(wc, wc1);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcscasecmp_l.c b/testsuites/psxtests/psxhdrs/wchar/wcscasecmp_l.c
new file mode 100644
index 0000000000..68cd7d4275
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcscasecmp_l.c
@@ -0,0 +1,40 @@
+/**
+ * @file
+ * @brief wcscasecmp_l() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t *wc;
+ const wchar_t *wc1;
+ locale_t locale;
+
+ wc = 0;
+ wc1 = 0;
+ locale = (locale_t)0;
+ return wcscasecmp_l(wc, wc1, locale);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcscat.c b/testsuites/psxtests/psxhdrs/wchar/wcscat.c
new file mode 100644
index 0000000000..b451a3ed79
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcscat.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief wcscat() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wchar_t *wc;
+ const wchar_t *wc1;
+
+ wc = 0;
+ wc1 = 0;
+ return *wcscat(wc, wc1);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcschr.c b/testsuites/psxtests/psxhdrs/wchar/wcschr.c
new file mode 100644
index 0000000000..cf6c0ba647
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcschr.c
@@ -0,0 +1,36 @@
+/**
+ * @file
+ * @brief wcschr() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t wc = 0;
+ wchar_t wc1 = 0;
+
+ return *wcschr(&wc, wc1);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcscmp.c b/testsuites/psxtests/psxhdrs/wchar/wcscmp.c
new file mode 100644
index 0000000000..d53abf4a8c
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcscmp.c
@@ -0,0 +1,36 @@
+/**
+ * @file
+ * @brief wcscmp() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t wc = 0;
+ const wchar_t wc1 = 0;
+
+ return wcscmp(&wc, &wc1);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcscoll.c b/testsuites/psxtests/psxhdrs/wchar/wcscoll.c
new file mode 100644
index 0000000000..000e150b42
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcscoll.c
@@ -0,0 +1,36 @@
+/**
+ * @file
+ * @brief wcscoll() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t wc = 0;
+ const wchar_t wc1 = 0;
+
+ return wcscoll(&wc, &wc1);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcscoll_l.c b/testsuites/psxtests/psxhdrs/wchar/wcscoll_l.c
new file mode 100644
index 0000000000..0ae54d8b72
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcscoll_l.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief wcscoll_l() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t wc = 0;
+ const wchar_t wc1 = 0;
+ locale_t locale;
+
+ locale = (locale_t)0;
+ return wcscoll_l(&wc, &wc1, locale);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcscpy.c b/testsuites/psxtests/psxhdrs/wchar/wcscpy.c
new file mode 100644
index 0000000000..02c1d4e2c9
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcscpy.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief wcscpy() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wchar_t *wc;
+ const wchar_t *wc1;
+
+ wc = 0;
+ wc1 = 0;
+ return *wcscpy(wc, wc1);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcscspn.c b/testsuites/psxtests/psxhdrs/wchar/wcscspn.c
new file mode 100644
index 0000000000..98cf9e416a
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcscspn.c
@@ -0,0 +1,36 @@
+/**
+ * @file
+ * @brief wcscpyn() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t wc = 0;
+ const wchar_t wc1 = 0;
+
+ return wcscspn(&wc, &wc1);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcsdup.c b/testsuites/psxtests/psxhdrs/wchar/wcsdup.c
new file mode 100644
index 0000000000..ed5951e2ce
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcsdup.c
@@ -0,0 +1,35 @@
+/**
+ * @file
+ * @brief wcsdup() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t wc = 0;
+
+ return *wcsdup(&wc);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcsnlen.c b/testsuites/psxtests/psxhdrs/wchar/wcsnlen.c
new file mode 100644
index 0000000000..189fcf0899
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcsnlen.c
@@ -0,0 +1,37 @@
+/**
+ * @file
+ * @brief wcsnlen() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t wc = 0;
+ size_t si;
+
+ si = 0;
+ return wcsnlen(&wc, si);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcsnrtombs.c b/testsuites/psxtests/psxhdrs/wchar/wcsnrtombs.c
new file mode 100644
index 0000000000..fd708e161a
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcsnrtombs.c
@@ -0,0 +1,44 @@
+/**
+ * @file
+ * @brief wcsnrtombs() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ char *ch;
+ const wchar_t **wc;
+ size_t si0;
+ size_t si1;
+ mbstate_t *state;
+
+ ch = 0;
+ wc = 0;
+ si0 = 0;
+ si1 = 0;
+ state = 0;
+ return wcsnrtombs(ch, wc, si0, si1, state);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcspbrk.c b/testsuites/psxtests/psxhdrs/wchar/wcspbrk.c
new file mode 100644
index 0000000000..30edd5e9ae
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcspbrk.c
@@ -0,0 +1,36 @@
+/**
+ * @file
+ * @brief wcspbrk() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t wc = 0;
+ const wchar_t wc1 = 0;
+
+ return *wcspbrk(&wc, &wc1);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcsrchr.c b/testsuites/psxtests/psxhdrs/wchar/wcsrchr.c
new file mode 100644
index 0000000000..082230d060
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcsrchr.c
@@ -0,0 +1,37 @@
+/**
+ * @file
+ * @brief wcsrchr() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t wc = 0;
+ wchar_t wc1;
+
+ wc1 = 0;
+ return *wcsrchr(&wc, wc1);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcsrtombs.c b/testsuites/psxtests/psxhdrs/wchar/wcsrtombs.c
new file mode 100644
index 0000000000..f275d66f1b
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcsrtombs.c
@@ -0,0 +1,42 @@
+/**
+ * @file
+ * @brief wcsrtombs() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ char *ch;
+ const wchar_t **wc;
+ size_t si;
+ mbstate_t *state;
+
+ ch = 0;
+ wc = 0;
+ si = 0;
+ state = 0;
+ return wcsrtombs(ch, wc, si, state);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcsspn.c b/testsuites/psxtests/psxhdrs/wchar/wcsspn.c
new file mode 100644
index 0000000000..77aada2107
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcsspn.c
@@ -0,0 +1,36 @@
+/**
+ * @file
+ * @brief wcsspn() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t wc = 0;
+ const wchar_t wc1 = 0;
+
+ return wcsspn(&wc, &wc1);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcsstr.c b/testsuites/psxtests/psxhdrs/wchar/wcsstr.c
new file mode 100644
index 0000000000..d64d3a763b
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcsstr.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief wcsstr() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t *wc;
+ const wchar_t *wc1;
+
+ wc = 0;
+ wc1 = 0;
+ return *wcsstr(wc, wc1);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcstod.c b/testsuites/psxtests/psxhdrs/wchar/wcstod.c
new file mode 100644
index 0000000000..8f20f01e27
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcstod.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief wcstod() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t *wc;
+ wchar_t* *wc1;
+
+ wc = 0;
+ wc1 = 0;
+ return wcstod(wc, wc1);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcstof.c b/testsuites/psxtests/psxhdrs/wchar/wcstof.c
new file mode 100644
index 0000000000..43e3a3127a
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcstof.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief wcstof() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t *wc;
+ wchar_t **wc1;
+
+ wc = 0;
+ wc1 = 0;
+ return wcstof(wc, wc1);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcstok.c b/testsuites/psxtests/psxhdrs/wchar/wcstok.c
new file mode 100644
index 0000000000..41c0bf35e8
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcstok.c
@@ -0,0 +1,40 @@
+/**
+ * @file
+ * @brief wcstok() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wchar_t *wc;
+ const wchar_t *wc1;
+ wchar_t **wc2;
+
+ wc = 0;
+ wc1 = 0;
+ wc2 = 0;
+ return *wcstok(wc, wc1, wc2);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcstol.c b/testsuites/psxtests/psxhdrs/wchar/wcstol.c
new file mode 100644
index 0000000000..449d49129c
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcstol.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief wcstol() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t *wc;
+ wchar_t **wc1;
+
+ wc = 0;
+ wc1 = 0;
+ return wcstol(wc, wc1, 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcstold.c b/testsuites/psxtests/psxhdrs/wchar/wcstold.c
new file mode 100644
index 0000000000..11523e9bfd
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcstold.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief wcstold() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t *wc;
+ wchar_t **wc1;
+
+ wc = 0;
+ wc1 = 0;
+ return wcstold(wc, wc1);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcstoll.c b/testsuites/psxtests/psxhdrs/wchar/wcstoll.c
new file mode 100644
index 0000000000..fbeefae687
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcstoll.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief wcstoll() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t *wc;
+ wchar_t **wc1;
+
+ wc = 0;
+ wc1 = 0;
+ return wcstoll(wc, wc1, 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcstoul.c b/testsuites/psxtests/psxhdrs/wchar/wcstoul.c
new file mode 100644
index 0000000000..cb0ce94137
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcstoul.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief wcstoul() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t *wc;
+ wchar_t **wc1;
+
+ wc = 0;
+ wc1 = 0;
+ return wcstoul(wc, wc1, 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcstoull.c b/testsuites/psxtests/psxhdrs/wchar/wcstoull.c
new file mode 100644
index 0000000000..574a512647
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcstoull.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief wcstoull() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t *wc;
+ wchar_t **wc1;
+
+ wc = 0;
+ wc1 = 0;
+ return wcstoull(wc, wc1, 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcswidth.c b/testsuites/psxtests/psxhdrs/wchar/wcswidth.c
new file mode 100644
index 0000000000..2e6923e6a4
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcswidth.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief wcswidth() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define _XOPEN_SOURCE
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t wc = 0;
+ size_t si;
+
+ si = 0;
+ return wcswidth(&wc, si);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcsxfrm.c b/testsuites/psxtests/psxhdrs/wchar/wcsxfrm.c
new file mode 100644
index 0000000000..1099e68abd
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcsxfrm.c
@@ -0,0 +1,40 @@
+/**
+ * @file
+ * @brief wcsxfrm() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wchar_t *wc;
+ const wchar_t *wc1;
+ size_t si;
+
+ wc = 0;
+ wc1 = 0;
+ si = 0;
+ return wcsxfrm(wc, wc1, si);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcsxfrm_l.c b/testsuites/psxtests/psxhdrs/wchar/wcsxfrm_l.c
new file mode 100644
index 0000000000..ea4c45c5aa
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcsxfrm_l.c
@@ -0,0 +1,42 @@
+/**
+ * @file
+ * @brief wcsxfrm_l() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wchar_t *wc;
+ const wchar_t *wc1;
+ size_t si;
+ locale_t locale;
+
+ wc = 0;
+ wc1 = 0;
+ si = 0;
+ locale = (locale_t)0;
+ return wcsxfrm_l(wc, wc1, si, locale);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wctob.c b/testsuites/psxtests/psxhdrs/wchar/wctob.c
new file mode 100644
index 0000000000..0c2be69d0e
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wctob.c
@@ -0,0 +1,36 @@
+/**
+ * @file
+ * @brief wctob() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wint_t wi;
+
+ wi = 0;
+ return wctob(wi);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wctype.c b/testsuites/psxtests/psxhdrs/wchar/wctype.c
new file mode 100644
index 0000000000..c533948d37
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wctype.c
@@ -0,0 +1,36 @@
+/**
+ * @file
+ * @brief wctype() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+#include <wctype.h>
+
+int test(void);
+
+int test(void)
+{
+ const char ch = 0;
+
+ return wctype(&ch);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wcwidth.c b/testsuites/psxtests/psxhdrs/wchar/wcwidth.c
new file mode 100644
index 0000000000..38c6709e3a
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wcwidth.c
@@ -0,0 +1,37 @@
+/**
+ * @file
+ * @brief wcwidth() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define _XOPEN_SOURCE
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wchar_t wc;
+
+ wc = 0;
+ return wcwidth(wc);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wmemchr.c b/testsuites/psxtests/psxhdrs/wchar/wmemchr.c
new file mode 100644
index 0000000000..5bc3766f0f
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wmemchr.c
@@ -0,0 +1,39 @@
+/**
+ * @file
+ * @brief wmemchr() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t wc = 0;
+ wchar_t wc1;
+ size_t si;
+
+ wc1 = 0;
+ si = 0;
+ return *wmemchr(&wc, wc1, si);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wmemcmp.c b/testsuites/psxtests/psxhdrs/wchar/wmemcmp.c
new file mode 100644
index 0000000000..51a8e4c5e9
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wmemcmp.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * @brief wmemcmp() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t wc = 0;
+ const wchar_t wc1 = 0;
+ size_t si;
+
+ si = 0;
+ return wmemcmp(&wc, &wc1, si);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wmemcpy.c b/testsuites/psxtests/psxhdrs/wchar/wmemcpy.c
new file mode 100644
index 0000000000..3e235fa7cc
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wmemcpy.c
@@ -0,0 +1,40 @@
+/**
+ * @file
+ * @brief wmemcpy() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wchar_t *wc;
+ const wchar_t *wc1;
+ size_t si;
+
+ wc = 0;
+ wc1 = 0;
+ si = 0;
+ return *wmemcpy(wc, wc1, si);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wmemmove.c b/testsuites/psxtests/psxhdrs/wchar/wmemmove.c
new file mode 100644
index 0000000000..57f7d058b0
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wmemmove.c
@@ -0,0 +1,39 @@
+/**
+ * @file
+ * @brief wmemmove() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wchar_t wc;
+ const wchar_t wc1 = 0;
+ size_t si;
+
+ wc = 0;
+ si = 0;
+ return *wmemmove(&wc, &wc1, si);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wmemset.c b/testsuites/psxtests/psxhdrs/wchar/wmemset.c
new file mode 100644
index 0000000000..27d768588d
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wmemset.c
@@ -0,0 +1,39 @@
+/**
+ * @file
+ * @brief wmemset() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ wchar_t wc, wc1;
+ size_t si;
+
+ wc = 0;
+ wc1 = 0;
+ si = 0;
+ return *wmemset(&wc, wc1, si);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wprintf.c b/testsuites/psxtests/psxhdrs/wchar/wprintf.c
new file mode 100644
index 0000000000..0b6046ad51
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wprintf.c
@@ -0,0 +1,36 @@
+/**
+ * @file
+ * @brief wprintf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t *wc;
+
+ wc = 0;
+ return wprintf(wc);
+}
diff --git a/testsuites/psxtests/psxhdrs/wchar/wscanf.c b/testsuites/psxtests/psxhdrs/wchar/wscanf.c
new file mode 100644
index 0000000000..e5b499e99c
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/wchar/wscanf.c
@@ -0,0 +1,36 @@
+/**
+ * @file
+ * @brief wscanf() API Conformance Test
+ */
+
+/*
+ * COPYRIGHT (c) 2018.
+ * Zenon (zehata).
+ *
+ * Permission to use, copy, modify, and/or distribute this software
+ * for any purpose with or without fee is hereby granted.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <wchar.h>
+
+int test(void);
+
+int test(void)
+{
+ const wchar_t *wc;
+
+ wc = 0;
+ return wscanf(wc);
+}