From 41df27608ab54ed0c8e9ee04a17106847f14b9fe Mon Sep 17 00:00:00 2001 From: markc Date: Wed, 6 Apr 1994 22:45:24 +0000 Subject: [PATCH] Cleaned up rpcUtil.h. Moved include files to rpcUtil.C where they belonged. --- common/h/rpcUtil.h | 39 +++++---------------------------------- pdutil/h/rpcUtil.h | 39 +++++---------------------------------- 2 files changed, 10 insertions(+), 68 deletions(-) diff --git a/common/h/rpcUtil.h b/common/h/rpcUtil.h index 9f83396..93f4390 100644 --- a/common/h/rpcUtil.h +++ b/common/h/rpcUtil.h @@ -4,7 +4,10 @@ /* * $Log: rpcUtil.h,v $ - * Revision 1.15 1994/03/31 22:59:04 hollings + * Revision 1.16 1994/04/06 22:45:24 markc + * Cleaned up rpcUtil.h. Moved include files to rpcUtil.C where they belonged. + * + * Revision 1.15 1994/03/31 22:59:04 hollings * added well known port as a paramter to xdrRPC constructor. * * Revision 1.14 1994/03/25 16:07:31 markc @@ -19,47 +22,15 @@ * */ -/* prevents malloc from being redefined */ -#ifdef MIPS -#define MALLOC_DEFINED_AS_VOID -#endif - -#include -#include -#include -#include -#include -#include -#include +#include #include #include -#include -#include -#include -#include -#include extern "C" { #include #include } -// functions that g++-fixincludes missed -#ifdef MIPS -void bzero (char*, int); -int select (int, fd_set*, fd_set*, fd_set*, struct timeval*); -char *strdup (char*); -int gethostname(char*, int); -int socket(int, int, int); -int bind(int s, struct sockaddr *, int); -int getsockname(int, struct sockaddr*, int *); -int listen(int, int); -int connect(int s, struct sockaddr*, int); -int socketpair(int, int, int, int sv[2]); -int vfork(); -int accept(int, struct sockaddr *addr, int *); -#endif - #define xdr_Boolean xdr_char typedef XDR *XDRptr; typedef int (*xdrIOFunc)(int handle, char *buf, unsigned int len); diff --git a/pdutil/h/rpcUtil.h b/pdutil/h/rpcUtil.h index 9f83396..93f4390 100644 --- a/pdutil/h/rpcUtil.h +++ b/pdutil/h/rpcUtil.h @@ -4,7 +4,10 @@ /* * $Log: rpcUtil.h,v $ - * Revision 1.15 1994/03/31 22:59:04 hollings + * Revision 1.16 1994/04/06 22:45:24 markc + * Cleaned up rpcUtil.h. Moved include files to rpcUtil.C where they belonged. + * + * Revision 1.15 1994/03/31 22:59:04 hollings * added well known port as a paramter to xdrRPC constructor. * * Revision 1.14 1994/03/25 16:07:31 markc @@ -19,47 +22,15 @@ * */ -/* prevents malloc from being redefined */ -#ifdef MIPS -#define MALLOC_DEFINED_AS_VOID -#endif - -#include -#include -#include -#include -#include -#include -#include +#include #include #include -#include -#include -#include -#include -#include extern "C" { #include #include } -// functions that g++-fixincludes missed -#ifdef MIPS -void bzero (char*, int); -int select (int, fd_set*, fd_set*, fd_set*, struct timeval*); -char *strdup (char*); -int gethostname(char*, int); -int socket(int, int, int); -int bind(int s, struct sockaddr *, int); -int getsockname(int, struct sockaddr*, int *); -int listen(int, int); -int connect(int s, struct sockaddr*, int); -int socketpair(int, int, int, int sv[2]); -int vfork(); -int accept(int, struct sockaddr *addr, int *); -#endif - #define xdr_Boolean xdr_char typedef XDR *XDRptr; typedef int (*xdrIOFunc)(int handle, char *buf, unsigned int len); -- 1.8.3.1