Lines Matching refs:toybuf
70 if ((len = readall(fd, toybuf, sizeof(toybuf)-1)) < 0) {
74 toybuf[len] = '\0';
76 fputs(toybuf, fp);
78 if ((ptr = strchr(toybuf, '('))) {
183 memset(toybuf, 0, sizeof(toybuf));
184 strftime(toybuf, sizeof(toybuf), "%a %b %e %H:%M:%S %Z %Y", &st);
186 fprintf(hdr_fp, "title = Boot chart for %s (%s)\n", host_name, toybuf);
190 memset(toybuf, 0, sizeof(toybuf));
194 if ((len = readall(kcmd_line_fd, toybuf, sizeof(toybuf)-1)) > 0) {
195 toybuf[len] = 0;
196 while (--len >= 0 && !toybuf[len]) continue;
197 for (; len > 0; len--) if (toybuf[len] < ' ') toybuf[len] = ' ';
198 } else *toybuf = 0;
200 fprintf(hdr_fp, "system.kernel.options = %s", toybuf);
203 memset(toybuf, 0, sizeof(toybuf));
204 snprintf(toybuf, sizeof(toybuf), "tar -zcf /var/log/bootlog.tgz header %s *.log",
206 system(toybuf);
249 memset(toybuf, 0, sizeof(toybuf));