Lines Matching defs:lg
42 FILE *lg;
76 if ((lg = fopen(logfile, "w")) == NULL)
78 if (setvbuf(lg, NULL, _IOLBF, 0) != 0)
92 fprintf(lg, "openpty %s\n", ptyname);
118 fprintf(lg, "%s: started\n", getprogname());
127 fprintf(lg, ">>> ");
128 if (fwrite(buf, 1, n, lg) != (size_t)n)
131 fprintf(lg, "\n");
139 fprintf(lg, "EOF %s\n", ptyname);
164 fprintf(lg, "console %s on %s\n", console, tty);
172 fprintf(lg, "login %s %s\n", username, tty);
187 fprintf(lg, "console %s off\n", tty);
192 fprintf(lg, "logout %s\n", tty);
199 fprintf(lg, "signal timeout %d\n", sig);
207 fprintf(lg, "signal terminate %d\n", sig);
218 fprintf(lg, "signal iostdin %d\n", sig);
224 fprintf(lg, ">>> ");
225 if (fwrite(buf, 1, n, lg) != (size_t)n)
228 fprintf(lg, "\n");