summaryrefslogtreecommitdiff
path: root/libc/misc/ctype
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-02-13 08:14:12 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-02-13 08:14:12 +0000
commit42c9f525369ba06742d53d7a89ad00153b317de6 (patch)
tree384ccc4bd211f66950ae1b72bf7b3188c58c4d56 /libc/misc/ctype
parent12c4a2b9298f6bb4320509b8bb21ba0aa2d4392d (diff)
Add files for IMA. Yes, I know it's a hack and no, I won't split the affected files
Diffstat (limited to 'libc/misc/ctype')
-rw-r--r--libc/misc/ctype/__C_ctype_b.c8
-rw-r--r--libc/misc/ctype/__C_ctype_tolower.c8
-rw-r--r--libc/misc/ctype/__C_ctype_toupper.c8
-rw-r--r--libc/misc/ctype/__ctype_assert.c8
-rw-r--r--libc/misc/ctype/__ctype_b_loc.c8
-rw-r--r--libc/misc/ctype/__ctype_tolower_loc.c8
-rw-r--r--libc/misc/ctype/__ctype_toupper_loc.c8
-rw-r--r--libc/misc/ctype/isalnum.c8
-rw-r--r--libc/misc/ctype/isalnum_l.c9
-rw-r--r--libc/misc/ctype/isalpha.c8
-rw-r--r--libc/misc/ctype/isalpha_l.c9
-rw-r--r--libc/misc/ctype/isascii.c8
-rw-r--r--libc/misc/ctype/isascii_l.c9
-rw-r--r--libc/misc/ctype/isblank.c8
-rw-r--r--libc/misc/ctype/isblank_l.c9
-rw-r--r--libc/misc/ctype/iscntrl.c8
-rw-r--r--libc/misc/ctype/iscntrl_l.c9
-rw-r--r--libc/misc/ctype/isctype.c8
-rw-r--r--libc/misc/ctype/isdigit.c8
-rw-r--r--libc/misc/ctype/isdigit_l.c9
-rw-r--r--libc/misc/ctype/isgraph.c8
-rw-r--r--libc/misc/ctype/isgraph_l.c9
-rw-r--r--libc/misc/ctype/islower.c8
-rw-r--r--libc/misc/ctype/islower_l.c9
-rw-r--r--libc/misc/ctype/isprint.c8
-rw-r--r--libc/misc/ctype/isprint_l.c9
-rw-r--r--libc/misc/ctype/ispunct.c8
-rw-r--r--libc/misc/ctype/ispunct_l.c9
-rw-r--r--libc/misc/ctype/isspace.c8
-rw-r--r--libc/misc/ctype/isspace_l.c9
-rw-r--r--libc/misc/ctype/isupper.c8
-rw-r--r--libc/misc/ctype/isupper_l.c9
-rw-r--r--libc/misc/ctype/isxdigit.c8
-rw-r--r--libc/misc/ctype/isxdigit_l.c9
-rw-r--r--libc/misc/ctype/toascii.c8
-rw-r--r--libc/misc/ctype/toascii_l.c9
-rw-r--r--libc/misc/ctype/tolower.c8
-rw-r--r--libc/misc/ctype/tolower_l.c9
-rw-r--r--libc/misc/ctype/toupper.c8
-rw-r--r--libc/misc/ctype/toupper_l.c9
40 files changed, 336 insertions, 0 deletions
diff --git a/libc/misc/ctype/__C_ctype_b.c b/libc/misc/ctype/__C_ctype_b.c
new file mode 100644
index 000000000..d22359f33
--- /dev/null
+++ b/libc/misc/ctype/__C_ctype_b.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___C_ctype_b
+#include "ctype.c"
diff --git a/libc/misc/ctype/__C_ctype_tolower.c b/libc/misc/ctype/__C_ctype_tolower.c
new file mode 100644
index 000000000..fc6027f51
--- /dev/null
+++ b/libc/misc/ctype/__C_ctype_tolower.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___C_ctype_tolower
+#include "ctype.c"
diff --git a/libc/misc/ctype/__C_ctype_toupper.c b/libc/misc/ctype/__C_ctype_toupper.c
new file mode 100644
index 000000000..ec42fbfbe
--- /dev/null
+++ b/libc/misc/ctype/__C_ctype_toupper.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___C_ctype_toupper
+#include "ctype.c"
diff --git a/libc/misc/ctype/__ctype_assert.c b/libc/misc/ctype/__ctype_assert.c
new file mode 100644
index 000000000..fe459458c
--- /dev/null
+++ b/libc/misc/ctype/__ctype_assert.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___ctype_assert
+#include "ctype.c"
diff --git a/libc/misc/ctype/__ctype_b_loc.c b/libc/misc/ctype/__ctype_b_loc.c
new file mode 100644
index 000000000..11d504693
--- /dev/null
+++ b/libc/misc/ctype/__ctype_b_loc.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___ctype_b_loc
+#include "ctype.c"
diff --git a/libc/misc/ctype/__ctype_tolower_loc.c b/libc/misc/ctype/__ctype_tolower_loc.c
new file mode 100644
index 000000000..54037a598
--- /dev/null
+++ b/libc/misc/ctype/__ctype_tolower_loc.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___ctype_tolower_loc
+#include "ctype.c"
diff --git a/libc/misc/ctype/__ctype_toupper_loc.c b/libc/misc/ctype/__ctype_toupper_loc.c
new file mode 100644
index 000000000..e511d0f72
--- /dev/null
+++ b/libc/misc/ctype/__ctype_toupper_loc.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L___ctype_toupper_loc
+#include "ctype.c"
diff --git a/libc/misc/ctype/isalnum.c b/libc/misc/ctype/isalnum.c
new file mode 100644
index 000000000..8bc8ad6d5
--- /dev/null
+++ b/libc/misc/ctype/isalnum.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isalnum
+#include "ctype.c"
diff --git a/libc/misc/ctype/isalnum_l.c b/libc/misc/ctype/isalnum_l.c
new file mode 100644
index 000000000..8ecd9d59b
--- /dev/null
+++ b/libc/misc/ctype/isalnum_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isalnum_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/isalpha.c b/libc/misc/ctype/isalpha.c
new file mode 100644
index 000000000..22f23d92c
--- /dev/null
+++ b/libc/misc/ctype/isalpha.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isalpha
+#include "ctype.c"
diff --git a/libc/misc/ctype/isalpha_l.c b/libc/misc/ctype/isalpha_l.c
new file mode 100644
index 000000000..10a2ecfce
--- /dev/null
+++ b/libc/misc/ctype/isalpha_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isalpha_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/isascii.c b/libc/misc/ctype/isascii.c
new file mode 100644
index 000000000..84f701f8d
--- /dev/null
+++ b/libc/misc/ctype/isascii.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isascii
+#include "ctype.c"
diff --git a/libc/misc/ctype/isascii_l.c b/libc/misc/ctype/isascii_l.c
new file mode 100644
index 000000000..7fe5545b3
--- /dev/null
+++ b/libc/misc/ctype/isascii_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isascii_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/isblank.c b/libc/misc/ctype/isblank.c
new file mode 100644
index 000000000..d11fe26cd
--- /dev/null
+++ b/libc/misc/ctype/isblank.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isblank
+#include "ctype.c"
diff --git a/libc/misc/ctype/isblank_l.c b/libc/misc/ctype/isblank_l.c
new file mode 100644
index 000000000..144cd932d
--- /dev/null
+++ b/libc/misc/ctype/isblank_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isblank_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/iscntrl.c b/libc/misc/ctype/iscntrl.c
new file mode 100644
index 000000000..4a0c09d36
--- /dev/null
+++ b/libc/misc/ctype/iscntrl.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iscntrl
+#include "ctype.c"
diff --git a/libc/misc/ctype/iscntrl_l.c b/libc/misc/ctype/iscntrl_l.c
new file mode 100644
index 000000000..fbee951c4
--- /dev/null
+++ b/libc/misc/ctype/iscntrl_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_iscntrl_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/isctype.c b/libc/misc/ctype/isctype.c
new file mode 100644
index 000000000..a2d0b3dd8
--- /dev/null
+++ b/libc/misc/ctype/isctype.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isctype
+#include "ctype.c"
diff --git a/libc/misc/ctype/isdigit.c b/libc/misc/ctype/isdigit.c
new file mode 100644
index 000000000..e185c89d5
--- /dev/null
+++ b/libc/misc/ctype/isdigit.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isdigit
+#include "ctype.c"
diff --git a/libc/misc/ctype/isdigit_l.c b/libc/misc/ctype/isdigit_l.c
new file mode 100644
index 000000000..5b764f12f
--- /dev/null
+++ b/libc/misc/ctype/isdigit_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isdigit_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/isgraph.c b/libc/misc/ctype/isgraph.c
new file mode 100644
index 000000000..c4ad1b7b5
--- /dev/null
+++ b/libc/misc/ctype/isgraph.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isgraph
+#include "ctype.c"
diff --git a/libc/misc/ctype/isgraph_l.c b/libc/misc/ctype/isgraph_l.c
new file mode 100644
index 000000000..005e19fc8
--- /dev/null
+++ b/libc/misc/ctype/isgraph_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isgraph_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/islower.c b/libc/misc/ctype/islower.c
new file mode 100644
index 000000000..aff65dd90
--- /dev/null
+++ b/libc/misc/ctype/islower.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_islower
+#include "ctype.c"
diff --git a/libc/misc/ctype/islower_l.c b/libc/misc/ctype/islower_l.c
new file mode 100644
index 000000000..dd085578f
--- /dev/null
+++ b/libc/misc/ctype/islower_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_islower_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/isprint.c b/libc/misc/ctype/isprint.c
new file mode 100644
index 000000000..b6f7d6cc1
--- /dev/null
+++ b/libc/misc/ctype/isprint.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isprint
+#include "ctype.c"
diff --git a/libc/misc/ctype/isprint_l.c b/libc/misc/ctype/isprint_l.c
new file mode 100644
index 000000000..32f9b3f32
--- /dev/null
+++ b/libc/misc/ctype/isprint_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isprint_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/ispunct.c b/libc/misc/ctype/ispunct.c
new file mode 100644
index 000000000..08f7b19ac
--- /dev/null
+++ b/libc/misc/ctype/ispunct.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_ispunct
+#include "ctype.c"
diff --git a/libc/misc/ctype/ispunct_l.c b/libc/misc/ctype/ispunct_l.c
new file mode 100644
index 000000000..513bb5238
--- /dev/null
+++ b/libc/misc/ctype/ispunct_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_ispunct_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/isspace.c b/libc/misc/ctype/isspace.c
new file mode 100644
index 000000000..c8ff56746
--- /dev/null
+++ b/libc/misc/ctype/isspace.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isspace
+#include "ctype.c"
diff --git a/libc/misc/ctype/isspace_l.c b/libc/misc/ctype/isspace_l.c
new file mode 100644
index 000000000..97e0c9921
--- /dev/null
+++ b/libc/misc/ctype/isspace_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isspace_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/isupper.c b/libc/misc/ctype/isupper.c
new file mode 100644
index 000000000..36d6e6e96
--- /dev/null
+++ b/libc/misc/ctype/isupper.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isupper
+#include "ctype.c"
diff --git a/libc/misc/ctype/isupper_l.c b/libc/misc/ctype/isupper_l.c
new file mode 100644
index 000000000..8aa4dbdfa
--- /dev/null
+++ b/libc/misc/ctype/isupper_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isupper_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/isxdigit.c b/libc/misc/ctype/isxdigit.c
new file mode 100644
index 000000000..40919f7bf
--- /dev/null
+++ b/libc/misc/ctype/isxdigit.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isxdigit
+#include "ctype.c"
diff --git a/libc/misc/ctype/isxdigit_l.c b/libc/misc/ctype/isxdigit_l.c
new file mode 100644
index 000000000..5dce7f1a5
--- /dev/null
+++ b/libc/misc/ctype/isxdigit_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_isxdigit_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/toascii.c b/libc/misc/ctype/toascii.c
new file mode 100644
index 000000000..a63b99344
--- /dev/null
+++ b/libc/misc/ctype/toascii.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_toascii
+#include "ctype.c"
diff --git a/libc/misc/ctype/toascii_l.c b/libc/misc/ctype/toascii_l.c
new file mode 100644
index 000000000..617952639
--- /dev/null
+++ b/libc/misc/ctype/toascii_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_toascii_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/tolower.c b/libc/misc/ctype/tolower.c
new file mode 100644
index 000000000..3673642c4
--- /dev/null
+++ b/libc/misc/ctype/tolower.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_tolower
+#include "ctype.c"
diff --git a/libc/misc/ctype/tolower_l.c b/libc/misc/ctype/tolower_l.c
new file mode 100644
index 000000000..327e63cae
--- /dev/null
+++ b/libc/misc/ctype/tolower_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_tolower_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"
diff --git a/libc/misc/ctype/toupper.c b/libc/misc/ctype/toupper.c
new file mode 100644
index 000000000..a9d8aab6d
--- /dev/null
+++ b/libc/misc/ctype/toupper.c
@@ -0,0 +1,8 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_toupper
+#include "ctype.c"
diff --git a/libc/misc/ctype/toupper_l.c b/libc/misc/ctype/toupper_l.c
new file mode 100644
index 000000000..c91d79151
--- /dev/null
+++ b/libc/misc/ctype/toupper_l.c
@@ -0,0 +1,9 @@
+/*
+ * Copyright (C) 2003-2006 Manuel Novoa III <mjn3@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_toupper_l
+#define __UCLIBC_DO_XLOCALE
+#include "ctype.c"