summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include/ansi.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc64/include/ansi.h')
-rw-r--r--sys/arch/sparc64/include/ansi.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/arch/sparc64/include/ansi.h b/sys/arch/sparc64/include/ansi.h
index b77b84a94e1..82a49222d10 100644
--- a/sys/arch/sparc64/include/ansi.h
+++ b/sys/arch/sparc64/include/ansi.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ansi.h,v 1.4 2004/01/03 14:08:53 espie Exp $ */
+/* $OpenBSD: ansi.h,v 1.5 2005/04/14 20:56:24 espie Exp $ */
/* $NetBSD: ansi.h,v 1.7 2001/01/03 10:09:04 takemura Exp $ */
/*-
@@ -79,6 +79,8 @@
#define _BSD_WCHAR_T_ int /* wchar_t */
#define _BSD_WINT_T_ int /* wint_t */
#define _BSD_RUNE_T_ int /* rune_t */
+#define _BSD_WCTRANS_T_ void * /* wctrans_t */
+#define _BSD_WCTYPE_T_ void * /* wctype_t */
/*
* We describe off_t here so its declaration can be visible to
@@ -86,4 +88,14 @@
*/
#define _BSD_OFF_T_ long long
+/*
+ * mbstate_t is an opaque object to keep conversion state, during multibyte
+ * stream conversions. The content must not be referenced by user programs.
+ */
+typedef union {
+ char __mbstate8[128];
+ long long __mbstateL; /* for alignment */
+} __mbstate_t;
+#define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */
+
#endif /* _ANSI_H_ */