ypxfr_getmap.c (13895) | ypxfr_getmap.c (16132) |
---|---|
1/* 2 * Copyright (c) 1995 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * | 1/* 2 * Copyright (c) 1995 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * |
32 * $Id: ypxfr_getmap.c,v 1.7 1996/02/03 23:09:28 wpaul Exp $ | 32 * $Id: ypxfr_getmap.c,v 1.8 1996/06/02 05:12:24 wpaul Exp $ |
33 */ 34#include <stdio.h> 35#include <sys/types.h> 36#include <time.h> 37#include <rpc/rpc.h> 38#include <rpc/xdr.h> 39#include <rpcsvc/yp.h> 40#include "ypxfr_extern.h" 41 42#ifndef lint | 33 */ 34#include <stdio.h> 35#include <sys/types.h> 36#include <time.h> 37#include <rpc/rpc.h> 38#include <rpc/xdr.h> 39#include <rpcsvc/yp.h> 40#include "ypxfr_extern.h" 41 42#ifndef lint |
43static const char rcsid[] = "$Id: ypxfr_getmap.c,v 1.7 1996/02/03 23:09:28 wpaul Exp $"; | 43static const char rcsid[] = "$Id: ypxfr_getmap.c,v 1.8 1996/06/02 05:12:24 wpaul Exp $"; |
44#endif 45 46extern bool_t xdr_ypresp_all_seq __P(( XDR *, unsigned long * )); 47 48int (*ypresp_allfn)(); 49void *ypresp_data; 50extern DB *specdbp; 51extern int yp_errno; --- 18 unchanged lines hidden (view full) --- 70 unsigned long status; 71 struct timeval timeout; 72 73 timeout.tv_usec = 0; 74 timeout.tv_sec = 10; 75 76 /* YPPROC_ALL is a TCP service */ 77 if ((clnt = clnt_create(host, YPPROG, YPVERS, "tcp")) == NULL) { | 44#endif 45 46extern bool_t xdr_ypresp_all_seq __P(( XDR *, unsigned long * )); 47 48int (*ypresp_allfn)(); 49void *ypresp_data; 50extern DB *specdbp; 51extern int yp_errno; --- 18 unchanged lines hidden (view full) --- 70 unsigned long status; 71 struct timeval timeout; 72 73 timeout.tv_usec = 0; 74 timeout.tv_sec = 10; 75 76 /* YPPROC_ALL is a TCP service */ 77 if ((clnt = clnt_create(host, YPPROG, YPVERS, "tcp")) == NULL) { |
78 yp_error("%s", clnt_spcreateerror("failed to tcp handle")); | 78 yp_error("%s", clnt_spcreateerror("failed to \ 79create tcp handle")); |
79 yp_errno = YPXFR_YPERR; 80 return(1); 81 } 82 83 req.domain = domain; 84 req.map = map; 85 ypresp_allfn = callback; 86 ypresp_data = NULL; --- 16 unchanged lines hidden --- | 80 yp_errno = YPXFR_YPERR; 81 return(1); 82 } 83 84 req.domain = domain; 85 req.map = map; 86 ypresp_allfn = callback; 87 ypresp_data = NULL; --- 16 unchanged lines hidden --- |