fsi_util.c (82794) | fsi_util.c (119679) |
---|---|
1/* | 1/* |
2 * Copyright (c) 1997-2001 Erez Zadok | 2 * Copyright (c) 1997-2003 Erez Zadok |
3 * Copyright (c) 1989 Jan-Simon Pendry 4 * Copyright (c) 1989 Imperial College of Science, Technology & Medicine 5 * Copyright (c) 1989 The Regents of the University of California. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 19 unchanged lines hidden (view full) --- 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * %W% (Berkeley) %G% 37 * | 3 * Copyright (c) 1989 Jan-Simon Pendry 4 * Copyright (c) 1989 Imperial College of Science, Technology & Medicine 5 * Copyright (c) 1989 The Regents of the University of California. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 19 unchanged lines hidden (view full) --- 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * %W% (Berkeley) %G% 37 * |
38 * $Id: fsi_util.c,v 1.3.2.2 2001/01/10 03:23:33 ezk Exp $ | 38 * $Id: fsi_util.c,v 1.3.2.5 2003/07/18 04:50:19 ezk Exp $ |
39 * 40 */ 41 42#ifdef HAVE_CONFIG_H 43# include <config.h> 44#endif /* HAVE_CONFIG_H */ 45#include <am_defs.h> 46#include <fsi_data.h> --- 118 unchanged lines hidden (view full) --- 165 exit(1); 166} 167 168 169/* 170 * Debug log 171 */ 172void | 39 * 40 */ 41 42#ifdef HAVE_CONFIG_H 43# include <config.h> 44#endif /* HAVE_CONFIG_H */ 45#include <am_defs.h> 46#include <fsi_data.h> --- 118 unchanged lines hidden (view full) --- 165 exit(1); 166} 167 168 169/* 170 * Debug log 171 */ 172void |
173log(char *fmt, ...) | 173fsi_log(char *fmt, ...) |
174{ 175 va_list ap; 176 177 if (verbose > 0) { 178 va_start(ap, fmt); 179 fputc('#', stdout); 180 fprintf(stdout, "%s: ", progname); 181 vfprintf(stdout, fmt, ap); --- 90 unchanged lines hidden (view full) --- 272 */ 273FILE * 274pref_open(char *pref, char *hn, void (*hdr) (FILE *, char *), char *arg) 275{ 276 char p[MAXPATHLEN]; 277 FILE *ef; 278 279 sprintf(p, "%s%s", pref, hn); | 174{ 175 va_list ap; 176 177 if (verbose > 0) { 178 va_start(ap, fmt); 179 fputc('#', stdout); 180 fprintf(stdout, "%s: ", progname); 181 vfprintf(stdout, fmt, ap); --- 90 unchanged lines hidden (view full) --- 272 */ 273FILE * 274pref_open(char *pref, char *hn, void (*hdr) (FILE *, char *), char *arg) 275{ 276 char p[MAXPATHLEN]; 277 FILE *ef; 278 279 sprintf(p, "%s%s", pref, hn); |
280 log("Writing %s info for %s to %s", pref, hn, p); | 280 fsi_log("Writing %s info for %s to %s", pref, hn, p); |
281 ef = fopen(p, "w"); 282 if (ef) { 283 (*hdr) (ef, arg); 284 make_banner(ef); 285 } else { 286 error("can't open %s for writing", p); 287 } 288 --- 405 unchanged lines hidden --- | 281 ef = fopen(p, "w"); 282 if (ef) { 283 (*hdr) (ef, arg); 284 make_banner(ef); 285 } else { 286 error("can't open %s for writing", p); 287 } 288 --- 405 unchanged lines hidden --- |