xref: /freebsd/usr.sbin/yppush/yppush_extern.h (revision b3e7694832e81d7a904a10f525f8797b753bf0d3)
1434584a9SBill Paul /*
2434584a9SBill Paul  * Copyright (c) 1995
3434584a9SBill Paul  *	Bill Paul <wpaul@ctr.columbia.edu>.  All rights reserved.
4434584a9SBill Paul  *
5434584a9SBill Paul  * Redistribution and use in source and binary forms, with or without
6434584a9SBill Paul  * modification, are permitted provided that the following conditions
7434584a9SBill Paul  * are met:
8434584a9SBill Paul  * 1. Redistributions of source code must retain the above copyright
9434584a9SBill Paul  *    notice, this list of conditions and the following disclaimer.
10434584a9SBill Paul  * 2. Redistributions in binary form must reproduce the above copyright
11434584a9SBill Paul  *    notice, this list of conditions and the following disclaimer in the
12434584a9SBill Paul  *    documentation and/or other materials provided with the distribution.
13434584a9SBill Paul  * 3. All advertising materials mentioning features or use of this software
14434584a9SBill Paul  *    must display the following acknowledgement:
15434584a9SBill Paul  *	This product includes software developed by Bill Paul.
16434584a9SBill Paul  * 4. Neither the name of the author nor the names of any co-contributors
17434584a9SBill Paul  *    may be used to endorse or promote products derived from this software
18434584a9SBill Paul  *    without specific prior written permission.
19434584a9SBill Paul  *
20434584a9SBill Paul  * THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND
21434584a9SBill Paul  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22434584a9SBill Paul  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23434584a9SBill Paul  * ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul OR CONTRIBUTORS BE LIABLE
24434584a9SBill Paul  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25434584a9SBill Paul  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26434584a9SBill Paul  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27434584a9SBill Paul  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28434584a9SBill Paul  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29434584a9SBill Paul  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30434584a9SBill Paul  * SUCH DAMAGE.
31434584a9SBill Paul  */
32434584a9SBill Paul 
33434584a9SBill Paul /* Privately defined error codes. */
34434584a9SBill Paul #define YPPUSH_TIMEDOUT	255	/* Timed out trying to talk to ypserv */
35434584a9SBill Paul #define YPPUSH_NOHOST	254	/* No such host */
36434584a9SBill Paul #define YPPUSH_YPSERV	252	/* Failed to contact ypserv. */
37434584a9SBill Paul #define YPPUSH_PMAP	251	/* Portmapper failure. */
38434584a9SBill Paul #ifndef YPPUSH_RESPONSE_TIMEOUT
39434584a9SBill Paul #define YPPUSH_RESPONSE_TIMEOUT 5*60
40434584a9SBill Paul #endif
41ed4d1c46SDag-Erling Smørgrav extern int	_rpc_dtablesize(void);
42ed4d1c46SDag-Erling Smørgrav extern void	yppush_xfrrespprog_1(struct svc_req *, SVCXPRT *);
43