/*
 * @DEC_COPYRIGHT@
 */
/*
 * HISTORY
 * $Log:	types.h,v $
 * Revision 4.2  91/09/20  05:10:56  devbld
 * Adding ODE Headers
 * 
 * $EndLog$
 */
/*
 *	@(#)$RCSfile: types.h,v $ $Revision: 4.2 $ (DEC) $Date: 91/09/20 05:10:56 $
 */
/*
 */


/* 
 * Copyright (c) 1990 by Sun Microsystems, Inc.
 */


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

#ifndef	__rpc_types_h
#define	__rpc_types_h

#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 *kmem_alloc();
#define	mem_alloc(bsize)	kmem_alloc((u_int)bsize)
#define	mem_free(ptr, bsize)	kmem_free((caddr_t)(ptr), (u_int)(bsize))
#endif

#ifdef KERNEL
#include "../h/types.h"

#ifndef _TIME_
#include "time.h"
#endif 

#else
#include <sys/types.h>

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

#endif /* KERNEL */
#endif	/* !__rpc_types_h */
