/*
 * @DEC_COPYRIGHT@
 */
/*
 * HISTORY
 * $Log:	types.h,v $
 * Revision 1.1.2.2  92/02/26  15:47:07  Charles_Briggs
 * 	From ONC reference port.
 * 	[92/02/21  08:59:16  Charles_Briggs]
 * 
 * $EndLog$
 */
/*
 * @(#)$RCSfile: types.h,v $ $Revision: 1.1.2.2 $ (DEC) $Date: 92/02/26 15:47:07 $
 */
/*	@(#)types.h	1.6 90/07/19 4.1NFSSRC SMI	*/

/* 
 * Copyright (c) 1990 by Sun Microsystems, Inc.
 *      @(#)types.h 1.20 88/02/08 SMI      
 */


/*
 * Rpc additions to <sys/types.h>
 */

#ifndef	__rpc_types_h
#define	__rpc_types_h

#define register

#define	bool_t	int
#define	enum_t	int
#define __dontcare__	-1

#ifndef FALSE
#	define	FALSE	(0)
#endif

#ifndef TRUE
#	define	TRUE	(1)
#endif

#ifndef NULL
#	define NULL 0
#endif

#ifndef	KERNEL
extern char *malloc();
#define	mem_alloc(bsize)	malloc(bsize)
#define	mem_free(ptr, bsize)	free(ptr)
#else
extern char *kalloc();
#define	kmem_alloc(bsize)	kalloc((u_int)bsize)
#define	kmem_free(ptr, bsize)	kfree((caddr_t)(ptr), (u_int)(bsize))
#define	mem_alloc(bsize)	kalloc((u_int)bsize)
#define	mem_free(ptr, bsize)	kfree((caddr_t)(ptr), (u_int)(bsize))
#endif

#include <sys/types.h>

#ifndef _TIME_
#include <sys/time.h>
#endif

#endif	/* !__rpc_types_h */
