| /freebsd/tests/sys/cddl/zfs/include/ |
| H A D | logapi.kshlib | 120 typeset logfile="$TMPDIR/log.$$" 123 while [[ -e $logfile ]]; do 124 logfile="$logfile.$$" 127 "$@" 2>$logfile 129 out="/bin/cat $logfile" 164 _recursive_output $logfile "false" 172 typeset logfile="$TMPDIR/log.$$" 174 while [[ -e $logfile ]]; do 175 logfile="$logfile.$$" 178 "$@" 2>$logfile [all …]
|
| /freebsd/sys/contrib/openzfs/tests/test-runner/include/ |
| H A D | logapi.shlib | 84 typeset logfile="/tmp/log.$$" 91 while [[ -e $logfile ]]; do 92 logfile="$logfile.$$" 96 "$@" 2>$logfile 100 if grep -qEi "internal error|assertion failed" $logfile; then 101 cat $logfile >&2 106 [[ -n $LOGAPI_DEBUG ]] && cat $logfile 111 if grep -qi "$expect" $logfile; then 112 cat $logfile >&2 125 cat $logfile >&2 [all …]
|
| /freebsd/crypto/krb5/src/appl/gss-sample/ |
| H A D | gss-server.c | 89 static FILE *logfile; variable 194 if (logfile) in server_establish_context() 195 fprintf(logfile, "Expected NOOP token, got %d token instead\n", in server_establish_context() 207 if (verbose && logfile) { in server_establish_context() 208 fprintf(logfile, "Received token (size=%d): \n", in server_establish_context() 227 if (verbose && logfile) { in server_establish_context() 228 fprintf(logfile, in server_establish_context() 234 if (logfile) in server_establish_context() 235 fprintf(logfile, "failure sending token\n"); in server_establish_context() 251 if (verbose && logfile) { in server_establish_context() [all …]
|
| /freebsd/tools/test/stress2/misc/ |
| H A D | rename6.sh | 76 const char *logfile = "test.log"; 94 stat(logfile, &sb); 114 if ((fd = open(logfile, O_RDWR | O_CREAT | O_TRUNC, 0644)) == -1) 115 err(1, "creat(%s)", logfile); 118 if (rename(logfile, new) == -1) 119 warn("rename(%s, %s)", logfile, new); 122 if (link(logfile, new) == -1) 123 err(1, "link(%s, %s)", logfile, new); 124 if (unlink(logfile) == -1) 125 err(1, "unlink(%s)", logfile); [all …]
|
| H A D | tmpfs8.sh | 71 const char *logfile = "test.log"; 89 stat(logfile, &sb); 111 if ((fd = open(logfile, O_RDWR | O_CREAT | O_TRUNC, 0644)) == -1) 112 err(1, "creat(%s)", logfile); 123 if (rename(logfile, new) == -1) 124 warn("rename(%s, %s)", logfile, new); 127 if (link(logfile, new) == -1) 128 err(1, "link(%s, %s)", logfile, new); 129 if (unlink(logfile) == -1) 130 err(1, "unlink(%s)", logfile); [all …]
|
| H A D | rename7.sh | 81 const char *logfile = "test.log"; 91 rename(logfile, "r1"); 94 fprintf(stderr, "r1 and r2 are identical after rename(%s, \"r1\")\n", logfile); 110 rename(logfile, "r2"); 114 fprintf(stderr, "r1 and r2 are identical after rename(%s, \"r2\")\n", logfile); 138 if ((fd = open(logfile, O_RDWR | O_CREAT | O_TRUNC, 0644)) == -1) 139 warn("creat(%s)", logfile);
|
| H A D | rename10.sh | 93 static char *logfile = "logfile"; 107 if ((fd = open(logfile, O_RDWR | O_APPEND)) != -1) { 144 if ((fd = open(logfile, O_RDWR | O_CREAT | O_EXCL, 0644)) == -1) 145 err(1, "creat(%s)", logfile); 147 if (rename(logfile, oldfiles[i]) == -1) 148 err(1, "rename(%s, %s)", logfile, oldfiles[i]); 154 unlink(logfile);
|
| /freebsd/usr.sbin/pw/ |
| H A D | 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/contrib/kyua/utils/logging/ |
| H A D | operations.cpp | 108 std::unique_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(); 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/sys/contrib/openzfs/.github/workflows/scripts/ |
| H A D | qemu-9-summary-page.sh | 10 echo -e $* >> "out-$logfile.md" 14 cat "$1" >> "out-$logfile.md" 19 cat "$1" >> "out-$logfile.md" 35 logfile="1" 54 logfile=$((logfile+1))
|
| /freebsd/contrib/unbound/util/ |
| H A D | 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:%d] %s: %s\n", in log_vmsg() [all …]
|
| /freebsd/contrib/unbound/contrib/ |
| H A 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";
|
| /freebsd/lib/libpathconv/tests/ |
| H A D | 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/crypto/openssh/regress/ |
| H A D | test-exec.sh | 332 logfile="${TEST_SSH_LOGDIR}/\${timestamp}.ssh.\$\$.log" 333 echo "Executing: ${SSH} \$@" log \${logfile} >>$TEST_REGRESS_LOGFILE 334 echo "Executing: ${SSH} \$@" >>\${logfile} 337 ln -f -s \${logfile} $TEST_SSH_LOGFILE 338 exec ${SSH} -E\${logfile} "\$@" 351 logfile="${TEST_SSH_LOGDIR}/\${timestamp}.sshd.\$\$.log" 353 touch \$logfile 354 test -z "$SUDO" || chown $USER \$logfile 355 ln -f -s \${logfile} $TEST_SSHD_LOGFILE 356 echo "Executing: ${SSHD} \$@" log \${logfile} >>$TEST_REGRESS_LOGFILE [all …]
|
| /freebsd/contrib/kyua/utils/ |
| H A D | 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/usr.sbin/pmc/ |
| H A D | cmd_pmc_info.cc | 152 const char *logfile = "default.log"; in cmd_pmc_info() local 170 logfile = argv[0]; in cmd_pmc_info() 174 if ((logfd = open(logfile, O_RDONLY)) < 0) { in cmd_pmc_info() 175 errx(EX_OSERR, "ERROR: Cannot open \"%s\" for reading: %s.", logfile, in cmd_pmc_info()
|
| H A D | cmd_pmc_frontend.cc | 203 const char *logfile = "default.log"; in cmd_pmc_frontend() local 225 logfile = argv[0]; in cmd_pmc_frontend() 229 if ((logfd = open(logfile, O_RDONLY)) < 0) { in cmd_pmc_frontend() 230 errx(EX_OSERR, "ERROR: Cannot open \"%s\" for reading: %s.", logfile, in cmd_pmc_frontend()
|
| /freebsd/contrib/kyua/integration/ |
| H A D | 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/contrib/pam-krb5/tests/tap/ |
| H A D | process.c | 78 char *logfile; /* Log file of process output */ member 252 free(process->logfile); in process_free() 338 diag_file_remove(process->logfile); in process_stop() 340 unlink(process->logfile); in process_stop() 427 basprintf(&process->logfile, "%s/%s.log.XXXXXX", process->tmpdir, name); in process_start_internal() 428 log_fd = mkstemp(process->logfile); in process_start_internal() 496 diag_file_add(process->logfile); in process_start_internal()
|
| /freebsd/contrib/kyua/cli/ |
| H A D | main.cpp | 207 const fs::path logfile(cmdline.get_option< cmdline::path_option >( in safe_main() local 209 fs::mkdir_p(logfile.branch_path(), 0755); in safe_main() 210 LD(F("Log file is %s") % logfile); in safe_main() 211 utils::install_crash_handlers(logfile.str()); in safe_main() 214 "loglevel"), logfile); in safe_main()
|
| /freebsd/crypto/openssl/test/ |
| H A D | quic_cc_test.c | 281 static FILE *logfile; variable 290 if (logfile == NULL) in dump_state() 305 fprintf(logfile, "%10lu,%10lu,%10lu,%10lu,%10lu,%10lu,%10lu,%10lu,\"%c\"\n", in dump_state() 470 if (logfile != NULL) in test_simulate() 471 fflush(logfile); in test_simulate() 615 logfile = fopen("quic_cc_stats.csv", "w"); in setup_tests() 616 fprintf(logfile, in setup_tests()
|
| /freebsd/contrib/ntp/sntp/ |
| H A D | log.c | 26 const char *logfile in open_logfile() argument 29 change_logfile(logfile, FALSE); in open_logfile()
|
| /freebsd/contrib/ntp/scripts/monitoring/ |
| H A D | ntploopstat | 79 $logfile = shift; 109 $logfile = "loopstats:$ntpserver." unless defined($logfile); 391 local($fname,$suff) = ($logfile);
|
| /freebsd/contrib/less/ |
| H A D | edit.c | 46 extern int logfile; 1001 logfile = creat(filename, CREAT_RW); in use_logfile() 1007 logfile = open(filename, OPEN_APPEND); in use_logfile() 1008 if (less_lseek(logfile, (less_off_t)0, SEEK_END) == BAD_LSEEK) in use_logfile() 1010 close(logfile); in use_logfile() 1011 logfile = -1; in use_logfile() 1028 if (logfile < 0) in use_logfile() 1037 SET_BINARY(logfile); in use_logfile()
|
| H A D | ch.c | 131 extern int logfile; 314 if (logfile >= 0 && n > 0) in ch_get() 315 write(logfile, &bp->data[bp->datasize], (size_t) n); in ch_get() 423 if (logfile < 0) in end_logfile() 433 close(logfile); in end_logfile() 434 logfile = -1; in end_logfile() 455 if (logfile < 0) in sync_logfile() 467 write(logfile, bp->data, bp->datasize); in sync_logfile()
|