diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-04-16 15:44:40 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-04-16 15:44:40 +0000 |
commit | f7ce04763f87b89e732f4123e7438961d9564219 (patch) | |
tree | f4c8d8181edb093a02a377bf4d53b58d2e4b0ff8 /sys | |
parent | 2220dd64b809f6d53294a9c21441d834801c61f6 (diff) |
internal _BSD_WCTRANS_T_, _BSD_MSTATE_T_, _BSD_WCTYPE_T_ types.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/m88k/include/ansi.h | 14 | ||||
-rw-r--r-- | sys/arch/mips64/include/ansi.h | 14 |
2 files changed, 26 insertions, 2 deletions
diff --git a/sys/arch/m88k/include/ansi.h b/sys/arch/m88k/include/ansi.h index 907af3487db..d5371472948 100644 --- a/sys/arch/m88k/include/ansi.h +++ b/sys/arch/m88k/include/ansi.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ansi.h,v 1.1 2004/04/26 12:34:05 miod Exp $ */ +/* $OpenBSD: ansi.h,v 1.2 2005/04/16 15:44:38 miod Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -73,6 +73,8 @@ struct __va_list_tag; #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 @@ -80,4 +82,14 @@ struct __va_list_tag; */ #define _BSD_OFF_T_ long long /* file offset */ +/* + * 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 /* __MACHINE_ANSI_H__ */ diff --git a/sys/arch/mips64/include/ansi.h b/sys/arch/mips64/include/ansi.h index 05a6918221c..3eafb7dd5bf 100644 --- a/sys/arch/mips64/include/ansi.h +++ b/sys/arch/mips64/include/ansi.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ansi.h,v 1.3 2004/08/30 16:31:51 pefo Exp $ */ +/* $OpenBSD: ansi.h,v 1.4 2005/04/16 15:44:39 miod Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -83,6 +83,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 @@ -90,4 +92,14 @@ */ #define _BSD_OFF_T_ long long /* file offset */ +/* + * 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 /* !_MIPS_ANSI_H_ */ |