| /freebsd-14.2/usr.sbin/syslogd/tests/ |
| H A D | syslogd_test.sh | 81 logfile="${PWD}/basic.log" 88 tail -n 1 "${logfile}" 98 tail -n 1 "${logfile}" 120 logfile="${PWD}/reload.log" 129 truncate -s 0 "${logfile}" 165 truncate -s 0 ${logfile} 202 truncate -s 0 ${logfile} 236 truncate -s 0 ${logfile} 246 truncate -s 0 ${logfile} 256 truncate -s 0 ${logfile} [all …]
|
| /freebsd-14.2/tests/sys/cddl/zfs/include/ |
| H A D | logapi.kshlib | 127 logfile="$logfile.$$" 130 "$@" 2>$logfile 132 out="/bin/cat $logfile" 178 logfile="$logfile.$$" 181 "$@" 2>$logfile 204 logfile="$logfile.$$" 207 "$@" 2>$logfile 408 typeset logfile=$1 412 /bin/cat $logfile 414 /bin/rm -f $logfile [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/tests/test-runner/include/ |
| H A D | logapi.shlib | 100 logfile="$logfile.$$" 104 "$@" 2>$logfile 133 cat $logfile >&2 204 logfile="$logfile.$$" 207 "$@" 2>$logfile 262 logfile="$logfile.$$" 265 "$@" 2>$logfile 299 logfile="$logfile.$$" 302 "$@" 2>$logfile 499 cat $logfile [all …]
|
| /freebsd-14.2/tools/test/stress2/misc/ |
| H A D | rename6.sh | 76 const char *logfile = "test.log"; 94 stat(logfile, &sb); 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); 131 if (stat(logfile, &sb1) == 0 && stat(new, &sb2) == 0 && [all …]
|
| H A D | tmpfs8.sh | 71 const char *logfile = "test.log"; 89 stat(logfile, &sb); 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); 136 r1 = stat(logfile, &sb1); [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); 136 if ((fd = open(logfile, O_RDWR | O_CREAT | O_TRUNC, 0644)) == -1) 137 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-14.2/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-14.2/contrib/kyua/utils/logging/ |
| H A D | 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-14.2/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() 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() 302 fflush(logfile); in log_vmsg() [all …]
|
| /freebsd-14.2/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";
|
| H A D | validation-reporter.sh | 15 logfile="/var/log/unbound.log" 30 tail -F $logfile | grep --line-buffered "unbound.*info: validation failure" | \
|
| /freebsd-14.2/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-14.2/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-14.2/crypto/openssh/regress/ |
| H A D | test-exec.sh | 309 echo "Executing: ${SSH} \$@" >>\${logfile} 312 ln -f -s \${logfile} $TEST_SSH_LOGFILE 313 exec ${SSH} -E\${logfile} "\$@" 327 touch \$logfile 328 test -z "$SUDO" || chown $USER \$logfile 329 ln -f -s \${logfile} $TEST_SSHD_LOGFILE 331 echo "Executing: ${SSHD} \$@" >>\${logfile} 332 exec ${SSHD} -E\${logfile} "\$@" 342 echo $logfile 512 if [ ! -z "$SUDO" ] && [ -f "$logfile" ]; then [all …]
|
| /freebsd-14.2/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-14.2/contrib/kyua/cli/ |
| H A D | 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-14.2/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-14.2/contrib/less/ |
| H A D | ch.c | 138 extern int logfile; 298 if (!secure && logfile >= 0 && n > 0) in ch_get() 299 write(logfile, (char *) &bp->data[bp->datasize], n); in ch_get() 380 if (logfile < 0) in end_logfile() 390 close(logfile); in end_logfile() 391 logfile = -1; in end_logfile() 409 if (logfile < 0) in sync_logfile() 420 write(logfile, (char *) bp->data, bp->datasize); in sync_logfile()
|
| H A D | edit.c | 44 extern int logfile; 978 logfile = creat(filename, CREAT_RW); in use_logfile() 984 logfile = open(filename, OPEN_APPEND); in use_logfile() 985 if (lseek(logfile, (off_t)0, SEEK_END) == BAD_LSEEK) in use_logfile() 987 close(logfile); in use_logfile() 988 logfile = -1; in use_logfile() 1005 if (logfile < 0) in use_logfile() 1014 SET_BINARY(logfile); in use_logfile()
|
| /freebsd-14.2/contrib/ntp/scripts/monitoring/ |
| H A D | ntploopstat | 79 $logfile = shift; 109 $logfile = "loopstats:$ntpserver." unless defined($logfile); 391 local($fname,$suff) = ($logfile);
|
| /freebsd-14.2/tools/regression/fsx/ |
| H A D | 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-14.2/crypto/heimdal/lib/hx509/ |
| H A 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() 776 if (soft_token.logfile) in read_conf_file() 779 if (soft_token.logfile == NULL) in read_conf_file() 892 soft_token.logfile = NULL; in C_Initialize() [all …]
|
| /freebsd-14.2/crypto/openssh/ |
| H A 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-14.2/share/doc/pjdfstest/ |
| H A 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.
|