Lines Matching refs:toybuf
86 if ((len = readall(fd, toybuf, sizeof(toybuf)-1)) < 0) { in dump_proc_data()
90 toybuf[len] = '\0'; in dump_proc_data()
92 fputs(toybuf, fp); in dump_proc_data()
94 if ((ptr = strchr(toybuf, '('))) { in dump_proc_data()
133 sscanf(ptr, "%s", toybuf); // string will come with double quotes. in parse_config_file()
134 if (!(strncmp(toybuf+1, "on", strlen("on"))) || in parse_config_file()
135 !(strncmp(toybuf+1, "yes", strlen("yes")))) TT.proc_accounting = 1; in parse_config_file()
222 memset(toybuf, 0, sizeof(toybuf)); in stop_logging()
223 strftime(toybuf, sizeof(toybuf), "%a %b %e %H:%M:%S %Z %Y", &st); in stop_logging()
225 fprintf(hdr_fp, "title = Boot chart for %s (%s)\n", host_name, toybuf); in stop_logging()
229 memset(toybuf, 0, sizeof(toybuf)); in stop_logging()
233 if ((len = readall(kcmd_line_fd, toybuf, sizeof(toybuf)-1)) > 0) { in stop_logging()
234 toybuf[len] = 0; in stop_logging()
235 while (--len >= 0 && !toybuf[len]) continue; in stop_logging()
236 for (; len > 0; len--) if (toybuf[len] < ' ') toybuf[len] = ' '; in stop_logging()
237 } else *toybuf = 0; in stop_logging()
239 fprintf(hdr_fp, "system.kernel.options = %s", toybuf); in stop_logging()
242 memset(toybuf, 0, sizeof(toybuf)); in stop_logging()
243 snprintf(toybuf, sizeof(toybuf), "tar -zcf /var/log/bootlog.tgz header %s *.log", in stop_logging()
245 system(toybuf); in stop_logging()
288 memset(toybuf, 0, sizeof(toybuf)); in bootchartd_main()