Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

/projects/cubeos/src_current/net/rpc/types.h

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

Generated on Thu Feb 20 15:38:45 2003 for cubeOS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002