yp_dbupdate.c (26237) | yp_dbupdate.c (30378) |
---|---|
1/* 2 * Copyright (c) 1996 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 --- 14 unchanged lines hidden (view full) --- 23 * ARE DISCLAIMED. IN NO EVENT SHALL Bill Paul OR CONTRIBUTORS BE LIABLE 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. | 1/* 2 * Copyright (c) 1996 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 --- 14 unchanged lines hidden (view full) --- 23 * ARE DISCLAIMED. IN NO EVENT SHALL Bill Paul OR CONTRIBUTORS BE LIABLE 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: yp_dbupdate.c,v 1.1 1996/12/26 06:00:13 wpaul Exp $ | |
33 */ 34 | 31 */ 32 |
33#ifndef lint 34static const char rcsid[] = 35 "$Id$"; 36#endif /* not lint */ 37 |
|
35#include <sys/fcntl.h> 36 37#include <stdio.h> 38#include <string.h> 39#include <errno.h> 40#include <limits.h> 41#include <db.h> 42#include <unistd.h> 43struct dom_binding {}; 44#include <rpcsvc/ypclnt.h> 45#include <rpcsvc/ypupdate_prot.h> 46#include "ypxfr_extern.h" 47#include "ypupdated_extern.h" 48 | 38#include <sys/fcntl.h> 39 40#include <stdio.h> 41#include <string.h> 42#include <errno.h> 43#include <limits.h> 44#include <db.h> 45#include <unistd.h> 46struct dom_binding {}; 47#include <rpcsvc/ypclnt.h> 48#include <rpcsvc/ypupdate_prot.h> 49#include "ypxfr_extern.h" 50#include "ypupdated_extern.h" 51 |
49#ifndef lint 50static const char rcsid[] = "$Id: yp_dbupdate.c,v 1.1 1996/12/26 06:00:13 wpaul Exp $"; 51#endif 52 | |
53static int yp_domake(map, domain) 54 char *map; 55 char *domain; 56{ 57 int pid; 58 59 switch((pid = fork())) { 60 case 0: --- 95 unchanged lines hidden --- | 52static int yp_domake(map, domain) 53 char *map; 54 char *domain; 55{ 56 int pid; 57 58 switch((pid = fork())) { 59 case 0: --- 95 unchanged lines hidden --- |