Lines Matching refs:toybuf
85 if ((len = readall(fd, toybuf, sizeof(toybuf)-1)) < 0) { in dump_proc_data()
89 toybuf[len] = '\0'; in dump_proc_data()
91 fputs(toybuf, fp); in dump_proc_data()
93 if ((ptr = strchr(toybuf, '('))) { in dump_proc_data()
132 sscanf(ptr, "%s", toybuf); // string will come with double quotes. in parse_config_file()
133 if (!(strncmp(toybuf+1, "on", strlen("on"))) || in parse_config_file()
134 !(strncmp(toybuf+1, "yes", strlen("yes")))) TT.proc_accounting = 1; in parse_config_file()
221 memset(toybuf, 0, sizeof(toybuf)); in stop_logging()
222 strftime(toybuf, sizeof(toybuf), "%a %b %e %H:%M:%S %Z %Y", &st); in stop_logging()
224 fprintf(hdr_fp, "title = Boot chart for %s (%s)\n", host_name, toybuf); in stop_logging()
228 memset(toybuf, 0, sizeof(toybuf)); in stop_logging()
232 if ((len = readall(kcmd_line_fd, toybuf, sizeof(toybuf)-1)) > 0) { in stop_logging()
233 toybuf[len] = 0; in stop_logging()
234 while (--len >= 0 && !toybuf[len]) continue; in stop_logging()
235 for (; len > 0; len--) if (toybuf[len] < ' ') toybuf[len] = ' '; in stop_logging()
236 } else *toybuf = 0; in stop_logging()
238 fprintf(hdr_fp, "system.kernel.options = %s", toybuf); in stop_logging()
241 memset(toybuf, 0, sizeof(toybuf)); in stop_logging()
242 snprintf(toybuf, sizeof(toybuf), "tar -zcf /var/log/bootlog.tgz header %s *.log", in stop_logging()
244 system(toybuf); in stop_logging()
287 memset(toybuf, 0, sizeof(toybuf)); in bootchartd_main()