Lines Matching refs:log
54 static void prlog(FILE *log, struct log_ctl *lp, char *dp, int flag);
56 static FILE *logfile(FILE *log, struct log_ctl *lp);
57 static void prlog(FILE *log, struct log_ctl *lp, char *dp, int flag);
73 logfile(FILE *log, struct log_ctl *lp) in logfile() argument
84 if (((newtime/NSECDAY) != (lasttime/NSECDAY)) || !log) { in logfile()
85 if (log) in logfile()
86 (void) fclose(log); in logfile()
92 return (log); in logfile()
111 FILE *log; in main() local
144 log = NULL; in main()
149 log = logfile(log, lp); in main()
150 if (log == NULL) { in main()
154 prlog(log, lp, dbuf, 1); in main()
155 (void) fflush(log); in main()
172 prlog(FILE *log, struct log_ctl *lp, char *dp, int flag) in prlog() argument
180 fprintf(log, "%06d %s %08x %s%s%s ", lp->seq_no, (ts+11), in prlog()
185 fprintf(log, "%d %d %s\n", lp->mid, lp->sid, dp); in prlog()
187 fprintf(log, "%06d %s\n", lp->seq_no, dp); in prlog()