113394Swpaul/* 213394Swpaul * Copyright (c) 1995 313394Swpaul * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 413394Swpaul * 513394Swpaul * Redistribution and use in source and binary forms, with or without 613394Swpaul * modification, are permitted provided that the following conditions 713394Swpaul * are met: 813394Swpaul * 1. Redistributions of source code must retain the above copyright 913394Swpaul * notice, this list of conditions and the following disclaimer. 1013394Swpaul * 2. Redistributions in binary form must reproduce the above copyright 1113394Swpaul * notice, this list of conditions and the following disclaimer in the 1213394Swpaul * documentation and/or other materials provided with the distribution. 1313394Swpaul * 3. All advertising materials mentioning features or use of this software 1413394Swpaul * must display the following acknowledgement: 1513394Swpaul * This product includes software developed by Bill Paul. 1613394Swpaul * 4. Neither the name of the author nor the names of any co-contributors 1713394Swpaul * may be used to endorse or promote products derived from this software 1813394Swpaul * without specific prior written permission. 1913394Swpaul * 2013394Swpaul * THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND 2113394Swpaul * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2213394Swpaul * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2313394Swpaul * ARE DISCLAIMED. IN NO EVENT SHALL Bill Paul OR CONTRIBUTORS BE LIABLE 2413394Swpaul * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2513394Swpaul * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2613394Swpaul * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2713394Swpaul * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2813394Swpaul * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2913394Swpaul * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3013394Swpaul * SUCH DAMAGE. 3113394Swpaul * 3250479Speter * $FreeBSD$ 3313394Swpaul */ 3413394Swpaul 3513394Swpaul/* Privately defined error codes. */ 3613394Swpaul#define YPPUSH_TIMEDOUT 255 /* Timed out trying to talk to ypserv */ 3713394Swpaul#define YPPUSH_NOHOST 254 /* No such host */ 3813394Swpaul#define YPPUSH_YPSERV 252 /* Failed to contact ypserv. */ 3913394Swpaul#define YPPUSH_PMAP 251 /* Portmapper failure. */ 4013394Swpaul#ifndef YPPUSH_RESPONSE_TIMEOUT 4113394Swpaul#define YPPUSH_RESPONSE_TIMEOUT 5*60 4213394Swpaul#endif 4390297Sdesextern int _rpc_dtablesize(void); 4490297Sdesextern void yppush_xfrrespprog_1(struct svc_req *, SVCXPRT *); 45