00001 /* $Id$ */ 00002 /* $OpenBSD: types.h,v 1.2 1997/09/21 10:46:17 niklas Exp $ */ 00003 /* $NetBSD: types.h,v 1.8 1995/04/29 05:28:05 cgd Exp $ */ 00004 00005 /* 00006 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 00007 * unrestricted use provided that this legend is included on all tape 00008 * media and as a part of the software program in whole or part. Users 00009 * may copy or modify Sun RPC without charge, but are not authorized 00010 * to license or distribute it to anyone else except as part of a product or 00011 * program developed by the user. 00012 * 00013 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE 00014 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR 00015 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. 00016 * 00017 * Sun RPC is provided with no support and without any obligation on the 00018 * part of Sun Microsystems, Inc. to assist in its use, correction, 00019 * modification or enhancement. 00020 * 00021 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 00022 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC 00023 * OR ANY PART THEREOF. 00024 * 00025 * In no event will Sun Microsystems, Inc. be liable for any lost revenue 00026 * or profits or other special, indirect and consequential damages, even if 00027 * Sun has been advised of the possibility of such damages. 00028 * 00029 * Sun Microsystems, Inc. 00030 * 2550 Garcia Avenue 00031 * Mountain View, California 94043 00032 * 00033 * from: @(#)types.h 1.18 87/07/24 SMI 00034 * @(#)types.h 2.3 88/08/15 4.0 RPCSRC 00035 */ 00036 00037 /* 00038 * Rpc additions to <sys/types.h> 00039 */ 00040 #ifndef _RPC_TYPES_H 00041 #define _RPC_TYPES_H 00042 00043 #ifdef WIN32 00044 /* These are now located in <stdint.h> */ 00045 /* typedef int int32_t; */ 00046 /* typedef unsigned int u_int32_t; */ 00047 #include <stdint.h> 00048 typedef char * caddr_t; 00049 #endif 00050 #define bool_t int32_t 00051 #define enum_t int32_t 00052 #define __dontcare__ -1 00053 00054 #ifndef FALSE 00055 # define FALSE (0) 00056 #endif 00057 #ifndef TRUE 00058 # define TRUE (1) 00059 #endif 00060 #ifndef NULL 00061 # define NULL 0 00062 #endif 00063 00064 #define mem_alloc(bsize) malloc(bsize) 00065 #define mem_free(ptr, bsize) free(ptr) 00066 00067 #ifndef makedev /* ie, we haven't already included it */ 00068 #include <sys/types.h> 00069 #endif 00070 #ifdef WIN32 00071 #include <time.h> 00072 #else 00073 #include <sys/time.h> 00074 #endif 00075 00076 #endif /* !_RPC_TYPES_H */