/freebsd-10.0-release/usr.sbin/pw/ |
H A D | pw_log.c | 36 static FILE *logfile = NULL; variable 41 if (cnf->logfile && *cnf->logfile) { 42 if (logfile == NULL) { /* With umask==0 we need to control file access modes on create */ 43 int fd = open(cnf->logfile, O_WRONLY | O_CREAT | O_APPEND, 0600); 46 logfile = fdopen(fd, "a"); 48 if (logfile != NULL) { 61 vfprintf(logfile, nfmt, argp); 63 fflush(logfile);
|
H A D | pw.h | 82 char *logfile; /* Where to log changes */ member in struct:userconf
|
/freebsd-10.0-release/contrib/unbound/util/ |
H A D | log.c | 64 static FILE* logfile = 0; variable 67 /** pthread key for thread ids in logfile */ 88 if(logfile 95 if(logfile && logfile != stderr) 96 fclose(logfile); 119 logfile = stderr; 128 log_err("Could not open logfile %s: %s", filename, 136 logfile = f; 141 logfile [all...] |
/freebsd-10.0-release/release/picobsd/tinyware/simple_httpd/ |
H A D | simple_httpd.c | 58 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-10.0-release/contrib/llvm/tools/lldb/source/Expression/ |
H A D | ClangUtilityFunction.cpp | 143 StreamFile logfile ("/tmp/exprs.txt", "a"); 144 logfile.Printf ("0x%16.16" PRIx64 ": func = %s, source =\n%s\n",
|
/freebsd-10.0-release/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-10.0-release/crypto/heimdal/lib/asn1/ |
H A D | gen_locl.h | 94 extern FILE *privheaderfile, *headerfile, *codefile, *logfile, *templatefile;
|
H A D | gen.c | 40 FILE *privheaderfile, *headerfile, *codefile, *logfile, *templatefile; variable 247 logfile = fopen(fn, "w"); 248 if (logfile == NULL) 293 if (logfile) 294 fprintf (logfile, "\n"); 295 fclose (logfile); 353 fprintf(logfile, "%s ", filename);
|
/freebsd-10.0-release/contrib/ntp/scripts/ |
H A D | ntp-groper | 25 logfile=/tmp/cntp-log$$ 91 # ) >> $logfile
|
/freebsd-10.0-release/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-10.0-release/contrib/amd/libamu/ |
H A D | xutil.c | 314 * Output the time of day and hostname to the logfile 671 * logfile can be "syslog", "syslog:daemon", "syslog:local7", etc. 674 get_syslog_facility(const char *logfile) argument 679 facstr = strchr(logfile, ':'); 769 * Change current logfile 772 switch_to_logfile(char *logfile, int old_umask, int truncate_log) argument 776 if (logfile) { 781 if (STREQ(logfile, "/dev/stderr")) 783 else if (NSTREQ(logfile, "syslog", strlen("syslog"))) { 794 , get_syslog_facility(logfile) [all...] |
/freebsd-10.0-release/contrib/less/ |
H A D | edit.c | 36 extern int logfile; 777 logfile = creat(filename, 0644); 783 logfile = open(filename, OPEN_APPEND); 784 if (lseek(logfile, (off_t)0, SEEK_END) == BAD_LSEEK) 786 close(logfile); 787 logfile = -1; 807 if (logfile < 0) 810 * Error in opening logfile. 818 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); 388 * Close the logfile. 396 if (logfile < 0) 401 ierror("Finishing logfile", NULL_PARG); 406 close(logfile); 407 logfile = -1; 434 write(logfile, (char *) bp->data, bp->datasize);
|
H A D | optfunc.c | 56 extern int logfile; 98 if (logfile >= 0) 109 if (logfile < 0)
|
/freebsd-10.0-release/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-10.0-release/contrib/atf/ |
H A D | Makefile.am | 85 logfile=$$(pwd)/installcheck.log; \ 90 cat $${fifofile} | tee $${logfile} | $(TESTS_ENVIRONMENT) atf-report & \
|
/freebsd-10.0-release/contrib/amd/hlfsd/ |
H A D | hlfsd.c | 83 char *logfile = DEFAULT_LOGFILE; variable 113 fprintf(stderr, "\t[-i interval] [-l logfile] [-o mntopts] [-P passwdfile]\n"); 223 logfile = optarg; 320 if (logfile) 321 switch_to_logfile(logfile, orig_umask, 0); 798 if (signum == SIGHUP && logfile) 799 switch_to_logfile(logfile, orig_umask, 0); 907 if (logfile && !STREQ(logfile, "stderr")) {
|
/freebsd-10.0-release/crypto/openssh/ |
H A D | log.c | 351 log_redirect_stderr_to(const char *logfile) argument 355 if ((fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, 0600)) == -1) { 356 fprintf(stderr, "Couldn't open logfile %s: %s\n", logfile,
|
/freebsd-10.0-release/tools/regression/fsx/ |
H A D | fsx.c | 934 char logfile[1024]; local 937 logfile[0] = 0; 1040 strncpy(logfile, optarg, sizeof(logfile)); 1041 strcat(logfile, "/"); 1096 strncat(logfile, fname, 256); 1097 strcat (logfile, ".fsxlog"); 1098 fsxlogf = fopen(logfile, "w"); 1100 prterr(logfile);
|
/freebsd-10.0-release/contrib/amd/amd/ |
H A D | get_args.c | 137 \t[-k kernel_arch] [-l logfile%s\n\ 212 gopt.logfile = optarg; 432 if (switch_to_logfile(gopt.logfile, orig_umask, 434 plog(XLOG_USER, "Cannot switch logfile");
|
H A D | amq_subr.c | 139 if (gopt.logfile && opt->as_str 140 && STREQ(gopt.logfile, opt->as_str)) {
|
/freebsd-10.0-release/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...] |
/freebsd-10.0-release/crypto/heimdal/appl/gssmask/ |
H A D | gssmaestro.c | 37 static FILE *logfile; variable 590 fprintf(logfile, "%s:%lu: %s\n", 592 fflush(logfile); 669 if (logfile) { 688 fclose(logfile); 788 printf("open logfile %s\n", logfile_str); 789 logfile = fopen(logfile_str, "w+"); 790 if (logfile == NULL)
|
/freebsd-10.0-release/lib/libkse/test/ |
H A D | mutex_d.c | 169 static FILE *logfile; variable 206 fprintf (logfile, "FAIL: "); 207 vfprintf (logfile, fmt, ap); 216 fprintf (logfile, "PASS\n"); 229 vfprintf (logfile, fmt, ap); 240 vfprintf (logfile, fmt, ap); 1442 logfile = stdout;
|
/freebsd-10.0-release/contrib/unbound/smallapp/ |
H A D | unbound-checkconf.c | 369 if(cfg->logfile && cfg->logfile[0]) { 370 char* ad = fname_after_chroot(cfg->logfile, cfg, 1); 373 fatal_exit("logfile directory does not exist");
|