[rtems commit] Added POSIX Compliance Test for <ctype.h> (GCI 2018)

Joel Sherrill joel at rtems.org
Thu Dec 6 17:42:56 UTC 2018


Module:    rtems
Branch:    master
Commit:    a803bd9e737d6be3059a34b52250d6e09983865d
Changeset: http://git.rtems.org/rtems/commit/?id=a803bd9e737d6be3059a34b52250d6e09983865d

Author:    zehata <zenon.hans.taneka at dhs.sg>
Date:      Fri Dec  7 00:49:32 2018 +0800

Added POSIX Compliance Test for <ctype.h> (GCI 2018)

---

 testsuites/psxtests/Makefile.am                | 31 +++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/isalnum.c    | 36 ++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/isalnum_l.c  | 37 +++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/isalpha.c    | 36 ++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/isalpha_l.c  | 37 +++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/isascii.c    | 36 ++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/isblank.c    | 36 ++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/isblank_l.c  | 37 +++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/iscntrl.c    | 36 ++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/iscntrl_l.c  | 37 +++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/isdigit.c    | 36 ++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/isdigit_l.c  | 37 +++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/isgraph.c    | 36 ++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/isgraph_l.c  | 37 +++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/islower.c    | 36 ++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/islower_l.c  | 37 +++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/isprint.c    | 36 ++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/isprint_l.c  | 37 +++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/ispunct.c    | 36 ++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/ispunct_l.c  | 37 +++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/isspace.c    | 36 ++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/isspace_l.c  | 37 +++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/isupper.c    | 36 ++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/isupper_l.c  | 37 +++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/isxdigit.c   | 36 ++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/isxdigit_l.c | 37 +++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/toascii.c    | 36 ++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/tolower.c    | 36 ++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/tolower_l.c  | 38 ++++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/toupper.c    | 36 ++++++++++++++++++++++++
 testsuites/psxtests/psxhdrs/ctype/toupper_l.c  | 38 ++++++++++++++++++++++++++
 31 files changed, 1127 insertions(+)

diff --git a/testsuites/psxtests/Makefile.am b/testsuites/psxtests/Makefile.am
index d24466d..1523dde 100644
--- a/testsuites/psxtests/Makefile.am
+++ b/testsuites/psxtests/Makefile.am
@@ -1475,6 +1475,37 @@ lib_a_SOURCES = psxhdrs/devctl/posix_devctl.c \
 	psxhdrs/complex/ctanhf.c \
 	psxhdrs/complex/ctanhl.c \
 	psxhdrs/complex/ctanl.c \
+	psxhdrs/complex/ctanl.c \
+	psxhdrs/ctype/isalnum.c \
+	psxhdrs/ctype/isalnum_l.c \
+	psxhdrs/ctype/isalpha.c \
+	psxhdrs/ctype/isalpha_l.c \
+	psxhdrs/ctype/isascii.c \
+	psxhdrs/ctype/isblank.c \
+	psxhdrs/ctype/isblank_l.c \
+	psxhdrs/ctype/iscntrl.c \
+	psxhdrs/ctype/iscntrl_l.c \
+	psxhdrs/ctype/isdigit.c \
+	psxhdrs/ctype/isdigit_l.c \
+	psxhdrs/ctype/isgraph.c \
+	psxhdrs/ctype/isgraph_l.c \
+	psxhdrs/ctype/islower.c \
+	psxhdrs/ctype/islower_l.c \
+	psxhdrs/ctype/isprint.c \
+	psxhdrs/ctype/isprint_l.c \
+	psxhdrs/ctype/ispunct.c \
+	psxhdrs/ctype/ispunct_l.c \
+	psxhdrs/ctype/isspace.c \
+	psxhdrs/ctype/isspace_l.c \
+	psxhdrs/ctype/isupper.c \
+	psxhdrs/ctype/isupper_l.c \
+	psxhdrs/ctype/isxdigit.c \
+	psxhdrs/ctype/isxdigit_l.c \
+	psxhdrs/ctype/toascii.c \
+	psxhdrs/ctype/tolower.c \
+	psxhdrs/ctype/tolower_l.c \
+	psxhdrs/ctype/toupper.c \
+	psxhdrs/ctype/toupper_l.c \
 	psxhdrs/wctype/iswalnum.c \
 	psxhdrs/wctype/iswalnum_l.c \
 	psxhdrs/wctype/iswalpha.c \
diff --git a/testsuites/psxtests/psxhdrs/ctype/isalnum.c b/testsuites/psxtests/psxhdrs/ctype/isalnum.c
new file mode 100644
index 0000000..af443be
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/isalnum.c
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief isalnum() 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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int alnum;
+
+  alnum = 0;
+  return (isalnum(alnum));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/isalnum_l.c b/testsuites/psxtests/psxhdrs/ctype/isalnum_l.c
new file mode 100644
index 0000000..266f77b
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/isalnum_l.c
@@ -0,0 +1,37 @@
+/**
+ *  @file
+ *  @brief isalnum_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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int alnum;
+  locale_t locale;
+
+  alnum = 0;
+  return (isalnum_l(alnum, locale));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/isalpha.c b/testsuites/psxtests/psxhdrs/ctype/isalpha.c
new file mode 100644
index 0000000..875c5e4
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/isalpha.c
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief isalpha() 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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int alpha;
+
+  alpha = 0;
+  return (isalpha(alpha));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/isalpha_l.c b/testsuites/psxtests/psxhdrs/ctype/isalpha_l.c
new file mode 100644
index 0000000..3803f39
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/isalpha_l.c
@@ -0,0 +1,37 @@
+/**
+ *  @file
+ *  @brief isalpha_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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int alpha;
+  locale_t locale;
+
+  alpha = 0;
+  return (isalpha_l(alpha, locale));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/isascii.c b/testsuites/psxtests/psxhdrs/ctype/isascii.c
new file mode 100644
index 0000000..6d9c419
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/isascii.c
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief isascii() 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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int ascii;
+
+  ascii = 0;
+  return (isascii(ascii));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/isblank.c b/testsuites/psxtests/psxhdrs/ctype/isblank.c
new file mode 100644
index 0000000..04f0892
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/isblank.c
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief isblank() 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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int blank;
+
+  blank = 0;
+  return (isblank(blank));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/isblank_l.c b/testsuites/psxtests/psxhdrs/ctype/isblank_l.c
new file mode 100644
index 0000000..a2eb92a
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/isblank_l.c
@@ -0,0 +1,37 @@
+/**
+ *  @file
+ *  @brief isblank_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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int blank;
+  locale_t locale;
+
+  blank = 0;
+  return (isblank_l(blank, locale));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/iscntrl.c b/testsuites/psxtests/psxhdrs/ctype/iscntrl.c
new file mode 100644
index 0000000..a5904a8
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/iscntrl.c
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief iscntrl() 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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int cntrl;
+
+  cntrl = 0;
+  return (iscntrl(cntrl));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/iscntrl_l.c b/testsuites/psxtests/psxhdrs/ctype/iscntrl_l.c
new file mode 100644
index 0000000..ec25b56
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/iscntrl_l.c
@@ -0,0 +1,37 @@
+/**
+ *  @file
+ *  @brief iscntrl_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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int cntrl;
+  locale_t locale;
+
+  cntrl = 0;
+  return (iscntrl_l(cntrl, locale));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/isdigit.c b/testsuites/psxtests/psxhdrs/ctype/isdigit.c
new file mode 100644
index 0000000..27a1040
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/isdigit.c
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief isdigit() 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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int digit;
+
+  digit = 0;
+  return (isdigit(digit));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/isdigit_l.c b/testsuites/psxtests/psxhdrs/ctype/isdigit_l.c
new file mode 100644
index 0000000..b747898
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/isdigit_l.c
@@ -0,0 +1,37 @@
+/**
+ *  @file
+ *  @brief isdigit_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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int digit;
+  locale_t locale;
+
+  digit = 0;
+  return (isdigit_l(digit, locale));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/isgraph.c b/testsuites/psxtests/psxhdrs/ctype/isgraph.c
new file mode 100644
index 0000000..7f6edb4
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/isgraph.c
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief isgraph() 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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int graph;
+
+  graph = 0;
+  return (isgraph(graph));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/isgraph_l.c b/testsuites/psxtests/psxhdrs/ctype/isgraph_l.c
new file mode 100644
index 0000000..75ad93a
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/isgraph_l.c
@@ -0,0 +1,37 @@
+/**
+ *  @file
+ *  @brief isgraph_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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int graph;
+  locale_t locale;
+
+  graph = 0;
+  return (isgraph_l(graph, locale));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/islower.c b/testsuites/psxtests/psxhdrs/ctype/islower.c
new file mode 100644
index 0000000..fd050f2
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/islower.c
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief islower() 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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int lower;
+
+  lower = 0;
+  return (islower(lower));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/islower_l.c b/testsuites/psxtests/psxhdrs/ctype/islower_l.c
new file mode 100644
index 0000000..9819954
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/islower_l.c
@@ -0,0 +1,37 @@
+/**
+ *  @file
+ *  @brief islower_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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int lower;
+  locale_t locale;
+
+  lower = 0;
+  return (islower_l(lower, locale));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/isprint.c b/testsuites/psxtests/psxhdrs/ctype/isprint.c
new file mode 100644
index 0000000..fc0c987
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/isprint.c
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief isprint() 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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int print;
+
+  print = 0;
+  return (isprint(print));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/isprint_l.c b/testsuites/psxtests/psxhdrs/ctype/isprint_l.c
new file mode 100644
index 0000000..fb714c6
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/isprint_l.c
@@ -0,0 +1,37 @@
+/**
+ *  @file
+ *  @brief isprint_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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int print;
+  locale_t locale;
+
+  print = 0;
+  return (isprint_l(print, locale));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/ispunct.c b/testsuites/psxtests/psxhdrs/ctype/ispunct.c
new file mode 100644
index 0000000..09e54f1
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/ispunct.c
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief ispunct() 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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int punct;
+
+  punct = 0;
+  return (ispunct(punct));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/ispunct_l.c b/testsuites/psxtests/psxhdrs/ctype/ispunct_l.c
new file mode 100644
index 0000000..70858a5
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/ispunct_l.c
@@ -0,0 +1,37 @@
+/**
+ *  @file
+ *  @brief ispunct_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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int punct;
+  locale_t locale;
+
+  punct = 0;
+  return (ispunct_l(punct, locale));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/isspace.c b/testsuites/psxtests/psxhdrs/ctype/isspace.c
new file mode 100644
index 0000000..1a6490f
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/isspace.c
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief isspace() 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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int space;
+
+  space = 0;
+  return (isspace(space));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/isspace_l.c b/testsuites/psxtests/psxhdrs/ctype/isspace_l.c
new file mode 100644
index 0000000..5676fe6
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/isspace_l.c
@@ -0,0 +1,37 @@
+/**
+ *  @file
+ *  @brief isspace_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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int space;
+  locale_t locale;
+
+  space = 0;
+  return (isspace_l(space, locale));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/isupper.c b/testsuites/psxtests/psxhdrs/ctype/isupper.c
new file mode 100644
index 0000000..63233f5
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/isupper.c
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief isupper() 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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int upper;
+
+  upper = 0;
+  return (isupper(upper));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/isupper_l.c b/testsuites/psxtests/psxhdrs/ctype/isupper_l.c
new file mode 100644
index 0000000..9481f57
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/isupper_l.c
@@ -0,0 +1,37 @@
+/**
+ *  @file
+ *  @brief isupper_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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int upper;
+  locale_t locale;
+
+  upper = 0;
+  return (isupper_l(upper, locale));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/isxdigit.c b/testsuites/psxtests/psxhdrs/ctype/isxdigit.c
new file mode 100644
index 0000000..3408fd8
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/isxdigit.c
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief isxdigit() 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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int xdigit;
+
+  xdigit = 0;
+  return (isxdigit(xdigit));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/isxdigit_l.c b/testsuites/psxtests/psxhdrs/ctype/isxdigit_l.c
new file mode 100644
index 0000000..bf5b05f
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/isxdigit_l.c
@@ -0,0 +1,37 @@
+/**
+ *  @file
+ *  @brief isxdigit_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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int xdigit;
+  locale_t locale;
+
+  xdigit = 0;
+  return (isxdigit_l(xdigit, locale));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/toascii.c b/testsuites/psxtests/psxhdrs/ctype/toascii.c
new file mode 100644
index 0000000..aefa700
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/toascii.c
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief toascii() 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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int notascii;
+
+  notascii = 0;
+  return (toascii(notascii));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/tolower.c b/testsuites/psxtests/psxhdrs/ctype/tolower.c
new file mode 100644
index 0000000..db0e2f5
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/tolower.c
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief tolower() 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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int upper;
+
+  upper = 0;
+  return (tolower(upper));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/tolower_l.c b/testsuites/psxtests/psxhdrs/ctype/tolower_l.c
new file mode 100644
index 0000000..44d387e
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/tolower_l.c
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief tolower_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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int upper;
+  locale_t locale;
+
+  locale = (locale_t)0;
+  upper = 0;
+  return (tolower_l(upper, locale));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/toupper.c b/testsuites/psxtests/psxhdrs/ctype/toupper.c
new file mode 100644
index 0000000..ab88330
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/toupper.c
@@ -0,0 +1,36 @@
+/**
+ *  @file
+ *  @brief toupper() 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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int lower;
+
+  lower = 0;
+  return (toupper(lower));
+}
diff --git a/testsuites/psxtests/psxhdrs/ctype/toupper_l.c b/testsuites/psxtests/psxhdrs/ctype/toupper_l.c
new file mode 100644
index 0000000..a290a4c
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/ctype/toupper_l.c
@@ -0,0 +1,38 @@
+/**
+ *  @file
+ *  @brief toupper_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 <ctype.h>
+
+int test(void);
+
+int test(void)
+{
+  int lower;
+  locale_t locale;
+
+  locale = (locale_t)0;
+  lower = 0;
+  return (toupper_l(lower, locale));
+}



More information about the vc mailing list