summaryrefslogtreecommitdiff
path: root/libc/misc/locale/C_name.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-05-25 23:23:02 +0000
committerEric Andersen <andersen@codepoet.org>2001-05-25 23:23:02 +0000
commit6e72ced7e75c9977390ce89c5edc07efde05fa7c (patch)
tree9ae8c6537a1e9be44b0d206ff0f80eb3b7dde96a /libc/misc/locale/C_name.c
parent6395e85878894f3c0ad8a05b3aec66e514591959 (diff)
Add in some more GNU compatible locale stuff. I only implement the
C locale of course. util-linux needs this stuff to compile...
Diffstat (limited to 'libc/misc/locale/C_name.c')
-rw-r--r--libc/misc/locale/C_name.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/misc/locale/C_name.c b/libc/misc/locale/C_name.c
new file mode 100644
index 000000000..fa2ac0539
--- /dev/null
+++ b/libc/misc/locale/C_name.c
@@ -0,0 +1,8 @@
+/* Define a constant for the name of the standard C locale, so the string
+ constant is not repeated in dozens of object files. */
+
+#include "localeinfo.h"
+
+/* Name of our standard locale. */
+const char _nl_C_name[] = "C";
+const char _nl_POSIX_name[] = "POSIX";