xref: /openbsd/include/rpc/types.h (revision cb7760d1)
1*cb7760d1Smillert /*	$OpenBSD: types.h,v 1.3 2010/09/01 14:43:34 millert Exp $	*/
2df930be7Sderaadt /*	$NetBSD: types.h,v 1.8 1995/04/29 05:28:05 cgd Exp $	*/
3df930be7Sderaadt 
4df930be7Sderaadt /*
5*cb7760d1Smillert  * Copyright (c) 2010, Oracle America, Inc.
6df930be7Sderaadt  *
7*cb7760d1Smillert  * Redistribution and use in source and binary forms, with or without
8*cb7760d1Smillert  * modification, are permitted provided that the following conditions are
9*cb7760d1Smillert  * met:
10df930be7Sderaadt  *
11*cb7760d1Smillert  *     * Redistributions of source code must retain the above copyright
12*cb7760d1Smillert  *       notice, this list of conditions and the following disclaimer.
13*cb7760d1Smillert  *     * Redistributions in binary form must reproduce the above
14*cb7760d1Smillert  *       copyright notice, this list of conditions and the following
15*cb7760d1Smillert  *       disclaimer in the documentation and/or other materials
16*cb7760d1Smillert  *       provided with the distribution.
17*cb7760d1Smillert  *     * Neither the name of the "Oracle America, Inc." nor the names of its
18*cb7760d1Smillert  *       contributors may be used to endorse or promote products derived
19*cb7760d1Smillert  *       from this software without specific prior written permission.
20df930be7Sderaadt  *
21*cb7760d1Smillert  *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22*cb7760d1Smillert  *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23*cb7760d1Smillert  *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24*cb7760d1Smillert  *   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25*cb7760d1Smillert  *   COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
26*cb7760d1Smillert  *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27*cb7760d1Smillert  *   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
28*cb7760d1Smillert  *   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29*cb7760d1Smillert  *   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
30*cb7760d1Smillert  *   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
31*cb7760d1Smillert  *   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32*cb7760d1Smillert  *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33df930be7Sderaadt  *
34df930be7Sderaadt  *	from: @(#)types.h 1.18 87/07/24 SMI
35df930be7Sderaadt  *	@(#)types.h	2.3 88/08/15 4.0 RPCSRC
36df930be7Sderaadt  */
37df930be7Sderaadt 
38df930be7Sderaadt /*
39df930be7Sderaadt  * Rpc additions to <sys/types.h>
40df930be7Sderaadt  */
41df930be7Sderaadt #ifndef _RPC_TYPES_H
42df930be7Sderaadt #define _RPC_TYPES_H
43df930be7Sderaadt 
44df930be7Sderaadt #define	bool_t	int32_t
45df930be7Sderaadt #define	enum_t	int32_t
46df930be7Sderaadt #define __dontcare__	-1
47df930be7Sderaadt 
48df930be7Sderaadt #ifndef FALSE
49df930be7Sderaadt #	define FALSE	(0)
50df930be7Sderaadt #endif
51df930be7Sderaadt #ifndef TRUE
52df930be7Sderaadt #	define TRUE	(1)
53df930be7Sderaadt #endif
54df930be7Sderaadt #ifndef NULL
55df930be7Sderaadt #	define NULL	0
56df930be7Sderaadt #endif
57df930be7Sderaadt 
58df930be7Sderaadt #define mem_alloc(bsize)	malloc(bsize)
59df930be7Sderaadt #define mem_free(ptr, bsize)	free(ptr)
60df930be7Sderaadt 
61df930be7Sderaadt #ifndef makedev /* ie, we haven't already included it */
62df930be7Sderaadt #include <sys/types.h>
63df930be7Sderaadt #endif
64df930be7Sderaadt #include <sys/time.h>
65df930be7Sderaadt 
66df930be7Sderaadt #endif /* !_RPC_TYPES_H */
67