Searched refs:logfile (Results 1 - 25 of 48) sorted by relevance

12

/freebsd-9.3-release/usr.sbin/pw/
H A Dpw_log.c36 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) {
63 vfprintf(logfile, nfmt, argp);
65 fflush(logfile);
H A Dpw.h82 char *logfile; /* Where to log changes */ member in struct:userconf
/freebsd-9.3-release/contrib/cvs/contrib/
H A Dmfpipe.in95 $logfile = "$cvsroot/LOG/$file";
96 open(FILE, ">> $logfile") || die "Opening $logfile: $!\n";
99 print FILE "$whoami $date--------BEGIN LOG ENTRY-------------\n" if ($logfile);
102 print FILE $log if ($log && $logfile);
104 print FILE $_ if ($logfile);
H A Dsccs2rcs.in100 set logfile = /tmp/sccs2rcs_$$_log
101 rm -f $logfile
227 sccs edit -r$rev $file >>& $logfile
252 ci -f -r$rev -d"$date" -w$author -t$emptyfile $file < $initialfile >>& $logfile
259 ci -f -r$rev -d"$date" -w$author -t$tmpfile $file < $initialfile >>& $logfile
268 rcs -l$lckrev $file >>& $logfile
271 rcs -l $file >>& $logfile
278 ed $tmpfile >>& $logfile <<EOF
284 ci -f -r$rev -d"$date" -w$author $file < $tmpfile >>& $logfile
288 sccs unedit $file >>& $logfile
[all...]
H A Dlog.in34 # XXX: FIXME: handle multiple '-f logfile' arguments
39 # Usage: log.pl [-u user] [[-m mailto] ...] [-s] [-V] -f logfile 'dirname file ...'
46 # -f logfile - for the logfile to append to (mandatory,
47 # but only one logfile can be specified).
100 my $logfile;
113 ($logfile) && die "Too many '-f' args";
114 $logfile = shift @ARGV;
149 my $logfh = new IO::File ">>" . $logfile
150 or die "Could not open(" . $logfile
[all...]
H A Drcs2sccs.sh23 logfile=/tmp/rcs2sccs_$$_log
24 rm -f $logfile
81 co -r$rev $file >> $logfile 2>&1
103 sccs admin -n -i$file $file < $commentfile >> $logfile 2>&1
113 sccs admin -fb $file 2>>$logfile
115 sccs get -e -p -r$brev $file >/dev/null 2>>$logfile
119 sccs get -e -p $file >/dev/null 2>> $logfile
126 sccs delta $file < $commentfile >> $logfile 2>&1
/freebsd-9.3-release/contrib/ntp/sntp/
H A Dlog.c26 const char *logfile
29 change_logfile(logfile, FALSE);
H A Dlog.h23 void open_logfile(const char *logfile);
/freebsd-9.3-release/release/picobsd/tinyware/simple_httpd/
H A Dsimple_httpd.c58 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-9.3-release/contrib/amd/scripts/
H A Dtest-attrcache.in23 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-9.3-release/contrib/ntp/lib/isc/tests/
H A Disctest.c94 isc_test_begin(FILE *logfile, isc_boolean_t start_managers) { argument
104 if (logfile != NULL) {
112 destination.file.stream = logfile;
H A Disctest.h51 isc_test_begin(FILE *logfile, isc_boolean_t start_managers);
/freebsd-9.3-release/crypto/heimdal/lib/asn1/
H A Dgen_locl.h83 extern FILE *headerfile, *codefile, *logfile;
H A Dgen.c38 FILE *headerfile, *codefile, *logfile; variable
175 logfile = fopen(fn, "w");
176 if (logfile == NULL)
186 fprintf (logfile, "\n");
187 fclose (logfile);
246 fprintf(logfile, "%s ", filename);
/freebsd-9.3-release/contrib/ntp/scripts/deprecated/
H A Dntp-groper25 logfile=/tmp/cntp-log$$
91 # ) >> $logfile
/freebsd-9.3-release/contrib/ntp/scripts/monitoring/
H A Dntploopstat15 ;# 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-9.3-release/contrib/amd/libamu/
H A Dxutil.c314 * 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-9.3-release/contrib/less/
H A Dedit.c36 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 Dch.c136 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 Doptfunc.c56 extern int logfile;
98 if (logfile >= 0)
109 if (logfile < 0)
/freebsd-9.3-release/contrib/libreadline/examples/rlfe/
H A Drlfe.c136 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-9.3-release/contrib/amd/hlfsd/
H A Dhlfsd.c83 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-9.3-release/crypto/openssh/
H A Dlog.c351 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-9.3-release/tools/regression/fsx/
H A Dfsx.c995 char logfile[1024]; local
998 logfile[0] = 0;
1110 strncpy(logfile, optarg, sizeof(logfile));
1111 strcat(logfile, "/");
1171 strncat(logfile, fname, 256);
1172 strcat (logfile, ".fsxlog");
1173 fsxlogf = fopen(logfile, "w");
1175 prterr(logfile);
/freebsd-9.3-release/contrib/amd/amd/
H A Dget_args.c137 \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");

Completed in 158 milliseconds

12