Lines Matching refs:buf

138 	char buf[4096], tty_info[32];
312 ret = sprintf(buf, "%s:%s", fullname, path);
315 if (ret < 0 || ret >= sizeof(buf)) {
321 DECLARE_ARG(buf);
336 while (getmntent_r(mnts, &mntent, buf, sizeof(buf))) {
456 ret = snprintf(buf, sizeof(buf), "fd[%d]:%s", opts->console_fd, tty_info);
457 if (ret < 0 || ret >= sizeof(buf))
461 DECLARE_ARG(buf);
464 if (snprintf(buf, sizeof(buf), "console:%s", opts->console_name) < 0) {
468 DECLARE_ARG(buf);
474 ret = snprintf(buf, sizeof(buf), "apparmor:%s", lxc_conf->lsm_aa_profile);
476 ret = snprintf(buf, sizeof(buf), "selinux:%s", lxc_conf->lsm_se_context);
478 if (ret < 0 || ret >= sizeof(buf))
482 DECLARE_ARG(buf);
528 ret = snprintf(buf, sizeof(buf), fmt, eth, veth, n->link);
535 ret = snprintf(buf, sizeof(buf), fmt, eth, veth);
537 if (ret < 0 || ret >= sizeof(buf))
546 ret = snprintf(buf, sizeof(buf), "macvlan[%s]:%s", eth, n->link);
547 if (ret < 0 || ret >= sizeof(buf))
563 DECLARE_ARG(buf);
571 buf[0] = 0;
575 ret = snprintf(buf + pos, sizeof(buf) - pos, "%s ", argv[i]);
576 if (ret < 0 || ret >= sizeof(buf) - pos)
582 INFO("execing: %s", buf);
911 char buf[4096];
916 n = read(pipes[0], buf, sizeof(buf));
922 if (n == sizeof(buf))
924 buf[n] = 0;
926 ERROR("criu process exited %d, output:\n%s", WEXITSTATUS(status), buf);
929 ret = snprintf(buf, sizeof(buf), "/proc/self/task/%lu/children", (unsigned long)syscall(__NR_gettid));
930 if (ret < 0 || ret >= sizeof(buf)) {
935 FILE *f = fopen(buf, "r");
937 SYSERROR("couldn't read restore's children file %s", buf);
1112 char buf[4096];
1124 n = read(criuout[0], buf, sizeof(buf));
1130 buf[n] = 0;
1148 ERROR("criu output: %s", buf);