mk-amd-map.c (38575) | mk-amd-map.c (38577) |
---|---|
1/* 2 * Copyright (c) 1997-1998 Erez Zadok 3 * Copyright (c) 1990 Jan-Simon Pendry 4 * Copyright (c) 1990 Imperial College of Science, Technology & Medicine 5 * Copyright (c) 1990 The Regents of the University of California. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to Berkeley by --- 24 unchanged lines hidden (view full) --- 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * %W% (Berkeley) %G% 40 * | 1/* 2 * Copyright (c) 1997-1998 Erez Zadok 3 * Copyright (c) 1990 Jan-Simon Pendry 4 * Copyright (c) 1990 Imperial College of Science, Technology & Medicine 5 * Copyright (c) 1990 The Regents of the University of California. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to Berkeley by --- 24 unchanged lines hidden (view full) --- 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * %W% (Berkeley) %G% 40 * |
41 * $Id: mk-amd-map.c,v 1.2 1998/08/23 22:52:09 obrien Exp $ | 41 * $Id: mk-amd-map.c,v 1.3 1998/08/27 02:56:47 obrien Exp $ |
42 */ 43 44/* 45 * Convert a file map into an ndbm map 46 */ 47 48#ifdef HAVE_CONFIG_H 49# include <config.h> --- 243 unchanged lines hidden (view full) --- 293 /* ignore ^C if debuggung is on (but why?) */ 294 signal(SIGINT, SIG_IGN); 295#endif /* not DEBUG */ 296 297 if (mapd || printit) { 298 int error = read_file(mapf, map, mapd); 299 (void) close(mapfd); 300 (void) fclose(mapf); | 42 */ 43 44/* 45 * Convert a file map into an ndbm map 46 */ 47 48#ifdef HAVE_CONFIG_H 49# include <config.h> --- 243 unchanged lines hidden (view full) --- 293 /* ignore ^C if debuggung is on (but why?) */ 294 signal(SIGINT, SIG_IGN); 295#endif /* not DEBUG */ 296 297 if (mapd || printit) { 298 int error = read_file(mapf, map, mapd); 299 (void) close(mapfd); 300 (void) fclose(mapf); |
301 dbm_close(mapd); | 301 dbm_close(mapd); |
302 if (printit) { 303 if (error) { 304 fprintf(stderr, "Error creating ndbm map for %s\n", map); 305 rc = 1; 306 } 307 } else { 308 309 if (error) { --- 33 unchanged lines hidden --- | 302 if (printit) { 303 if (error) { 304 fprintf(stderr, "Error creating ndbm map for %s\n", map); 305 rc = 1; 306 } 307 } else { 308 309 if (error) { --- 33 unchanged lines hidden --- |