Lines Matching refs:toybuf
70 if ((len = readall(fd, toybuf, sizeof(toybuf)-1)) < 0) { in dump_proc_data()
74 toybuf[len] = '\0'; in dump_proc_data()
76 fputs(toybuf, fp); in dump_proc_data()
78 if ((ptr = strchr(toybuf, '('))) { in dump_proc_data()
197 memset(toybuf, 0, sizeof(toybuf)); in stop_logging()
198 strftime(toybuf, sizeof(toybuf), "%a %b %e %H:%M:%S %Z %Y", &st); in stop_logging()
200 fprintf(hdr_fp, "title = Boot chart for %s (%s)\n", host_name, toybuf); in stop_logging()
204 memset(toybuf, 0, sizeof(toybuf)); in stop_logging()
208 if ((len = readall(kcmd_line_fd, toybuf, sizeof(toybuf)-1)) > 0) { in stop_logging()
209 toybuf[len] = 0; in stop_logging()
210 while (--len >= 0 && !toybuf[len]) continue; in stop_logging()
211 for (; len > 0; len--) if (toybuf[len] < ' ') toybuf[len] = ' '; in stop_logging()
212 } else *toybuf = 0; in stop_logging()
214 fprintf(hdr_fp, "system.kernel.options = %s", toybuf); in stop_logging()
217 memset(toybuf, 0, sizeof(toybuf)); in stop_logging()
218 snprintf(toybuf, sizeof(toybuf), "tar -zcf /var/log/bootlog.tgz header %s *.log", in stop_logging()
220 system(toybuf); in stop_logging()
263 memset(toybuf, 0, sizeof(toybuf)); in bootchartd_main()