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