/freebsd-11-stable/usr.sbin/pw/ |
H A D | pw_log.c | 42 static FILE *logfile = NULL; variable 54 if (cnf->logfile == NULL || cnf->logfile[0] == '\0') { 58 if (logfile == NULL) { 60 fd = open(cnf->logfile, O_WRONLY | O_CREAT | O_APPEND, 0600); 64 logfile = fdopen(fd, "a"); 65 if (logfile == NULL) { 116 vfprintf(logfile, nfmt, argp); 118 fflush(logfile);
|
H A D | pwupd.h | 70 char *logfile; /* Where to log changes */ member in struct:userconf
|
/freebsd-11-stable/contrib/ntp/sntp/ |
H A D | log.c | 26 const char *logfile 29 change_logfile(logfile, FALSE);
|
H A D | log.h | 23 void open_logfile(const char *logfile);
|
/freebsd-11-stable/usr.sbin/pw/tests/ |
H A D | pw-modified.conf | 24 logfile = "/var/log/userlog"
|
H A D | pw.conf | 24 logfile = "/var/log/userlog"
|
/freebsd-11-stable/contrib/unbound/contrib/ |
H A D | validation-reporter.sh | 14 # The logfile to watch for logged validation failures. 15 logfile="/var/log/unbound.log" 19 # and writes one log-line to it (grepped from the logfile). 30 tail -F $logfile | grep --line-buffered "unbound.*info: validation failure" | \
|
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";
|
/freebsd-11-stable/contrib/unbound/util/ |
H A D | log.c | 66 static FILE* logfile = 0; variable 69 /** pthread key for thread ids in logfile */ 95 if(logfile 105 if(logfile && logfile != stderr) { 106 FILE* cl = logfile; 107 logfile = NULL; /* set to NULL before it is closed, so that 108 other threads have a valid logfile or NULL */ 137 logfile = stderr; 148 log_err("Could not open logfile [all...] |
/freebsd-11-stable/release/picobsd/tinyware/simple_httpd/ |
H A D | simple_httpd.c | 58 static char logfile[80]; variable 201 log=fopen(logfile,"a"); 385 strcpy(logfile,getenv("HOME")); 386 strcat(logfile,"/"); 387 strcat(logfile,"jhttp.log"); 389 strcpy(logfile,"/var/log/jhttpd.log"); 406 strcpy(logfile,optarg); 420 printf("usage: simple_httpd [[-d directory][-g grpid][-l logfile][-p port][-vD]]\n"); 440 if ((access(logfile,W_OK)) && daemonize) { 441 ld = open (logfile,O_WRONL [all...] |
/freebsd-11-stable/contrib/ntp/lib/isc/tests/ |
H A D | isctest.c | 94 isc_test_begin(FILE *logfile, isc_boolean_t start_managers) { argument 104 if (logfile != NULL) { 112 destination.file.stream = logfile;
|
H A D | isctest.h | 51 isc_test_begin(FILE *logfile, isc_boolean_t start_managers);
|
/freebsd-11-stable/contrib/amd/scripts/ |
H A D | test-attrcache.in | 23 logfile="/var/log/amd" 44 # rm -f /tmp/a /tmp/b $mapfile $logfile 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
|
/freebsd-11-stable/crypto/heimdal/lib/asn1/ |
H A D | gen_locl.h | 94 extern FILE *privheaderfile, *headerfile, *codefile, *logfile, *templatefile;
|
/freebsd-11-stable/contrib/ntp/scripts/deprecated/ |
H A D | ntp-groper | 25 logfile=/tmp/cntp-log$$ 91 # ) >> $logfile
|
/freebsd-11-stable/contrib/ntp/scripts/monitoring/ |
H A D | ntploopstat | 15 ;# The format written to the logfile is the same as used by xntpd 18 ;# remote servers where you do not have access to the loopstats logfile. 62 $0 [-d<delay>] [-t<timeout>] [-l <logfile>] [-v] [ntpserver] 78 @ARGV || die("$0: logfile missing after -l\n$usage"); 79 $logfile = shift; 105 ;# logfile defaults to include server name 109 $logfile = "loopstats:$ntpserver." unless defined($logfile); 391 local($fname,$suff) = ($logfile);
|
/freebsd-11-stable/contrib/amd/libamu/ |
H A D | xutil.c | 316 * Output the time of day and hostname to the logfile 734 * logfile can be "syslog", "syslog:daemon", "syslog:local7", etc. 737 get_syslog_facility(const char *logfile) argument 742 facstr = strchr(logfile, ':'); 832 * Change current logfile 835 switch_to_logfile(char *logfile, int old_umask, int truncate_log) argument 839 if (logfile) { 844 if (STREQ(logfile, "/dev/stderr")) 846 else if (NSTREQ(logfile, "syslog", strlen("syslog"))) { 857 , get_syslog_facility(logfile) [all...] |
/freebsd-11-stable/contrib/libreadline/examples/rlfe/ |
H A D | 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");
|
/freebsd-11-stable/contrib/less/ |
H A D | edit.c | 39 extern int logfile; 827 logfile = creat(filename, 0644); 833 logfile = open(filename, OPEN_APPEND); 834 if (lseek(logfile, (off_t)0, SEEK_END) == BAD_LSEEK) 836 close(logfile); 837 logfile = -1; 854 if (logfile < 0) 857 * Error in opening logfile. 863 SET_BINARY(logfile);
|
H A D | ch.c | 136 extern int logfile; 288 if (!secure && logfile >= 0 && n > 0) 289 write(logfile, (char *) &bp->data[bp->datasize], n); 385 * Close the logfile. 393 if (logfile < 0) 398 ierror("Finishing logfile", NULL_PARG); 403 close(logfile); 404 logfile = -1; 432 write(logfile, (char *) bp->data, bp->datasize);
|
/freebsd-11-stable/contrib/amd/hlfsd/ |
H A D | hlfsd.c | 79 char *logfile = DEFAULT_LOGFILE; variable 110 fprintf(stderr, "\t[-i interval] [-l logfile] [-o mntopts] [-P passwdfile]\n"); 220 logfile = optarg; 318 if (logfile) 319 switch_to_logfile(logfile, orig_umask, 0); 793 if (signum == SIGHUP && logfile) 794 switch_to_logfile(logfile, orig_umask, 0); 902 if (logfile && !STREQ(logfile, "stderr")) {
|
/freebsd-11-stable/crypto/openssh/ |
H A D | log.c | 360 log_redirect_stderr_to(const char *logfile) argument 364 if ((fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, 0600)) == -1) { 365 fprintf(stderr, "Couldn't open logfile %s: %s\n", logfile,
|
/freebsd-11-stable/tools/regression/fsx/ |
H A D | fsx.c | 1002 char logfile[1024]; local 1006 logfile[0] = 0; 1118 strncpy(logfile, optarg, sizeof(logfile)); 1119 strcat(logfile, "/"); 1182 strncat(logfile, fname, 256); 1183 strcat (logfile, ".fsxlog"); 1184 fsxlogf = fopen(logfile, "w"); 1186 prterr(logfile);
|
/freebsd-11-stable/contrib/amd/amd/ |
H A D | get_args.c | 141 \t[-k kernel_arch] [-l logfile%s\n\ 216 gopt.logfile = optarg; 435 if (switch_to_logfile(gopt.logfile, orig_umask, 437 plog(XLOG_USER, "Cannot switch logfile");
|
/freebsd-11-stable/crypto/heimdal/lib/hx509/ |
H A D | softp11.c | 94 FILE *logfile; member in struct:soft_token 114 if (soft_token.logfile == NULL) 117 vfprintf(soft_token.logfile, fmt, ap); 119 fflush(soft_token.logfile); 765 if (soft_token.logfile) 766 fclose(soft_token.logfile); 769 soft_token.logfile = stdout; 771 soft_token.logfile = fopen(name, "a"); 772 if (soft_token.logfile) 773 rk_cloexec_file(soft_token.logfile); [all...] |