X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/beb54af10082dc588132b2c0d32e050028b72c78..78ed81a334dab56aa7a876792a473d67d4359c25:/lib/librpc/rpc/types.h diff --git a/lib/librpc/rpc/types.h b/lib/librpc/rpc/types.h index 06d22bf800..af90e87e3a 100644 --- a/lib/librpc/rpc/types.h +++ b/lib/librpc/rpc/types.h @@ -1,4 +1,3 @@ -/* @(#)types.h 2.3 88/08/15 4.0 RPCSRC */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for * unrestricted use provided that this legend is included on all tape @@ -26,25 +25,32 @@ * Sun Microsystems, Inc. * 2550 Garcia Avenue * Mountain View, California 94043 + * + * from: @(#)types.h 1.18 87/07/24 SMI + * from: @(#)types.h 2.3 88/08/15 4.0 RPCSRC + * $Id: types.h,v 1.5 1993/08/01 18:45:51 mycroft Exp $ */ -/* @(#)types.h 1.18 87/07/24 SMI */ /* * Rpc additions to */ -#ifndef __TYPES_RPC_HEADER__ -#define __TYPES_RPC_HEADER__ +#ifndef _RPC_TYPES_H +#define _RPC_TYPES_H #define bool_t int #define enum_t int -#define FALSE (0) -#define TRUE (1) #define __dontcare__ -1 + +#ifndef FALSE +# define FALSE (0) +#endif +#ifndef TRUE +# define TRUE (1) +#endif #ifndef NULL -# define NULL 0 +# define NULL 0 #endif -void *malloc(); #define mem_alloc(bsize) malloc(bsize) #define mem_free(ptr, bsize) free(ptr) @@ -54,10 +60,7 @@ void *malloc(); #include #ifndef INADDR_LOOPBACK -#define INADDR_LOOPBACK (u_long)0x7F000001 -#endif -#ifndef MAXHOSTNAMELEN -#define MAXHOSTNAMELEN 64 +#define INADDR_LOOPBACK (u_long)0x7F000001 #endif -#endif /* ndef __TYPES_RPC_HEADER__ */ +#endif /* !_RPC_TYPES_H */