ypbind.c (50479) | ypbind.c (72091) |
---|---|
1/* 2 * Copyright (c) 1992/3 Theo de Raadt <deraadt@fsa.ca> 3 * 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 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#ifndef lint 31static const char rcsid[] = | 1/* 2 * Copyright (c) 1992/3 Theo de Raadt <deraadt@fsa.ca> 3 * 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 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#ifndef lint 31static const char rcsid[] = |
32 "$FreeBSD: head/usr.sbin/ypbind/ypbind.c 50479 1999-08-28 01:35:59Z peter $"; | 32 "$FreeBSD: head/usr.sbin/ypbind/ypbind.c 72091 2001-02-06 11:21:58Z asmodai $"; |
33#endif /* not lint */ 34 35#include <sys/param.h> 36#include <sys/types.h> 37#include <sys/wait.h> 38#include <sys/ioctl.h> 39#include <sys/signal.h> 40#include <sys/socket.h> --- 601 unchanged lines hidden (view full) --- 642 syslog(LOG_WARNING, "lost connection to parent"); 643 return TRUE; 644 } 645} 646 647/* 648 * The right way to send RPC broadcasts. 649 * Use the clnt_broadcast() RPC service. Unfortunately, clnt_broadcast() | 33#endif /* not lint */ 34 35#include <sys/param.h> 36#include <sys/types.h> 37#include <sys/wait.h> 38#include <sys/ioctl.h> 39#include <sys/signal.h> 40#include <sys/socket.h> --- 601 unchanged lines hidden (view full) --- 642 syslog(LOG_WARNING, "lost connection to parent"); 643 return TRUE; 644 } 645} 646 647/* 648 * The right way to send RPC broadcasts. 649 * Use the clnt_broadcast() RPC service. Unfortunately, clnt_broadcast() |
650 * blocks while waiting for replies, so we have to fork off seperate | 650 * blocks while waiting for replies, so we have to fork off separate |
651 * broadcaster processes that do the waiting and then transmit their 652 * results back to the parent for processing. We also have to remember 653 * to save the name of the domain we're trying to bind in a global 654 * variable since clnt_broadcast() provides no way to pass things to 655 * the 'eachresult' callback function. 656 */ 657void 658broadcast(ypdb) --- 351 unchanged lines hidden --- | 651 * broadcaster processes that do the waiting and then transmit their 652 * results back to the parent for processing. We also have to remember 653 * to save the name of the domain we're trying to bind in a global 654 * variable since clnt_broadcast() provides no way to pass things to 655 * the 'eachresult' callback function. 656 */ 657void 658broadcast(ypdb) --- 351 unchanged lines hidden --- |