Lines Matching refs:lp
56 static void prlog(FILE *log, struct log_ctl *lp, char *dp, int flag);
58 static FILE *logfile(FILE *log, struct log_ctl *lp);
59 static void prlog(FILE *log, struct log_ctl *lp, char *dp, int flag);
75 logfile(FILE *log, struct log_ctl *lp)
81 newtime = lp->ttime - timezone;
90 makefile(errfile, lp->ttime);
111 struct log_ctl *lp;
150 lp = (struct log_ctl *)cbuf;
151 log = logfile(log, lp);
156 prlog(log, lp, dbuf, 1);
160 if (!(lp->flags & SL_NOTIFY)) continue;
165 prlog(pfile, lp, dbuf, 0);
174 prlog(FILE *log, struct log_ctl *lp, char *dp, int flag)
177 time_t t = (time_t)lp->ttime;
182 fprintf(log, "%06d %s %08x %s%s%s ", lp->seq_no, (ts+11),
183 lp->ltime,
184 ((lp->flags & SL_FATAL) ? "F" : "."),
185 ((lp->flags & SL_NOTIFY) ? "N" : "."),
186 ((lp->flags & SL_TRACE) ? "T" : "."));
187 fprintf(log, "%d %d %s\n", lp->mid, lp->sid, dp);
189 fprintf(log, "%06d %s\n", lp->seq_no, dp);