Home
last modified time | relevance | path

Searched refs:logfile (Results 1 – 25 of 98) sorted by relevance

1234

/freebsd-12.1/tests/sys/cddl/zfs/include/
H A Dlogapi.kshlib129 logfile="$logfile.$$"
132 "$@" 2>$logfile
134 out="/bin/cat $logfile"
180 logfile="$logfile.$$"
183 "$@" 2>$logfile
206 logfile="$logfile.$$"
209 "$@" 2>$logfile
410 typeset logfile=$1
414 /bin/cat $logfile
416 /bin/rm -f $logfile
[all …]
/freebsd-12.1/usr.sbin/pw/
H A Dpw_log.c42 static FILE *logfile = NULL; variable
54 if (cnf->logfile == NULL || cnf->logfile[0] == '\0') { in pw_log()
58 if (logfile == NULL) { in pw_log()
60 fd = open(cnf->logfile, O_WRONLY | O_CREAT | O_APPEND, 0600); in pw_log()
64 logfile = fdopen(fd, "a"); in pw_log()
65 if (logfile == NULL) { in pw_log()
116 vfprintf(logfile, nfmt, argp); in pw_log()
118 fflush(logfile); in pw_log()
/freebsd-12.1/contrib/unbound/util/
H A Dlog.c66 static FILE* logfile = 0; variable
95 if(logfile in log_init()
105 if(logfile && logfile != stderr) { in log_init()
106 FILE* cl = logfile; in log_init()
107 logfile = NULL; /* set to NULL before it is closed, so that in log_init()
137 logfile = stderr; in log_init()
156 logfile = f; in log_init()
163 logfile = f; in log_file()
268 if(!logfile) { in log_vmsg()
277 fprintf(logfile, "%s %s[%d:%x] %s: %s\n", tmbuf, in log_vmsg()
[all …]
/freebsd-12.1/contrib/unbound/contrib/
H A Dparseunbound.pl32 my $logfile = shift or die "Usage: parseunbound.pl --cron unboundlogfile";
33 my $in = new FileHandle $logfile or die "Cannot open $logfile: $!\n";
61 if ( $offset > -s $logfile or $offset > 10_000_000 ) {
62 die "Cannot find stats in $logfile\n";
64 $in->seek(-$offset, SEEK_END) or croak "cannot seek $logfile: $!\n";
H A Dvalidation-reporter.sh15 logfile="/var/log/unbound.log"
30 tail -F $logfile | grep --line-buffered "unbound.*info: validation failure" | \
/freebsd-12.1/release/picobsd/tinyware/simple_httpd/
H A Dsimple_httpd.c58 static char logfile[80]; variable
201 log=fopen(logfile,"a"); in log_line()
385 strcpy(logfile,getenv("HOME")); in main()
386 strcat(logfile,"/"); in main()
387 strcat(logfile,"jhttp.log"); in main()
389 strcpy(logfile,"/var/log/jhttpd.log"); in main()
406 strcpy(logfile,optarg); in main()
440 if ((access(logfile,W_OK)) && daemonize) { in main()
441 ld = open (logfile,O_WRONLY); in main()
442 chmod (logfile,00600); in main()
[all …]
/freebsd-12.1/lib/libpathconv/tests/
H A Dtest.pl33 $logfile = 'err';
88 open(LOG, ">$logfile") || die("cannot open log file '$logfile'.\n");
141 open(LOG, $logfile) || die("log file not found.\n");
/freebsd-12.1/contrib/amd/libamu/
H A Dxutil.c737 get_syslog_facility(const char *logfile) in get_syslog_facility() argument
742 facstr = strchr(logfile, ':'); in get_syslog_facility()
839 if (logfile) { in switch_to_logfile()
844 if (STREQ(logfile, "/dev/stderr")) in switch_to_logfile()
846 else if (NSTREQ(logfile, "syslog", strlen("syslog"))) { in switch_to_logfile()
857 , get_syslog_facility(logfile) in switch_to_logfile()
867 __IGNORE(truncate(logfile, 0)); in switch_to_logfile()
868 new_logfp = fopen(logfile, "a"); in switch_to_logfile()
876 if (!new_logfp && logfile) { in switch_to_logfile()
877 plog(XLOG_USER, "%s: Can't open logfile: %m", logfile); in switch_to_logfile()
[all …]
/freebsd-12.1/contrib/less/
H A Dedit.c40 extern int logfile;
833 logfile = creat(filename, 0644);
839 logfile = open(filename, OPEN_APPEND);
840 if (lseek(logfile, (off_t)0, SEEK_END) == BAD_LSEEK)
842 close(logfile);
843 logfile = -1;
863 if (logfile < 0)
872 SET_BINARY(logfile);
H A Dch.c136 extern int logfile;
288 if (!secure && logfile >= 0 && n > 0) in ch_get()
289 write(logfile, (char *) &bp->data[bp->datasize], n); in ch_get()
399 if (logfile < 0) in end_logfile()
409 close(logfile); in end_logfile()
410 logfile = -1; in end_logfile()
437 write(logfile, (char *) bp->data, bp->datasize); in sync_logfile()
/freebsd-12.1/contrib/amd/scripts/
H A Dtest-attrcache.in23 logfile="/var/log/amd"
51 echo amd -x all -D all -r -l $logfile $a $mapfile -cache:=mapdefault,sync
52 amd -x all -D all -r -l $logfile $a $mapfile -cache:=mapdefault,sync
/freebsd-12.1/contrib/ntp/lib/isc/tests/
H A Disctest.c94 isc_test_begin(FILE *logfile, isc_boolean_t start_managers) { in isc_test_begin() argument
104 if (logfile != NULL) { in isc_test_begin()
112 destination.file.stream = logfile; in isc_test_begin()
/freebsd-12.1/contrib/amd/hlfsd/
H A Dhlfsd.c79 char *logfile = DEFAULT_LOGFILE; variable
220 logfile = optarg; in main()
318 if (logfile) in main()
319 switch_to_logfile(logfile, orig_umask, 0); in main()
793 if (signum == SIGHUP && logfile) in reload()
794 switch_to_logfile(logfile, orig_umask, 0); in reload()
902 if (logfile && !STREQ(logfile, "stderr")) { in fatal()
/freebsd-12.1/contrib/ntp/scripts/monitoring/
H A Dntploopstat79 $logfile = shift;
109 $logfile = "loopstats:$ntpserver." unless defined($logfile);
391 local($fname,$suff) = ($logfile);
/freebsd-12.1/contrib/ntp/sntp/
H A Dlog.c26 const char *logfile in open_logfile() argument
29 change_logfile(logfile, FALSE); in open_logfile()
H A Dinvoke-sntp.texi76 * sntp logfile:: logfile option (-l)
124 -l Fil logfile Log to specified logfile
270 @node sntp logfile
271 @subsection logfile option (-l)
272 @cindex sntp-logfile
274 This is the ``log to specified logfile'' option.
277 @file{logfile}.
H A Dlog.h23 void open_logfile(const char *logfile);
/freebsd-12.1/usr.sbin/bhyve/
H A Dgdb.c162 static FILE *logfile; in debug() local
165 if (logfile == NULL) { in debug()
166 logfile = fopen("/tmp/bhyve_gdb.log", "w"); in debug()
167 if (logfile == NULL) in debug()
170 if (caph_limit_stream(fileno(logfile), CAPH_WRITE) == -1) { in debug()
171 fclose(logfile); in debug()
172 logfile = NULL; in debug()
176 setlinebuf(logfile); in debug()
179 vfprintf(logfile, fmt, ap); in debug()
/freebsd-12.1/tools/regression/fsx/
H A Dfsx.c1002 char logfile[1024]; in main() local
1006 logfile[0] = 0; in main()
1118 strncpy(logfile, optarg, sizeof(logfile)); in main()
1119 strcat(logfile, "/"); in main()
1182 strncat(logfile, fname, 256); in main()
1183 strcat (logfile, ".fsxlog"); in main()
1184 fsxlogf = fopen(logfile, "w"); in main()
1186 prterr(logfile); in main()
/freebsd-12.1/crypto/heimdal/lib/hx509/
H A Dsoftp11.c94 FILE *logfile; member
114 if (soft_token.logfile == NULL) in st_logf()
117 vfprintf(soft_token.logfile, fmt, ap); in st_logf()
119 fflush(soft_token.logfile); in st_logf()
765 if (soft_token.logfile) in read_conf_file()
766 fclose(soft_token.logfile); in read_conf_file()
769 soft_token.logfile = stdout; in read_conf_file()
772 if (soft_token.logfile) in read_conf_file()
775 if (soft_token.logfile == NULL) in read_conf_file()
888 soft_token.logfile = NULL; in C_Initialize()
[all …]
/freebsd-12.1/share/doc/pjdfstest/
H A DREADME28 Note that if HOME is undefined, this will result in kyua's logfile being
30 --logfile to explicitly select the log location.
/freebsd-12.1/contrib/unbound/daemon/
H A Dunbound.c271 free(cfg->logfile); in apply_settings()
272 cfg->logfile = NULL; in apply_settings()
465 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); in perform_setup()
622 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); in perform_setup()
671 log_init(cfg->logfile, 0, cfg->chrootdir); in run_daemon()
/freebsd-12.1/crypto/heimdal/lib/asn1/
H A Dgen.c40 FILE *privheaderfile, *headerfile, *codefile, *logfile, *templatefile; variable
247 logfile = fopen(fn, "w"); in init_generate()
248 if (logfile == NULL) in init_generate()
293 if (logfile) in close_generate()
294 fprintf (logfile, "\n"); in close_generate()
295 fclose (logfile); in close_generate()
353 fprintf(logfile, "%s ", filename); in generate_header_of_codefile()
/freebsd-12.1/crypto/openssh/
H A Dlog.c369 log_redirect_stderr_to(const char *logfile) in log_redirect_stderr_to() argument
373 if ((fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, 0600)) == -1) { in log_redirect_stderr_to()
374 fprintf(stderr, "Couldn't open logfile %s: %s\n", logfile, in log_redirect_stderr_to()
/freebsd-12.1/crypto/heimdal/appl/gssmask/
H A Dgssmaestro.c37 static FILE *logfile; variable
590 fprintf(logfile, "%s:%lu: %s\n", in log_function()
592 fflush(logfile); in log_function()
669 if (logfile) { in connect_client()
688 fclose(logfile); in connect_client()
789 logfile = fopen(logfile_str, "w+"); in main()
790 if (logfile == NULL) in main()

1234