| /freebsd-13.1/tests/sys/cddl/zfs/include/ |
| H A D | logapi.kshlib | 129 logfile="$logfile.$$" 132 "$@" 2>$logfile 134 out="/bin/cat $logfile" 180 logfile="$logfile.$$" 183 "$@" 2>$logfile 206 logfile="$logfile.$$" 209 "$@" 2>$logfile 410 typeset logfile=$1 414 /bin/cat $logfile 416 /bin/rm -f $logfile [all …]
|
| /freebsd-13.1/sys/contrib/openzfs/tests/test-runner/include/ |
| H A D | logapi.shlib | 90 logfile="$logfile.$$" 94 "$@" 2>$logfile 96 out="cat $logfile" 203 logfile="$logfile.$$" 206 "$@" 2>$logfile 208 out="cat $logfile" 267 logfile="$logfile.$$" 270 "$@" 2>$logfile 525 cat $logfile 527 rm -f $logfile [all …]
|
| /freebsd-13.1/usr.sbin/pw/ |
| H A D | pw_log.c | 42 static FILE *logfile = NULL; variable 54 if (cnf->logfile == NULL || cnf->logfile[0] == '\0') { in pw_log() 58 if (logfile == NULL) { in pw_log() 60 fd = open(cnf->logfile, O_WRONLY | O_CREAT | O_APPEND, 0600); in pw_log() 64 logfile = fdopen(fd, "a"); in pw_log() 65 if (logfile == NULL) { in pw_log() 116 vfprintf(logfile, nfmt, argp); in pw_log() 118 fflush(logfile); in pw_log()
|
| /freebsd-13.1/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-13.1/contrib/unbound/util/ |
| H A D | log.c | 66 static FILE* logfile = 0; variable 95 if(logfile in log_init() 105 if(logfile && logfile != stderr) { in log_init() 106 FILE* cl = logfile; in log_init() 107 logfile = NULL; /* set to NULL before it is closed, so that in log_init() 137 logfile = stderr; in log_init() 156 logfile = f; in log_init() 163 logfile = f; in log_file() 268 if(!logfile) { in log_vmsg() 277 fprintf(logfile, "%s %s[%d:%x] %s: %s\n", tmbuf, in log_vmsg() [all …]
|
| /freebsd-13.1/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-13.1/lib/libpathconv/tests/ |
| H A D | test.pl | 33 $logfile = 'err'; 88 open(LOG, ">$logfile") || die("cannot open log file '$logfile'.\n"); 141 open(LOG, $logfile) || die("log file not found.\n");
|
| /freebsd-13.1/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-13.1/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-13.1/contrib/less/ |
| H A D | edit.c | 40 extern int logfile; 829 logfile = creat(filename, 0644); 835 logfile = open(filename, OPEN_APPEND); 836 if (lseek(logfile, (off_t)0, SEEK_END) == BAD_LSEEK) 838 close(logfile); 839 logfile = -1; 856 if (logfile < 0) 865 SET_BINARY(logfile);
|
| H A D | ch.c | 136 extern int logfile; 288 if (!secure && logfile >= 0 && n > 0) in ch_get() 289 write(logfile, (char *) &bp->data[bp->datasize], n); in ch_get() 393 if (logfile < 0) in end_logfile() 403 close(logfile); in end_logfile() 404 logfile = -1; in end_logfile() 432 write(logfile, (char *) bp->data, bp->datasize); in sync_logfile()
|
| /freebsd-13.1/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-13.1/contrib/ntp/lib/isc/tests/ |
| H A D | isctest.c | 94 isc_test_begin(FILE *logfile, isc_boolean_t start_managers) { in isc_test_begin() argument 104 if (logfile != NULL) { in isc_test_begin() 112 destination.file.stream = logfile; in isc_test_begin()
|
| /freebsd-13.1/contrib/ntp/sntp/ |
| H A D | log.c | 26 const char *logfile in open_logfile() argument 29 change_logfile(logfile, FALSE); in open_logfile()
|
| H A D | log.h | 23 void open_logfile(const char *logfile);
|
| H A D | 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.1/contrib/ntp/scripts/monitoring/ |
| H A D | ntploopstat | 79 $logfile = shift; 109 $logfile = "loopstats:$ntpserver." unless defined($logfile); 391 local($fname,$suff) = ($logfile);
|
| /freebsd-13.1/tools/regression/fsx/ |
| H A D | fsx.c | 977 char logfile[1024]; in main() local 981 logfile[0] = 0; in main() 1093 strncpy(logfile, optarg, sizeof(logfile)); in main() 1094 strcat(logfile, "/"); in main() 1157 strncat(logfile, fname, 256); in main() 1158 strcat (logfile, ".fsxlog"); in main() 1159 fsxlogf = fopen(logfile, "w"); in main() 1161 prterr(logfile); in main()
|
| /freebsd-13.1/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-13.1/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-13.1/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.
|
| /freebsd-13.1/crypto/heimdal/lib/asn1/ |
| H A D | 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.1/usr.sbin/bhyve/ |
| H A D | gdb.c | 197 static FILE *logfile; in debug() local 200 if (logfile == NULL) { in debug() 201 logfile = fopen("/tmp/bhyve_gdb.log", "w"); in debug() 202 if (logfile == NULL) in debug() 205 if (caph_limit_stream(fileno(logfile), CAPH_WRITE) == -1) { in debug() 206 fclose(logfile); in debug() 207 logfile = NULL; in debug() 211 setlinebuf(logfile); in debug() 214 vfprintf(logfile, fmt, ap); in debug()
|
| /freebsd-13.1/crypto/heimdal/appl/gssmask/ |
| H A D | 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()
|