00001 /********************************************************************* 00002 * RPC for the Windows NT Operating System 00003 * 1993 by Martin F. Gergeleit 00004 * Users may use, copy or modify Sun RPC for the Windows NT Operating 00005 * System according to the Sun copyright below. 00006 * 00007 * RPC for the Windows NT Operating System COMES WITH ABSOLUTELY NO 00008 * WARRANTY, NOR WILL I BE LIABLE FOR ANY DAMAGES INCURRED FROM THE 00009 * USE OF. USE ENTIRELY AT YOUR OWN RISK!!! 00010 *********************************************************************/ 00011 00012 /* @(#)types.h 2.3 88/08/15 4.0 RPCSRC */ 00013 /* 00014 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 00015 * unrestricted use provided that this legend is included on all tape 00016 * media and as a part of the software program in whole or part. Users 00017 * may copy or modify Sun RPC without charge, but are not authorized 00018 * to license or distribute it to anyone else except as part of a product or 00019 * program developed by the user. 00020 * 00021 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE 00022 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR 00023 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. 00024 * 00025 * Sun RPC is provided with no support and without any obligation on the 00026 * part of Sun Microsystems, Inc. to assist in its use, correction, 00027 * modification or enhancement. 00028 * 00029 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 00030 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC 00031 * OR ANY PART THEREOF. 00032 * 00033 * In no event will Sun Microsystems, Inc. be liable for any lost revenue 00034 * or profits or other special, indirect and consequential damages, even if 00035 * Sun has been advised of the possibility of such damages. 00036 * 00037 * Sun Microsystems, Inc. 00038 * 2550 Garcia Avenue 00039 * Mountain View, California 94043 00040 */ 00041 /* @(#)types.h 1.18 87/07/24 SMI */ 00042 00043 /* NIST Modifications: 00044 10-Dec-1998 the name of this file was changed from types.h to xdr_types.h 00045 although originally this file was part of RPC it will be used here only 00046 to compile XDR for Windows NT to be used internally within NML. Other platforms 00047 will continue to use the system provided headers for XDR and RPC. 00048 00049 */ 00050 00051 00052 /* 00053 * Rpc additions to <sys/types.h> 00054 */ 00055 #ifndef __TYPES_RPC_HEADER__ 00056 #define __TYPES_RPC_HEADER__ 00057 00058 #define bool_t int 00059 #define enum_t int 00060 #ifndef FALSE 00061 #define FALSE (0) 00062 #endif 00063 #ifndef TRUE 00064 #define TRUE (1) 00065 #endif 00066 #define __dontcare__ -1 00067 #ifndef NULL 00068 # define NULL 0 00069 #endif 00070 00071 #ifndef WIN32 00072 extern char *malloc(); 00073 #endif 00074 #define mem_alloc malloc 00075 #define mem_free(ptr, bsize) free(ptr) 00076 00077 #ifndef UNDER_CE 00078 #ifndef makedev /* ie, we haven't already included it */ 00079 #include <sys/types.h> 00080 #endif 00081 #endif 00082 00083 #ifndef WIN32 00084 #include <sys/time.h> 00085 #endif 00086 00087 #ifndef INADDR_LOOPBACK 00088 #define INADDR_LOOPBACK (u_long)0x7F000001 00089 #endif 00090 #ifndef MAXHOSTNAMELEN 00091 #define MAXHOSTNAMELEN 64 00092 #endif 00093 00094 typedef char *caddr_t; 00095 typedef unsigned int u_int; 00096 typedef unsigned long u_long; 00097 typedef unsigned short u_short; 00098 00099 #endif /* ndef __TYPES_RPC_HEADER__ */