xref: /csrg-svn/lib/librpc/rpc/types.h (revision 45248)
145071Smckusick /* @(#)types.h	2.3 88/08/15 4.0 RPCSRC */
245071Smckusick /*
345071Smckusick  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
445071Smckusick  * unrestricted use provided that this legend is included on all tape
545071Smckusick  * media and as a part of the software program in whole or part.  Users
645071Smckusick  * may copy or modify Sun RPC without charge, but are not authorized
745071Smckusick  * to license or distribute it to anyone else except as part of a product or
845071Smckusick  * program developed by the user.
945071Smckusick  *
1045071Smckusick  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
1145071Smckusick  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
1245071Smckusick  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
1345071Smckusick  *
1445071Smckusick  * Sun RPC is provided with no support and without any obligation on the
1545071Smckusick  * part of Sun Microsystems, Inc. to assist in its use, correction,
1645071Smckusick  * modification or enhancement.
1745071Smckusick  *
1845071Smckusick  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
1945071Smckusick  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
2045071Smckusick  * OR ANY PART THEREOF.
2145071Smckusick  *
2245071Smckusick  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
2345071Smckusick  * or profits or other special, indirect and consequential damages, even if
2445071Smckusick  * Sun has been advised of the possibility of such damages.
2545071Smckusick  *
2645071Smckusick  * Sun Microsystems, Inc.
2745071Smckusick  * 2550 Garcia Avenue
2845071Smckusick  * Mountain View, California  94043
2945071Smckusick  */
3045071Smckusick /*      @(#)types.h 1.18 87/07/24 SMI      */
3145071Smckusick 
3245071Smckusick /*
3345071Smckusick  * Rpc additions to <sys/types.h>
3445071Smckusick  */
3545071Smckusick #ifndef __TYPES_RPC_HEADER__
3645071Smckusick #define __TYPES_RPC_HEADER__
3745071Smckusick 
3845071Smckusick #define	bool_t	int
3945071Smckusick #define	enum_t	int
4045071Smckusick #define	FALSE	(0)
4145071Smckusick #define	TRUE	(1)
4245071Smckusick #define __dontcare__	-1
4345071Smckusick #ifndef NULL
4445071Smckusick #	define NULL 0
4545071Smckusick #endif
4645071Smckusick 
47*45248Smckusick void *malloc();
4845071Smckusick #define mem_alloc(bsize)	malloc(bsize)
4945071Smckusick #define mem_free(ptr, bsize)	free(ptr)
5045071Smckusick 
5145071Smckusick #ifndef makedev /* ie, we haven't already included it */
5245071Smckusick #include <sys/types.h>
5345071Smckusick #endif
5445071Smckusick #include <sys/time.h>
5545071Smckusick 
5645071Smckusick #ifndef INADDR_LOOPBACK
5745071Smckusick #define       INADDR_LOOPBACK         (u_long)0x7F000001
5845071Smckusick #endif
5945071Smckusick #ifndef MAXHOSTNAMELEN
6045071Smckusick #define        MAXHOSTNAMELEN  64
6145071Smckusick #endif
6245071Smckusick 
6345071Smckusick #endif /* ndef __TYPES_RPC_HEADER__ */
64