populate _BSD_MBSTATE_T_. add warning regarding to rune_t.

This commit is contained in:
itojun 2000-12-21 06:03:47 +00:00
parent ad8f916312
commit 823498203f
11 changed files with 154 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ansi.h,v 1.12 2000/06/27 05:53:22 kleink Exp $ */
/* $NetBSD: ansi.h,v 1.13 2000/12/21 06:03:47 itojun Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -70,6 +70,9 @@ typedef struct {
#define _BSD_USECONDS_T_ unsigned int /* useconds_t */
/*
* NOTE: rune_t is not covered by ANSI nor other standards, and should not
* be instantiated outside of lib/libc/locale. use wchar_t.
*
* Runes (wchar_t) is declared to be an ``int'' instead of the more natural
* ``unsigned long'' or ``long''. Two things are happening here. It is not
* unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
@ -87,4 +90,14 @@ typedef struct {
#define _BSD_WINT_T_ int /* wint_t */
#define _BSD_RUNE_T_ int /* rune_t */
/*
* 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[32];
long long __mbstateL; /* for alignment */
} __mbstate_t;
#define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */
#endif /* _ANSI_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ansi.h,v 1.2 2000/06/27 05:53:22 kleink Exp $ */
/* $NetBSD: ansi.h,v 1.3 2000/12/21 06:03:47 itojun Exp $ */
/*
* Copyright (c) 1990, 1993
@ -59,6 +59,9 @@
#define _BSD_USECONDS_T_ unsigned int /* useconds_t */
/*
* NOTE: rune_t is not covered by ANSI nor other standards, and should not
* be instantiated outside of lib/libc/locale. use wchar_t.
*
* Runes (wchar_t) is declared to be an ``int'' instead of the more natural
* ``unsigned long'' or ``long''. Two things are happening here. It is not
* unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
@ -76,4 +79,14 @@
#define _BSD_WINT_T_ int /* wint_t */
#define _BSD_RUNE_T_ int /* rune_t */
/*
* 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[32];
long long __mbstateL; /* for alignment */
} __mbstate_t;
#define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */
#endif /* _ANSI_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ansi.h,v 1.8 2000/06/27 05:53:22 kleink Exp $ */
/* $NetBSD: ansi.h,v 1.9 2000/12/21 06:03:47 itojun Exp $ */
/*
* Copyright (c) 1990, 1993
@ -59,6 +59,9 @@
#define _BSD_USECONDS_T_ unsigned int /* useconds_t */
/*
* NOTE: rune_t is not covered by ANSI nor other standards, and should not
* be instantiated outside of lib/libc/locale. use wchar_t.
*
* Runes (wchar_t) is declared to be an ``int'' instead of the more natural
* ``unsigned long'' or ``long''. Two things are happening here. It is not
* unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
@ -76,4 +79,14 @@
#define _BSD_WINT_T_ int /* wint_t */
#define _BSD_RUNE_T_ int /* rune_t */
/*
* 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[32];
long long __mbstateL; /* for alignment */
} __mbstate_t;
#define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */
#endif /* _ANSI_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ansi.h,v 1.12 2000/06/27 05:53:23 kleink Exp $ */
/* $NetBSD: ansi.h,v 1.13 2000/12/21 06:03:48 itojun Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -65,6 +65,9 @@
#define _BSD_USECONDS_T_ unsigned int /* useconds_t */
/*
* NOTE: rune_t is not covered by ANSI nor other standards, and should not
* be instantiated outside of lib/libc/locale. use wchar_t.
*
* Runes (wchar_t) is declared to be an ``int'' instead of the more natural
* ``unsigned long'' or ``long''. Two things are happening here. It is not
* unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
@ -82,4 +85,14 @@
#define _BSD_WINT_T_ int /* wint_t */
#define _BSD_RUNE_T_ int /* rune_t */
/*
* 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[32];
long long __mbstateL; /* for alignment */
} __mbstate_t;
#define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */
#endif /* _ANSI_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ansi.h,v 1.10 2000/06/27 05:53:23 kleink Exp $ */
/* $NetBSD: ansi.h,v 1.11 2000/12/21 06:03:48 itojun Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -59,6 +59,9 @@
#define _BSD_USECONDS_T_ unsigned int /* useconds_t */
/*
* NOTE: rune_t is not covered by ANSI nor other standards, and should not
* be instantiated outside of lib/libc/locale. use wchar_t.
*
* Runes (wchar_t) is declared to be an ``int'' instead of the more natural
* ``unsigned long'' or ``long''. Two things are happening here. It is not
* unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
@ -76,4 +79,14 @@
#define _BSD_WINT_T_ int /* wint_t */
#define _BSD_RUNE_T_ int /* rune_t */
/*
* 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[32];
long long __mbstateL; /* for alignment */
} __mbstate_t;
#define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */
#endif /* _ANSI_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ansi.h,v 1.11 2000/06/27 05:53:23 kleink Exp $ */
/* $NetBSD: ansi.h,v 1.12 2000/12/21 06:03:48 itojun Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -59,6 +59,9 @@
#define _BSD_USECONDS_T_ unsigned int /* useconds_t */
/*
* NOTE: rune_t is not covered by ANSI nor other standards, and should not
* be instantiated outside of lib/libc/locale. use wchar_t.
*
* Runes (wchar_t) is declared to be an ``int'' instead of the more natural
* ``unsigned long'' or ``long''. Two things are happening here. It is not
* unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
@ -76,4 +79,14 @@
#define _BSD_WINT_T_ int /* wint_t */
#define _BSD_RUNE_T_ int /* rune_t */
/*
* 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[32];
long long __mbstateL; /* for alignment */
} __mbstate_t;
#define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */
#endif /* _ANSI_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ansi.h,v 1.11 2000/06/27 05:53:23 kleink Exp $ */
/* $NetBSD: ansi.h,v 1.12 2000/12/21 06:03:48 itojun Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -59,6 +59,9 @@
#define _BSD_USECONDS_T_ unsigned int /* useconds_t */
/*
* NOTE: rune_t is not covered by ANSI nor other standards, and should not
* be instantiated outside of lib/libc/locale. use wchar_t.
*
* Runes (wchar_t) is declared to be an ``int'' instead of the more natural
* ``unsigned long'' or ``long''. Two things are happening here. It is not
* unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
@ -76,4 +79,14 @@
#define _BSD_WINT_T_ int /* wint_t */
#define _BSD_RUNE_T_ int /* rune_t */
/*
* 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[32];
long long __mbstateL; /* for alignment */
} __mbstate_t;
#define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */
#endif /* _ANSI_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ansi.h,v 1.8 2000/06/27 05:53:23 kleink Exp $ */
/* $NetBSD: ansi.h,v 1.9 2000/12/21 06:03:48 itojun Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -64,6 +64,9 @@ typedef struct {
#define _BSD_VA_LIST_ __va_list /* va_list */
/*
* NOTE: rune_t is not covered by ANSI nor other standards, and should not
* be instantiated outside of lib/libc/locale. use wchar_t.
*
* Runes (wchar_t) is declared to be an ``int'' instead of the more natural
* ``unsigned long'' or ``long''. Two things are happening here. It is not
* unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
@ -81,4 +84,14 @@ typedef struct {
#define _BSD_WINT_T_ int /* wint_t */
#define _BSD_RUNE_T_ int /* rune_t */
/*
* 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[32];
long long __mbstateL; /* for alignment */
} __mbstate_t;
#define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */
#endif /* _ANSI_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ansi.h,v 1.2 2000/06/27 05:53:24 kleink Exp $ */
/* $NetBSD: ansi.h,v 1.3 2000/12/21 06:03:49 itojun Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -59,6 +59,9 @@
#define _BSD_USECONDS_T_ unsigned int /* useconds_t */
/*
* NOTE: rune_t is not covered by ANSI nor other standards, and should not
* be instantiated outside of lib/libc/locale. use wchar_t.
*
* Runes (wchar_t) is declared to be an ``int'' instead of the more natural
* ``unsigned long'' or ``long''. Two things are happening here. It is not
* unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
@ -76,4 +79,14 @@
#define _BSD_WINT_T_ int /* wint_t */
#define _BSD_RUNE_T_ int /* rune_t */
/*
* 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[32];
long long __mbstateL; /* for alignment */
} __mbstate_t;
#define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */
#endif /* _ANSI_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ansi.h,v 1.10 2000/06/27 05:53:24 kleink Exp $ */
/* $NetBSD: ansi.h,v 1.11 2000/12/21 06:03:49 itojun Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -59,6 +59,9 @@
#define _BSD_USECONDS_T_ unsigned int /* useconds_t */
/*
* NOTE: rune_t is not covered by ANSI nor other standards, and should not
* be instantiated outside of lib/libc/locale. use wchar_t.
*
* Runes (wchar_t) is declared to be an ``int'' instead of the more natural
* ``unsigned long'' or ``long''. Two things are happening here. It is not
* unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
@ -76,4 +79,14 @@
#define _BSD_WINT_T_ int /* wint_t */
#define _BSD_RUNE_T_ int /* rune_t */
/*
* 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[32];
long long __mbstateL; /* for alignment */
} __mbstate_t;
#define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */
#endif /* _ANSI_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ansi.h,v 1.4 2000/06/27 05:53:24 kleink Exp $ */
/* $NetBSD: ansi.h,v 1.5 2000/12/21 06:03:49 itojun Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -59,6 +59,9 @@
#define _BSD_USECONDS_T_ unsigned int /* useconds_t */
/*
* NOTE: rune_t is not covered by ANSI nor other standards, and should not
* be instantiated outside of lib/libc/locale. use wchar_t.
*
* Runes (wchar_t) is declared to be an ``int'' instead of the more natural
* ``unsigned long'' or ``long''. Two things are happening here. It is not
* unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
@ -76,4 +79,14 @@
#define _BSD_WINT_T_ int /* wint_t */
#define _BSD_RUNE_T_ int /* rune_t */
/*
* 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[32];
long long __mbstateL; /* for alignment */
} __mbstate_t;
#define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */
#endif /* _ANSI_H_ */