/* -*- Mode: C -*- * * $Header: /home/gene/library/website/docsrc/test-rpc/src/src/RCS/this.h,v 395.1 2008/04/20 17:25:55 gene Exp $ * * Copyright (c) 2006 Gene Michael Stover. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 * USA */ /* Standard C */ #include #include #include #include #include #include #include #include /* Standard C++ */ /* We won't be using C++. */ /* unix, POSIX, Unix, Linux, AIX, HP/UX, NeXT, et al */ #if OSTYPE == 2 #include #include #include #include #include #include #include #include #endif /* Microsloth Winders */ #if OSTYPE == 31 #include #include typedef char *caddr_t; int bcmp (const char *p0, const char *p1, size_t n); # ifndef ECONNRESET # ifdef WSAECONNRESET # define ECONNRESET WSAECONNRESET # else # define ECONNRESET WSABASERRR # endif # endif # ifndef EINTR # ifdef WSAEINTR # define EINTR WSAEINTR # else # define EINTR WSABASERRR # endif # endif # ifndef EPFNOSUPPORT # ifdef WSAEPFNOSUPPORT # define EPFNOSUPPORT WSAEPFNOSUPPORT # else # define EPFNOSUPPORT WSABASEERR # endif # endif # ifndef EADDRINUSE # ifdef WSAEADDRINUSE # define EADDRINUSE WSAEADDRINUSE # else # define EADDRINUSE WSABASEERR # endif # endif # ifndef EAFNOSUPPORT # ifdef WSAEAFNOSUPPORT # define EAFNOSUPPORT WSAEAFNOSUPPORT # else # define EAFNOSUPPORT WSABASEERR # endif # endif # ifndef EWOULDBLOCK # ifdef WSAEWOULDBLOCK # define EWOULDBLOCK WSAEWOULDBLOCK # else # define EWOULDBLOCK WSABASERRR # endif # endif #endif /* RPC 4.0. */ #include #if 0 #include "../rpc-4.0/rpc/types.h" #include "../rpc-4.0/rpc/xdr.h" #include "../rpc-4.0/rpc/auth.h" #include "../rpc-4.0/rpc/clnt.h" #include "../rpc-4.0/rpc/netdb.h" #include "../rpc-4.0/rpc/rpc_msg.h" #include "../rpc-4.0/rpc/auth_unix.h" #include "../rpc-4.0/rpc/svc.h" #include "../rpc-4.0/rpc/svc_auth.h" #include "../rpc-4.0/rpc/pmap_prot.h" #include "../rpc-4.0/rpc/pmap_clnt.h" #include "../rpc-4.0/rpc/pmap_rmt.h" #endif /* This */ int TestEncode (char a[], size_t nmemb, size_t sz, int (*cmp) (), xdrproc_t encode, xdrproc_t decode); /* --- end of file --- */