| /freebsd-12-stable/tests/sys/cddl/zfs/include/ |
| D | logapi.kshlib | 125 typeset logfile="$TMPDIR/log.$$" 128 while [[ -e $logfile ]]; do 129 logfile="$logfile.$$" 132 "$@" 2>$logfile 134 out="/bin/cat $logfile" 169 _recursive_output $logfile "false" 177 typeset logfile="$TMPDIR/log.$$" 179 while [[ -e $logfile ]]; do 180 logfile="$logfile.$$" 183 "$@" 2>$logfile [all …]
|
| /freebsd-12-stable/usr.sbin/pw/ |
| D | pw_log.c | 42 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-stable/contrib/unbound/util/ |
| D | log.c | 66 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-stable/contrib/unbound/contrib/ |
| D | parseunbound.pl | 32 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";
|
| D | validation-reporter.sh | 15 logfile="/var/log/unbound.log" 30 tail -F $logfile | grep --line-buffered "unbound.*info: validation failure" | \
|
| /freebsd-12-stable/release/picobsd/tinyware/simple_httpd/ |
| D | simple_httpd.c | 58 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-stable/lib/libpathconv/tests/ |
| D | test.pl | 33 $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-stable/contrib/amd/libamu/ |
| D | xutil.c | 737 get_syslog_facility(const char *logfile) in get_syslog_facility() argument 742 facstr = strchr(logfile, ':'); in get_syslog_facility() 835 switch_to_logfile(char *logfile, int old_umask, int truncate_log) in switch_to_logfile() argument 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() [all …]
|
| /freebsd-12-stable/contrib/less/ |
| D | edit.c | 39 extern int logfile; 827 logfile = creat(filename, 0644); 833 logfile = open(filename, OPEN_APPEND); 834 if (lseek(logfile, (off_t)0, SEEK_END) == BAD_LSEEK) 836 close(logfile); 837 logfile = -1; 854 if (logfile < 0) 863 SET_BINARY(logfile);
|
| D | ch.c | 136 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() 393 if (logfile < 0) in end_logfile() 403 close(logfile); in end_logfile() 404 logfile = -1; in end_logfile() 432 write(logfile, (char *) bp->data, bp->datasize); in sync_logfile()
|
| /freebsd-12-stable/contrib/amd/scripts/ |
| D | test-attrcache.in | 23 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-stable/contrib/amd/hlfsd/ |
| D | hlfsd.c | 79 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-stable/contrib/ntp/scripts/monitoring/ |
| D | ntploopstat | 79 $logfile = shift; 109 $logfile = "loopstats:$ntpserver." unless defined($logfile); 391 local($fname,$suff) = ($logfile);
|
| /freebsd-12-stable/contrib/ntp/sntp/ |
| D | log.c | 26 const char *logfile in open_logfile() argument 29 change_logfile(logfile, FALSE); in open_logfile()
|
| D | invoke-sntp.texi | 76 * 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}.
|
| D | log.h | 23 void open_logfile(const char *logfile);
|
| /freebsd-12-stable/tools/regression/fsx/ |
| D | fsx.c | 977 char logfile[1024]; in main() local 981 logfile[0] = 0; in main() 1093 strncpy(logfile, optarg, sizeof(logfile)); in main() 1094 strcat(logfile, "/"); in main() 1157 strncat(logfile, fname, 256); in main() 1158 strcat (logfile, ".fsxlog"); in main() 1159 fsxlogf = fopen(logfile, "w"); in main() 1161 prterr(logfile); in main()
|
| /freebsd-12-stable/crypto/heimdal/lib/hx509/ |
| D | softp11.c | 94 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() 769 if (soft_token.logfile) in read_conf_file() 770 fclose(soft_token.logfile); in read_conf_file() 773 soft_token.logfile = stdout; in read_conf_file() 775 soft_token.logfile = fopen(name, "a"); in read_conf_file() 776 if (soft_token.logfile) in read_conf_file() 777 rk_cloexec_file(soft_token.logfile); in read_conf_file() [all …]
|
| /freebsd-12-stable/crypto/openssh/ |
| D | log.c | 307 log_redirect_stderr_to(const char *logfile) in log_redirect_stderr_to() argument 311 if (logfile == NULL) { in log_redirect_stderr_to() 319 if ((fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, 0600)) == -1) { in log_redirect_stderr_to() 320 fprintf(stderr, "Couldn't open logfile %s: %s\n", logfile, in log_redirect_stderr_to()
|
| /freebsd-12-stable/share/doc/pjdfstest/ |
| D | README | 28 Note that if HOME is undefined, this will result in kyua's logfile being 30 --logfile to explicitly select the log location.
|
| /freebsd-12-stable/crypto/heimdal/lib/asn1/ |
| D | gen.c | 40 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-stable/usr.sbin/bhyve/ |
| D | gdb.c | 196 static FILE *logfile; in debug() local 199 if (logfile == NULL) { in debug() 200 logfile = fopen("/tmp/bhyve_gdb.log", "w"); in debug() 201 if (logfile == NULL) in debug() 204 if (caph_limit_stream(fileno(logfile), CAPH_WRITE) == -1) { in debug() 205 fclose(logfile); in debug() 206 logfile = NULL; in debug() 210 setlinebuf(logfile); in debug() 213 vfprintf(logfile, fmt, ap); in debug()
|
| /freebsd-12-stable/crypto/heimdal/appl/gssmask/ |
| D | gssmaestro.c | 37 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()
|
| /freebsd-12-stable/usr.sbin/etcupdate/ |
| D | etcupdate.sh | 66 [-A patterns] [-D destdir] [-I patterns] [-L logfile] 68 etcupdate build [-B] [-d workdir] [-s source] [-L logfile] [-M options] 70 etcupdate diff [-d workdir] [-D destdir] [-I patterns] [-L logfile] 72 [-D destdir] [-L logfile] [-M options] 73 etcupdate resolve [-p] [-d workdir] [-D destdir] [-L logfile] 74 etcupdate revert [-d workdir] [-D destdir] [-L logfile] file ...
|
| /freebsd-12-stable/contrib/unbound/daemon/ |
| D | unbound.c | 308 free(cfg->logfile); in apply_settings() 309 cfg->logfile = NULL; in apply_settings() 524 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); in perform_setup() 684 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); in perform_setup() 733 log_init(cfg->logfile, 0, cfg->chrootdir); in run_daemon()
|