1*84d9c625SLionel Sambuc /* $NetBSD: rpc_commondata.c,v 1.9 2013/03/11 20:19:29 tron Exp $ */ 22fe8fb19SBen Gras 32fe8fb19SBen Gras /* 4*84d9c625SLionel Sambuc * Copyright (c) 2010, Oracle America, Inc. 52fe8fb19SBen Gras * 6*84d9c625SLionel Sambuc * Redistribution and use in source and binary forms, with or without 7*84d9c625SLionel Sambuc * modification, are permitted provided that the following conditions are 8*84d9c625SLionel Sambuc * met: 92fe8fb19SBen Gras * 10*84d9c625SLionel Sambuc * * Redistributions of source code must retain the above copyright 11*84d9c625SLionel Sambuc * notice, this list of conditions and the following disclaimer. 12*84d9c625SLionel Sambuc * * Redistributions in binary form must reproduce the above 13*84d9c625SLionel Sambuc * copyright notice, this list of conditions and the following 14*84d9c625SLionel Sambuc * disclaimer in the documentation and/or other materials 15*84d9c625SLionel Sambuc * provided with the distribution. 16*84d9c625SLionel Sambuc * * Neither the name of the "Oracle America, Inc." nor the names of its 17*84d9c625SLionel Sambuc * contributors may be used to endorse or promote products derived 18*84d9c625SLionel Sambuc * from this software without specific prior written permission. 192fe8fb19SBen Gras * 20*84d9c625SLionel Sambuc * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21*84d9c625SLionel Sambuc * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22*84d9c625SLionel Sambuc * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 23*84d9c625SLionel Sambuc * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 24*84d9c625SLionel Sambuc * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 25*84d9c625SLionel Sambuc * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26*84d9c625SLionel Sambuc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 27*84d9c625SLionel Sambuc * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28*84d9c625SLionel Sambuc * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 29*84d9c625SLionel Sambuc * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 30*84d9c625SLionel Sambuc * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31*84d9c625SLionel Sambuc * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 322fe8fb19SBen Gras */ 332fe8fb19SBen Gras 342fe8fb19SBen Gras #include <sys/cdefs.h> 352fe8fb19SBen Gras #if defined(LIBC_SCCS) && !defined(lint) 362fe8fb19SBen Gras #if 0 372fe8fb19SBen Gras static char *sccsid = "@(#)rpc_commondata.c 2.1 88/07/29 4.0 RPCSRC"; 382fe8fb19SBen Gras #else 39*84d9c625SLionel Sambuc __RCSID("$NetBSD: rpc_commondata.c,v 1.9 2013/03/11 20:19:29 tron Exp $"); 402fe8fb19SBen Gras #endif 412fe8fb19SBen Gras #endif 422fe8fb19SBen Gras 432fe8fb19SBen Gras #include <rpc/rpc.h> 442fe8fb19SBen Gras 452fe8fb19SBen Gras /* 462fe8fb19SBen Gras * This file should only contain common data (global data) that is exported 472fe8fb19SBen Gras * by public interfaces 482fe8fb19SBen Gras */ 492fe8fb19SBen Gras struct opaque_auth _null_auth; 502fe8fb19SBen Gras fd_set svc_fdset; 512fe8fb19SBen Gras int svc_maxfd = -1; 522fe8fb19SBen Gras #ifndef _REENTRANT 532fe8fb19SBen Gras #undef rpc_createerr 542fe8fb19SBen Gras struct rpc_createerr rpc_createerr; 552fe8fb19SBen Gras #endif 56