xref: /minix3/sys/arch/i386/include/ansi.h (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc /*	$NetBSD: ansi.h,v 1.27 2015/06/17 14:32:31 martin Exp $	*/
2f6aac1c3SLionel Sambuc 
3f6aac1c3SLionel Sambuc /*-
4f6aac1c3SLionel Sambuc  * Copyright (c) 1990, 1993
5f6aac1c3SLionel Sambuc  *	The Regents of the University of California.  All rights reserved.
6f6aac1c3SLionel Sambuc  *
7f6aac1c3SLionel Sambuc  * Redistribution and use in source and binary forms, with or without
8f6aac1c3SLionel Sambuc  * modification, are permitted provided that the following conditions
9f6aac1c3SLionel Sambuc  * are met:
10f6aac1c3SLionel Sambuc  * 1. Redistributions of source code must retain the above copyright
11f6aac1c3SLionel Sambuc  *    notice, this list of conditions and the following disclaimer.
12f6aac1c3SLionel Sambuc  * 2. Redistributions in binary form must reproduce the above copyright
13f6aac1c3SLionel Sambuc  *    notice, this list of conditions and the following disclaimer in the
14f6aac1c3SLionel Sambuc  *    documentation and/or other materials provided with the distribution.
15f6aac1c3SLionel Sambuc  * 3. Neither the name of the University nor the names of its contributors
16f6aac1c3SLionel Sambuc  *    may be used to endorse or promote products derived from this software
17f6aac1c3SLionel Sambuc  *    without specific prior written permission.
18f6aac1c3SLionel Sambuc  *
19f6aac1c3SLionel Sambuc  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20f6aac1c3SLionel Sambuc  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21f6aac1c3SLionel Sambuc  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22f6aac1c3SLionel Sambuc  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23f6aac1c3SLionel Sambuc  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24f6aac1c3SLionel Sambuc  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25f6aac1c3SLionel Sambuc  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26f6aac1c3SLionel Sambuc  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27f6aac1c3SLionel Sambuc  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28f6aac1c3SLionel Sambuc  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29f6aac1c3SLionel Sambuc  * SUCH DAMAGE.
30f6aac1c3SLionel Sambuc  *
31f6aac1c3SLionel Sambuc  *	@(#)ansi.h	8.2 (Berkeley) 1/4/94
32f6aac1c3SLionel Sambuc  */
33f6aac1c3SLionel Sambuc 
34f6aac1c3SLionel Sambuc #ifndef	_I386_ANSI_H_
35f6aac1c3SLionel Sambuc #define	_I386_ANSI_H_
36f6aac1c3SLionel Sambuc 
37f6aac1c3SLionel Sambuc #include <sys/cdefs.h>
38f6aac1c3SLionel Sambuc 
39f6aac1c3SLionel Sambuc #include <machine/int_types.h>
40f6aac1c3SLionel Sambuc 
41f6aac1c3SLionel Sambuc /*
42f6aac1c3SLionel Sambuc  * Types which are fundamental to the implementation and may appear in
43f6aac1c3SLionel Sambuc  * more than one standard header are defined here.  Standard headers
44f6aac1c3SLionel Sambuc  * then use:
45f6aac1c3SLionel Sambuc  *	#ifdef	_BSD_SIZE_T_
46f6aac1c3SLionel Sambuc  *	typedef	_BSD_SIZE_T_ size_t;
47f6aac1c3SLionel Sambuc  *	#undef	_BSD_SIZE_T_
48f6aac1c3SLionel Sambuc  *	#endif
49f6aac1c3SLionel Sambuc  */
50*0a6a1f1dSLionel Sambuc #define	_BSD_CLOCK_T_		unsigned int	/* clock() */
51f14fb602SLionel Sambuc #define	_BSD_PTRDIFF_T_		int		/* ptr1 - ptr2 */
52f14fb602SLionel Sambuc #define	_BSD_SIZE_T_		unsigned int	/* sizeof() */
53f14fb602SLionel Sambuc #define	_BSD_SSIZE_T_		int		/* byte count or error */
5455d9e995SLionel Sambuc #define	_BSD_TIME_T_		__int64_t	/* time() */
55f6aac1c3SLionel Sambuc #define	_BSD_CLOCKID_T_		int		/* clockid_t */
56f6aac1c3SLionel Sambuc #define	_BSD_TIMER_T_		int		/* timer_t */
57f14fb602SLionel Sambuc #define	_BSD_SUSECONDS_T_	int		/* suseconds_t */
5874437819SLionel Sambuc #define	_BSD_USECONDS_T_	unsigned int	/* useconds_t */
59*0a6a1f1dSLionel Sambuc 
60*0a6a1f1dSLionel Sambuc #if defined(__WCHAR_TYPE__)
61*0a6a1f1dSLionel Sambuc #define	_BSD_WCHAR_T_		__WCHAR_TYPE__	/* wchar_t */
62*0a6a1f1dSLionel Sambuc #else
63f6aac1c3SLionel Sambuc #define	_BSD_WCHAR_T_		int		/* wchar_t */
64*0a6a1f1dSLionel Sambuc #endif
65*0a6a1f1dSLionel Sambuc #if defined(__WINT_TYPE__)
66*0a6a1f1dSLionel Sambuc #define	_BSD_WINT_T_		__WINT_TYPE__	/* wint_t */
67*0a6a1f1dSLionel Sambuc #else
68f6aac1c3SLionel Sambuc #define	_BSD_WINT_T_		int		/* wint_t */
69*0a6a1f1dSLionel Sambuc #endif
70f6aac1c3SLionel Sambuc 
71f6aac1c3SLionel Sambuc #endif	/* _I386_ANSI_H_ */
72