summaryrefslogtreecommitdiffstats
path: root/sys/rpc
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-08-07 18:41:02 +0000
committerwollman <wollman@FreeBSD.org>1994-08-07 18:41:02 +0000
commit2914d85c79d650debf4fe19c5230232d57f15912 (patch)
treede69a93c1a8200600a73fd75094947ae1f3c766f /sys/rpc
parent39d367d32ed8e86a00d841b572a4544dc7ca339e (diff)
downloadFreeBSD-src-2914d85c79d650debf4fe19c5230232d57f15912.zip
FreeBSD-src-2914d85c79d650debf4fe19c5230232d57f15912.tar.gz
Use the header files that are compatible with the code just moved over
from 1.1.5.
Diffstat (limited to 'sys/rpc')
-rw-r--r--sys/rpc/types.h29
1 files changed, 16 insertions, 13 deletions
diff --git a/sys/rpc/types.h b/sys/rpc/types.h
index 06d22bf..b12221d 100644
--- a/sys/rpc/types.h
+++ b/sys/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.1 1993/10/27 05:41:04 paul Exp $
*/
-/* @(#)types.h 1.18 87/07/24 SMI */
/*
* Rpc additions to <sys/types.h>
*/
-#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 <sys/time.h>
#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 */
OpenPOWER on IntegriCloud