Home
last modified time | relevance | path

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

12345

/freebsd/tests/sys/cddl/zfs/include/
H A Dlogapi.kshlib120 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 Dlogapi.shlib94 typeset logfile="/tmp/log.$$"
101 while [[ -e $logfile ]]; do
102 logfile="$logfile.$$"
106 "$@" 2>$logfile
110 if grep -qEi "internal error|assertion failed" $logfile; then
111 cat $logfile >&2
116 [[ -n $LOGAPI_DEBUG ]] && cat $logfile
121 if grep -qi "$expect" $logfile; then
122 cat $logfile >&2
135 cat $logfile >&2
[all …]
/freebsd/crypto/krb5/src/appl/gss-sample/
H A Dgss-server.c89 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 Drename6.sh76 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 Dtmpfs8.sh71 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 Drename7.sh81 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 Drename10.sh93 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 Dpw_log.c37 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 Doperations.cpp108 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 Dqemu-9-summary-page.sh10 echo -e $* >> "out-$logfile.md"
14 cat "$1" >> "out-$logfile.md"
19 cat "$1" >> "out-$logfile.md"
35 logfile="1"
52 logfile=$((logfile+1))
/freebsd/contrib/unbound/util/
H A Dlog.c67 static FILE* logfile = 0; variable
70 /** pthread key for thread ids in logfile */
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()
111 other threads have a valid logfile or NULL */ in log_init()
140 logfile = stderr; in log_init()
151 log_err("Could not open logfile in log_init()
[all...]
/freebsd/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/lib/libpathconv/tests/
H A Dtest.pl32 $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 Dtest-exec.sh321 logfile="${TEST_SSH_LOGDIR}/\${timestamp}.ssh.\$\$.log"
322 echo "Executing: ${SSH} \$@" log \${logfile} >>$TEST_REGRESS_LOGFILE
323 echo "Executing: ${SSH} \$@" >>\${logfile}
326 ln -f -s \${logfile} $TEST_SSH_LOGFILE
327 exec ${SSH} -E\${logfile} "\$@"
340 logfile="${TEST_SSH_LOGDIR}/\${timestamp}.sshd.\$\$.log"
342 touch \$logfile
343 test -z "$SUDO" || chown $USER \$logfile
344 ln -f -s \${logfile} $TEST_SSHD_LOGFILE
345 echo "Executing: ${SSHD} \$@" log \${logfile} >>$TEST_REGRESS_LOGFILE
[all …]
/freebsd/contrib/kyua/utils/
H A Dsanity.cpp60 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/contrib/kyua/integration/
H A Dglobal_test.sh74 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 Dprocess.c78 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 Dmain.cpp205 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/crypto/openssl/test/
H A Dquic_cc_test.c281 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 Dlog.c26 const char *logfile in open_logfile() argument
29 change_logfile(logfile, FALSE); in open_logfile()
/freebsd/contrib/ntp/scripts/monitoring/
H A Dntploopstat79 $logfile = shift;
109 $logfile = "loopstats:$ntpserver." unless defined($logfile);
391 local($fname,$suff) = ($logfile);
/freebsd/contrib/less/
H A Dedit.c46 extern int logfile;
977 logfile = creat(filename, CREAT_RW); in use_logfile()
983 logfile = open(filename, OPEN_APPEND); in use_logfile()
984 if (less_lseek(logfile, (less_off_t)0, SEEK_END) == BAD_LSEEK) in use_logfile()
986 close(logfile); in use_logfile()
987 logfile = -1; in use_logfile()
1004 if (logfile < 0) in use_logfile()
1013 SET_BINARY(logfile); in use_logfile()
H A Dch.c130 extern int logfile;
310 if (logfile >= 0 && n > 0) in ch_get()
311 write(logfile, &bp->data[bp->datasize], (size_t) n); in ch_get()
404 if (logfile < 0) in end_logfile()
414 close(logfile); in end_logfile()
415 logfile = -1; in end_logfile()
436 if (logfile < 0) in sync_logfile()
448 write(logfile, bp->data, bp->datasize); in sync_logfile()
/freebsd/tools/regression/fsx/
H A Dfsx.c986 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()

12345