Home
last modified time | relevance | path

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

12345

/freebsd/usr.sbin/syslogd/tests/
H A Dsyslogd_test.sh26 local logfile="${PWD}/unix.log"
28 printf "user.debug\t${logfile}\n" > "${SYSLOGD_CONFIG}"
34 tail -n 1 "${logfile}"
48 local logfile="${PWD}/inet.log"
53 printf "user.debug\t${logfile}\n" > "${SYSLOGD_CONFIG}"
60 tail -n 1 "${logfile}"
74 local logfile="${PWD}/inet6.log"
79 printf "user.debug\t${logfile}\n" > "${SYSLOGD_CONFIG}"
86 tail -n 1 "${logfile}"
100 logfile="${PWD}/reload.log"
[all …]
H A Dsyslogd_basic_format_test.sh14 local logfile="$2"
16 printf "user.debug\t${logfile}\n" > "${SYSLOGD_CONFIG}"
36 local logfile="${PWD}/O_flag_${format}_basic.log"
38 setup_basic_format_test "${format}" "${logfile}"
40 atf_check -s exit:0 -o match:"${REGEX_RFC3164_LOGFILE}" cat "${logfile}"
55 local logfile="${PWD}/O_flag_${format}_basic.log"
57 setup_basic_format_test "${format}" "${logfile}"
59 atf_check -s exit:0 -o match:"${REGEX_RFC3164_LOGFILE}" cat "${logfile}"
74 local logfile="${PWD}/O_flag_${format}_basic.log"
76 setup_basic_format_test "${format}" "${logfile}"
[all …]
H A Dsyslogd_forwarded_format_test.sh17 local logfile="$2"
28 printf "user.debug\t${logfile}\n" > "$(config_filename ${SERVER_1_PORT})"
52 local logfile="${PWD}/${format}_forwarded.log"
55 setup_forwarded_format_test "${format}" "${logfile}" "${pcapfile}"
59 atf_check -s exit:0 -o match:"${REGEX_RFC3164_LOGFILE}" cat "${logfile}"
79 local logfile="${PWD}/${format}_forwarded.log"
82 setup_forwarded_format_test "${format}" "${logfile}" "${pcapfile}"
86 atf_check -s exit:0 -o match:"${REGEX_RFC3164_LOGFILE}" cat "${logfile}"
106 local logfile="${PWD}/${format}_forwarded.log"
109 setup_forwarded_format_test "${format}" "${logfile}" "${pcapfile}"
[all …]
H A Dsyslogd_relayed_format_test.sh18 local logfile="$2"
29 printf "user.debug\t${logfile}\n" \
59 local logfile="${PWD}/${format}_relayed.log"
62 setup_relayed_format_test "${format}" "${logfile}" "${pcapfile}"
65 atf_check -s exit:0 -o match:"${REGEX_RFC3164_LOGFILE}" cat "${logfile}"
86 local logfile="${PWD}/${format}_relayed.log"
89 setup_relayed_format_test "${format}" "${logfile}" "${pcapfile}"
92 atf_check -s exit:0 -o match:"${REGEX_RFC3164_LOGFILE}" cat "${logfile}"
113 local logfile="${PWD}/${format}_relayed.log"
116 setup_relayed_format_test "${format}" "${logfile}" "${pcapfile}"
[all …]
/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.shlib92 typeset logfile="/tmp/log.$$"
99 while [[ -e $logfile ]]; do
100 logfile="$logfile.$$"
104 "$@" 2>$logfile
108 if grep -qEi "internal error|assertion failed" $logfile; then
109 cat $logfile >&2
114 [[ -n $LOGAPI_DEBUG ]] && cat $logfile
119 if grep -qi "$expect" $logfile; then
120 cat $logfile >&2
133 cat $logfile >&2
[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::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/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
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/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.sh311 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/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/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/contrib/less/
H A Dch.c130 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()
382 * Close the logfile. in end_logfile()
389 if (logfile < 0) in end_logfile()
394 ierror("Finishing logfile", NULL_PARG); in end_logfile()
399 close(logfile);
400 logfile = -1;
418 if (logfile < 0) in sync_logfile()
429 write(logfile, b in sync_logfile()
[all...]
H A Dedit.c45 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()
1004 * Error in opening logfile. in use_logfile()
1010 SET_BINARY(logfile); in use_logfile()
/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);

12345