Lines Matching full:file
42 ChardevFile *file = backend->u.file.data; in qmp_chardev_open_file() local
48 if (file->in) { in qmp_chardev_open_file()
49 error_setg(errp, "input file not supported"); in qmp_chardev_open_file()
53 if (file->has_append && file->append) { in qmp_chardev_open_file()
54 /* Append to file if it already exists. */ in qmp_chardev_open_file()
58 /* Truncate file if it already exists. */ in qmp_chardev_open_file()
63 out = CreateFile(file->out, accessmode, FILE_SHARE_READ, NULL, flags, in qmp_chardev_open_file()
66 error_setg(errp, "open %s failed", file->out); in qmp_chardev_open_file()
75 if (file->has_append && file->append) { in qmp_chardev_open_file()
81 out = qmp_chardev_open_file_source(file->out, flags, errp); in qmp_chardev_open_file()
86 if (file->in) { in qmp_chardev_open_file()
88 in = qmp_chardev_open_file_source(file->in, flags, errp); in qmp_chardev_open_file()
104 ChardevFile *file; in qemu_chr_parse_file_out() local
108 error_setg(errp, "chardev: file: no filename given"); in qemu_chr_parse_file_out()
113 error_setg(errp, "chardev: file: input-path not supported on Windows"); in qemu_chr_parse_file_out()
117 file = backend->u.file.data = g_new0(ChardevFile, 1); in qemu_chr_parse_file_out()
118 qemu_chr_parse_common(opts, qapi_ChardevFile_base(file)); in qemu_chr_parse_file_out()
119 file->out = g_strdup(path); in qemu_chr_parse_file_out()
120 file->in = g_strdup(inpath); in qemu_chr_parse_file_out()
122 file->has_append = true; in qemu_chr_parse_file_out()
123 file->append = qemu_opt_get_bool(opts, "append", false); in qemu_chr_parse_file_out()