| /NextBSD/usr.sbin/pw/ |
| HD | pw_log.c | 38 static FILE *logfile = NULL; variable 43 if (cnf->logfile && *cnf->logfile) { in pw_log() 44 if (logfile == NULL) { /* With umask==0 we need to control file access modes on create */ in pw_log() 45 int fd = open(cnf->logfile, O_WRONLY | O_CREAT | O_APPEND, 0600); in pw_log() 48 logfile = fdopen(fd, "a"); in pw_log() 50 if (logfile != NULL) { in pw_log() 63 vfprintf(logfile, nfmt, argp); in pw_log() 65 fflush(logfile); in pw_log()
|
| /NextBSD/contrib/unbound/util/ |
| HD | log.c | 66 static FILE* logfile = 0; variable 96 if(logfile in log_init() 106 if(logfile && logfile != stderr) in log_init() 107 fclose(logfile); in log_init() 132 logfile = stderr; in log_init() 151 logfile = f; in log_init() 158 logfile = f; in log_file() 239 if(!logfile) { in log_vmsg() 250 fprintf(logfile, "%s %s[%d:%x] %s: %s\n", tmbuf, in log_vmsg() 257 fprintf(logfile, "%s %s %s[%d:%x] %s: %s\n", dtbuf, tmbuf, in log_vmsg() [all …]
|
| /NextBSD/release/picobsd/tinyware/simple_httpd/ |
| HD | simple_httpd.c | 58 char logfile[80]; variable 201 log=fopen(logfile,"a"); in log_line() 385 strcpy(logfile,getenv("HOME")); in main() 386 strcat(logfile,"/"); in main() 387 strcat(logfile,"jhttp.log"); in main() 389 strcpy(logfile,"/var/log/jhttpd.log"); in main() 406 strcpy(logfile,optarg); in main() 440 if ((access(logfile,W_OK)) && daemonize) { in main() 441 ld = open (logfile,O_WRONLY); in main() 442 chmod (logfile,00600); in main() [all …]
|
| HD | README | 41 it off for the logfile also. 51 [-l logfile] 73 -l logfile 74 Set the logfile to use. Log messages will be written to /var/log/jhttpd.log
|
| /NextBSD/contrib/amd/libamu/ |
| HD | xutil.c | 674 get_syslog_facility(const char *logfile) in get_syslog_facility() argument 679 facstr = strchr(logfile, ':'); in get_syslog_facility() 772 switch_to_logfile(char *logfile, int old_umask, int truncate_log) in switch_to_logfile() argument 776 if (logfile) { in switch_to_logfile() 781 if (STREQ(logfile, "/dev/stderr")) in switch_to_logfile() 783 else if (NSTREQ(logfile, "syslog", strlen("syslog"))) { in switch_to_logfile() 794 , get_syslog_facility(logfile) in switch_to_logfile() 804 truncate(logfile, 0); in switch_to_logfile() 805 new_logfp = fopen(logfile, "a"); in switch_to_logfile() 813 if (!new_logfp && logfile) { in switch_to_logfile() [all …]
|
| /NextBSD/contrib/less/ |
| HD | edit.c | 36 extern int logfile; 782 logfile = creat(filename, 0644); 788 logfile = open(filename, OPEN_APPEND); 789 if (lseek(logfile, (off_t)0, SEEK_END) == BAD_LSEEK) 791 close(logfile); 792 logfile = -1; 812 if (logfile < 0) 823 SET_BINARY(logfile);
|
| HD | 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() 399 if (logfile < 0) in end_logfile() 409 close(logfile); in end_logfile() 410 logfile = -1; in end_logfile() 437 write(logfile, (char *) bp->data, bp->datasize); in sync_logfile()
|
| HD | optfunc.c | 57 extern int logfile; 100 if (logfile >= 0) 113 if (logfile < 0)
|
| /NextBSD/contrib/libreadline/examples/rlfe/ |
| HD | rlfe.c | 136 FILE *logfile = NULL; variable 137 #define DPRINT0(FMT) (fprintf(logfile, FMT), fflush(logfile)) 138 #define DPRINT1(FMT, V1) (fprintf(logfile, FMT, V1), fflush(logfile)) 139 #define DPRINT2(FMT, V1, V2) (fprintf(logfile, FMT, V1, V2), fflush(logfile)) 388 logfile = fopen("/tmp/rlfe.log", "w"); in main()
|
| /NextBSD/contrib/amd/scripts/ |
| HD | test-attrcache.in | 23 logfile="/var/log/amd" 51 echo amd -x all -D all -r -l $logfile $a $mapfile -cache:=mapdefault,sync 52 amd -x all -D all -r -l $logfile $a $mapfile -cache:=mapdefault,sync
|
| /NextBSD/contrib/ntp/lib/isc/tests/ |
| HD | 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()
|
| /NextBSD/contrib/amd/hlfsd/ |
| HD | hlfsd.c | 83 char *logfile = DEFAULT_LOGFILE; variable 223 logfile = optarg; in main() 320 if (logfile) in main() 321 switch_to_logfile(logfile, orig_umask, 0); in main() 798 if (signum == SIGHUP && logfile) in reload() 799 switch_to_logfile(logfile, orig_umask, 0); in reload() 907 if (logfile && !STREQ(logfile, "stderr")) { in fatal()
|
| /NextBSD/contrib/ntp/scripts/monitoring/ |
| HD | ntploopstat | 79 $logfile = shift; 109 $logfile = "loopstats:$ntpserver." unless defined($logfile); 391 local($fname,$suff) = ($logfile);
|
| /NextBSD/contrib/ntp/sntp/ |
| HD | log.c | 26 const char *logfile in open_logfile() argument 29 change_logfile(logfile, FALSE); in open_logfile()
|
| HD | 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}.
|
| HD | log.h | 23 void open_logfile(const char *logfile);
|
| /NextBSD/tools/regression/fsx/ |
| HD | fsx.c | 995 char logfile[1024]; in main() local 998 logfile[0] = 0; in main() 1110 strncpy(logfile, optarg, sizeof(logfile)); in main() 1111 strcat(logfile, "/"); in main() 1171 strncat(logfile, fname, 256); in main() 1172 strcat (logfile, ".fsxlog"); in main() 1173 fsxlogf = fopen(logfile, "w"); in main() 1175 prterr(logfile); in main()
|
| /NextBSD/contrib/compiler-rt/lib/asan/scripts/ |
| HD | asan_symbolize.py | 25 logfile = sys.stdin variable 418 for line in logfile: 477 if args.logfile: 478 logfile = args.logfile variable 480 logfile = sys.stdin
|
| /NextBSD/crypto/heimdal/lib/hx509/ |
| HD | 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() 765 if (soft_token.logfile) in read_conf_file() 766 fclose(soft_token.logfile); in read_conf_file() 769 soft_token.logfile = stdout; in read_conf_file() 771 soft_token.logfile = fopen(name, "a"); in read_conf_file() 772 if (soft_token.logfile) in read_conf_file() 773 rk_cloexec_file(soft_token.logfile); in read_conf_file() [all …]
|
| /NextBSD/contrib/llvm/tools/lldb/source/Expression/ |
| HD | ClangUtilityFunction.cpp | 172 StreamFile logfile ("/tmp/exprs.txt", "a"); in Install() 173 logfile.Printf ("0x%16.16" PRIx64 ": func = %s, source =\n%s\n", in Install()
|
| /NextBSD/crypto/heimdal/lib/asn1/ |
| HD | 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()
|
| /NextBSD/crypto/openssh/ |
| HD | log.c | 351 log_redirect_stderr_to(const char *logfile) in log_redirect_stderr_to() argument 355 if ((fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, 0600)) == -1) { in log_redirect_stderr_to() 356 fprintf(stderr, "Couldn't open logfile %s: %s\n", logfile, in log_redirect_stderr_to()
|
| /NextBSD/crypto/heimdal/appl/gssmask/ |
| HD | 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()
|
| /NextBSD/contrib/unbound/daemon/ |
| HD | unbound.c | 310 cfg->logfile = NULL; in apply_settings() 462 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); in perform_setup() 627 log_init(cfg->logfile, cfg->use_syslog, cfg->chrootdir); in perform_setup() 673 log_init(cfg->logfile, 0, cfg->chrootdir); in run_daemon()
|
| /NextBSD/usr.sbin/pw/tests/ |
| HD | pw-modified.conf | 24 logfile = "/var/log/userlog"
|