| /freebsd-13-stable/usr.sbin/syslogd/tests/ |
| HD | syslogd_test.sh | 81 logfile="${PWD}/basic.log" 82 printf "user.debug\t${logfile}\n" > "${SYSLOGD_CONFIG}" 88 tail -n 1 "${logfile}" 98 tail -n 1 "${logfile}" 105 tail -n 1 "${logfile}" 120 logfile="${PWD}/reload.log" 121 printf "user.debug\t/${logfile}\n" > "${SYSLOGD_CONFIG}" 126 atf_check -s exit:0 -o match:"reload: pre-reload" tail -n 1 "${logfile}" 129 truncate -s 0 "${logfile}" 130 printf "news.debug\t${logfile}\n" > "${SYSLOGD_CONFIG}" [all …]
|
| /freebsd-13-stable/tests/sys/cddl/zfs/include/ |
| HD | logapi.kshlib | 123 typeset logfile="$TMPDIR/log.$$" 126 while [[ -e $logfile ]]; do 127 logfile="$logfile.$$" 130 "$@" 2>$logfile 132 out="/bin/cat $logfile" 167 _recursive_output $logfile "false" 175 typeset logfile="$TMPDIR/log.$$" 177 while [[ -e $logfile ]]; do 178 logfile="$logfile.$$" 181 "$@" 2>$logfile [all …]
|
| /freebsd-13-stable/sys/contrib/openzfs/tests/test-runner/include/ |
| HD | logapi.shlib | 82 typeset logfile="/tmp/log.$$" 89 while [[ -e $logfile ]]; do 90 logfile="$logfile.$$" 94 "$@" 2>$logfile 96 out="cat $logfile" 105 [[ -n $LOGAPI_DEBUG ]] && cat $logfile 129 _recursive_output $logfile "false" 194 typeset logfile="/tmp/log.$$" 199 while [[ -e $logfile ]]; do 200 logfile="$logfile.$$" [all …]
|
| /freebsd-13-stable/usr.sbin/pw/ |
| HD | pw_log.c | 37 static FILE *logfile = NULL; variable 49 if (cnf->logfile == NULL || cnf->logfile[0] == '\0') { in pw_log() 53 if (logfile == NULL) { in pw_log() 55 fd = open(cnf->logfile, O_WRONLY | O_CREAT | O_APPEND, 0600); in pw_log() 59 logfile = fdopen(fd, "a"); in pw_log() 60 if (logfile == NULL) { in pw_log() 111 vfprintf(logfile, nfmt, argp); in pw_log() 113 fflush(logfile); in pw_log()
|
| /freebsd-13-stable/contrib/kyua/utils/logging/ |
| HD | operations.cpp | 108 std::auto_ptr< std::ostream > logfile; member 224 if (globals->logfile.get() == NULL) in log() 228 (*globals->logfile) << message << '\n'; in log() 229 globals->logfile->flush(); in log() 245 if (globals->logfile.get() != NULL) { in set_inmemory() 247 globals->logfile->flush(); in set_inmemory() 248 globals->logfile.reset(NULL); in set_inmemory() 275 PRE(globals->logfile.get() == NULL); in set_persistency() 290 globals->logfile = utils::open_ostream(path); in set_persistency() 299 (*globals->logfile) << (*iter).second << '\n'; in set_persistency() [all …]
|
| /freebsd-13-stable/contrib/unbound/util/ |
| HD | log.c | 67 static FILE* logfile = 0; variable 98 if(logfile in log_init() 108 if(logfile && logfile != stderr) { in log_init() 109 FILE* cl = logfile; in log_init() 110 logfile = NULL; /* set to NULL before it is closed, so that in log_init() 140 logfile = stderr; in log_init() 159 logfile = f; in log_init() 166 logfile = f; in log_file() 276 if(!logfile) { in log_vmsg() 297 fprintf(logfile, "%s.%3.3d%s %s[%d:%x] %s: %s\n", in log_vmsg() [all …]
|
| /freebsd-13-stable/contrib/unbound/contrib/ |
| HD | 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";
|
| HD | validation-reporter.sh | 15 logfile="/var/log/unbound.log" 30 tail -F $logfile | grep --line-buffered "unbound.*info: validation failure" | \
|
| /freebsd-13-stable/lib/libpathconv/tests/ |
| HD | test.pl | 32 $logfile = 'err'; 87 open(LOG, ">$logfile") || die("cannot open log file '$logfile'.\n"); 140 open(LOG, $logfile) || die("log file not found.\n");
|
| /freebsd-13-stable/crypto/openssh/regress/ |
| HD | test-exec.sh | 311 logfile="${TEST_SSH_LOGDIR}/\${timestamp}.ssh.\$\$.log" 312 echo "Executing: ${SSH} \$@" log \${logfile} >>$TEST_REGRESS_LOGFILE 313 echo "Executing: ${SSH} \$@" >>\${logfile} 316 ln -f -s \${logfile} $TEST_SSH_LOGFILE 317 exec ${SSH} -E\${logfile} "\$@" 329 logfile="${TEST_SSH_LOGDIR}/\${timestamp}.sshd.\$\$.log" 331 touch \$logfile 332 test -z "$SUDO" || chown $USER \$logfile 333 ln -f -s \${logfile} $TEST_SSHD_LOGFILE 334 echo "Executing: ${SSHD} \$@" log \${logfile} >>$TEST_REGRESS_LOGFILE [all …]
|
| /freebsd-13-stable/contrib/kyua/utils/ |
| HD | sanity.cpp | 60 static std::string logfile; variable 88 PRE(!logfile.empty()); in crash_handler() 91 err_write(F("*** Log file is %s\n") % logfile); in crash_handler() 188 logfile = logfile_; in install_crash_handlers()
|
| /freebsd-13-stable/contrib/kyua/integration/ |
| HD | global_test.sh | 74 atf_check -s exit:3 -o empty -e ignore kyua --logfile=test.log 87 atf_check -s exit:3 -o empty -e ignore kyua --logfile=test.log 103 atf_check -s exit:3 -o empty -e ignore kyua --logfile=test.log \ 120 atf_check -s exit:3 -o empty -e ignore kyua --logfile=test.log \
|
| /freebsd-13-stable/contrib/kyua/cli/ |
| HD | main.cpp | 205 const fs::path logfile(cmdline.get_option< cmdline::path_option >( in safe_main() local 207 fs::mkdir_p(logfile.branch_path(), 0755); in safe_main() 208 LD(F("Log file is %s") % logfile); in safe_main() 209 utils::install_crash_handlers(logfile.str()); in safe_main() 212 "loglevel"), logfile); in safe_main()
|
| /freebsd-13-stable/contrib/ntp/sntp/ |
| HD | log.c | 26 const char *logfile in open_logfile() argument 29 change_logfile(logfile, FALSE); in open_logfile()
|
| HD | 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}.
|
| /freebsd-13-stable/contrib/ntp/scripts/monitoring/ |
| HD | ntploopstat | 79 $logfile = shift; 109 $logfile = "loopstats:$ntpserver." unless defined($logfile); 391 local($fname,$suff) = ($logfile);
|
| /freebsd-13-stable/contrib/less/ |
| HD | edit.c | 45 extern int logfile; 974 logfile = creat(filename, CREAT_RW); in use_logfile() 980 logfile = open(filename, OPEN_APPEND); in use_logfile() 981 if (less_lseek(logfile, (less_off_t)0, SEEK_END) == BAD_LSEEK) in use_logfile() 983 close(logfile); in use_logfile() 984 logfile = -1; in use_logfile() 1001 if (logfile < 0) in use_logfile() 1010 SET_BINARY(logfile); in use_logfile()
|
| HD | ch.c | 130 extern int logfile; 300 if (logfile >= 0 && n > 0) in ch_get() 301 write(logfile, &bp->data[bp->datasize], (size_t) n); in ch_get() 389 if (logfile < 0) in end_logfile() 399 close(logfile); in end_logfile() 400 logfile = -1; in end_logfile() 418 if (logfile < 0) in sync_logfile() 429 write(logfile, bp->data, bp->datasize); in sync_logfile()
|
| /freebsd-13-stable/tools/regression/fsx/ |
| HD | fsx.c | 986 char logfile[1024]; in main() local 990 logfile[0] = 0; in main() 1102 strncpy(logfile, optarg, sizeof(logfile)); in main() 1103 strcat(logfile, "/"); in main() 1168 strncat(logfile, fname, 256); in main() 1169 strcat (logfile, ".fsxlog"); in main() 1170 fsxlogf = fopen(logfile, "w"); in main() 1172 prterr(logfile); in main()
|
| /freebsd-13-stable/crypto/heimdal/lib/hx509/ |
| HD | 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-13-stable/crypto/openssh/ |
| HD | 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-13-stable/share/doc/pjdfstest/ |
| HD | 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-13-stable/crypto/heimdal/lib/asn1/ |
| HD | 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-13-stable/usr.sbin/bhyve/ |
| HD | gdb.c | 198 static FILE *logfile; in debug() local 201 if (logfile == NULL) { in debug() 202 logfile = fopen("/tmp/bhyve_gdb.log", "w"); in debug() 203 if (logfile == NULL) in debug() 206 if (caph_limit_stream(fileno(logfile), CAPH_WRITE) == -1) { in debug() 207 fclose(logfile); in debug() 208 logfile = NULL; in debug() 212 setlinebuf(logfile); in debug() 215 vfprintf(logfile, fmt, ap); in debug()
|
| /freebsd-13-stable/crypto/heimdal/appl/gssmask/ |
| HD | 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()
|