xref: /original-bsd/sys/hp300/include/types.h (revision b7cc7b86)
1 /*-
2  * Copyright (c) 1990 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)types.h	7.8 (Berkeley) 01/28/91
8  */
9 
10 #ifndef	_MACHTYPES_H_
11 #define	_MACHTYPES_H_
12 
13 /*
14  * Types which are fundamental to the implementation and may appear in
15  * more than one standard header are defined here.  Standard headers
16  * then use:
17  *	#ifdef	_SIZE_T_
18  *	typedef	_SIZE_T_ size_t;
19  *	#undef	_SIZE_T_
20  *	#endif
21  *
22  * Thanks, ANSI!
23  */
24 #define	_CLOCK_T_	unsigned long		/* clock() */
25 #define	_PTRDIFF_T_	int			/* ptr1 - ptr2 */
26 #define	_SIZE_T_	unsigned int		/* sizeof() */
27 #define	_TIME_T_	long			/* time() */
28 #define	_VA_LIST_	char *			/* va_list */
29 #define	_WCHAR_T_	unsigned short		/* wchar_t */
30 
31 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
32 typedef struct _physadr {
33 	short r[1];
34 } *physadr;
35 typedef struct label_t {		/* consistent with HP-UX */
36 	int val[15];
37 } label_t;
38 typedef	u_long	vm_offset_t;
39 typedef	u_long	vm_size_t;
40 #endif
41 #endif	/* _MACHTYPES_H_ */
42