/xen/tools/misc/ |
A D | xen-ucode.c | 18 char *filename, *buf; in main() local 31 filename = argv[1]; in main() 32 fd = open(filename, O_RDONLY); in main() 36 filename, strerror(errno)); in main() 43 filename, strerror(errno)); in main()
|
A D | xen-livepatch.c | 195 char *filename; in upload_func() local 211 filename = argv[1]; in upload_func() 212 fd = open(filename, O_RDONLY); in upload_func() 218 filename, saved_errno, strerror(saved_errno)); in upload_func() 221 if ( stat(filename, &buf) != 0 ) in upload_func() 226 filename, saved_errno, strerror(saved_errno)); in upload_func() 238 filename, saved_errno, strerror(saved_errno)); in upload_func() 242 printf("Uploading %s... ", filename); in upload_func() 258 filename, errno, strerror(errno)); in upload_func()
|
A D | xen-detect.c | 122 static bool check_dir(const char *filename) in check_dir() argument 128 f = fopen(filename, "r"); in check_dir() 137 static char *read_file_content(const char *filename) in read_file_content() argument 144 f = fopen(filename, "r"); in read_file_content()
|
A D | xenpvnetboot | 87 def get_file(self, filename): argument 88 url = os.path.join(self.srcdir, filename) 90 … local_name = os.path.join(self.tmpdir, 'xenpvboot.%s.%s' % (os.path.basename(filename), suffix)) 148 def get_file(self, filename): argument 156 … local_name = os.path.join(self.tmpdir, 'xenpvboot.%s.%s' % (os.path.basename(filename), suffix)) 157 cmd = '/usr/bin/tftp %s -c get %s %s' % (host, os.path.join(basedir, filename), local_name)
|
/xen/tools/xl/ |
A D | xl_misc.c | 239 static void core_dump_domain(uint32_t domid, const char *filename) in core_dump_domain() argument 243 rc=libxl_domain_core_dump(ctx, domid, filename, NULL); in core_dump_domain() 265 const char *filename = NULL; in main_config_update() local 290 filename = argv[1]; in main_config_update() 299 filename = optarg; in main_config_update() 307 } else if (!filename) { in main_config_update() 308 filename = argv[optind]; in main_config_update() 315 if (filename) { in main_config_update() 317 rc = libxl_read_file_contents(ctx, filename, in main_config_update() 320 filename, strerror(errno)); in main_config_update() [all …]
|
A D | xl_saverestore.c | 127 const char *filename, int checkpoint, in save_domain() argument 141 fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC, 0644); in save_domain() 143 fprintf(stderr, "Failed to open temp file %s for writing\n", filename); in save_domain() 147 save_domain_core_writeconfig(fd, filename, config_data, config_len); in save_domain() 239 const char *filename; in main_save() local 264 filename = argv[optind + 1]; in main_save() 268 save_domain(domid, preserve_domid, filename, checkpoint, leavepaused, in main_save()
|
A D | xl_cpupool.c | 29 const char *filename = NULL, *config_src=NULL; in main_cpupoolcreate() local 57 filename = optarg; in main_cpupoolcreate() 71 } else if (!filename) { in main_cpupoolcreate() 72 filename = argv[optind]; in main_cpupoolcreate() 80 if (filename) in main_cpupoolcreate() 82 if (libxl_read_file_contents(ctx, filename, (void **)&config_data, in main_cpupoolcreate() 85 filename, strerror(errno)); in main_cpupoolcreate() 88 config_src=filename; in main_cpupoolcreate() 124 else if (filename) in main_cpupoolcreate() 125 name = libxl_basename(filename); in main_cpupoolcreate()
|
/xen/tools/hotplug/Linux/ |
A D | external-device-migrate | 56 local step host domname typ recover filename func stype 81 filename="$dir/$typ$stype-migration.sh" 82 if [ ! -r $filename ]; then 83 echo "Error: Could not find script '$filename'" 86 . "$filename"
|
/xen/tools/libfsimage/fat/ |
A D | fsys_fat.c | 279 char *filename = (char *) NAME_BUF; in fat_dir() local 381 filename[slot * 13] = 0; in fat_dir() 396 filename[offset+i] = dir_buf[longdir_pos[i]]; in fat_dir() 419 if (substring (dirname, filename) == 0) in fat_dir() 428 for (i = 0; i < 8 && (c = filename[i] = tolower ((uint8_t)dir_buf[i])) in fat_dir() 431 filename[i++] = '.'; in fat_dir() 433 for (j = 0; j < 3 && (c = filename[i + j] = tolower ((uint8_t)dir_buf[8 + j])) in fat_dir() 439 filename[i + j] = 0; in fat_dir() 446 if (substring (dirname, filename) <= 0) in fat_dir() 450 print_a_completion (filename); in fat_dir() [all …]
|
/xen/tools/libxc/ |
A D | xg_private.c | 27 const char *filename, unsigned long *size) in xc_read_image() argument 34 if ( (filename == NULL) || (size == NULL) ) in xc_read_image() 37 if ( (kernel_fd = open(filename, O_RDONLY)) < 0 ) in xc_read_image() 39 PERROR("Could not open kernel image '%s'", filename); in xc_read_image()
|
A D | xc_dom_core.c | 197 const char *filename, size_t * size, in xc_dom_malloc_filemap() argument 204 fd = open(filename, O_RDONLY); in xc_dom_malloc_filemap() 208 filename, strerror(errno)); in xc_dom_malloc_filemap() 216 filename, strerror(errno)); in xc_dom_malloc_filemap() 232 "'%s': zero length file", filename); in xc_dom_malloc_filemap() 251 filename, strerror(errno)); in xc_dom_malloc_filemap() 269 DOMPRINTF("%s: failed (on file `%s')", __FUNCTION__, filename); in xc_dom_malloc_filemap() 807 DOMPRINTF("%s: filename=\"%s\"", __FUNCTION__, filename); in xc_dom_kernel_file() 819 DOMPRINTF("%s: filename=\"%s\"", __FUNCTION__, filename); in xc_dom_module_file() 845 DOMPRINTF("%s: filename=\"%s\"", __FUNCTION__, filename); in xc_dom_devicetree_file() [all …]
|
/xen/tools/libxl/ |
A D | libxl_utils.c | 28 const char *filename; in libxl_basename() local 34 filename = strrchr(name, '/'); in libxl_basename() 35 if (filename) in libxl_basename() 36 return strdup(filename+1); in libxl_basename() 338 f = fopen(filename, "r"); in libxl_read_file_contents() 341 LOGE(ERROR, "failed to open %s", filename); in libxl_read_file_contents() 346 LOGE(ERROR, "failed to fstat %s", filename); in libxl_read_file_contents() 374 filename); in libxl_read_file_contents() 383 LOGE(ERROR, "failed to close %s", filename); in libxl_read_file_contents() 412 f = fopen(filename, "r"); in libxl__read_sysfs_file_contents() [all …]
|
A D | libxl_dom.c | 829 LOG(DEBUG, "Loading %s: %s", what, filename); in libxl__load_hvm_firmware_module() 1291 const char *filename; in libxl__userdata_store() local 1297 if (!filename) { in libxl__userdata_store() 1303 rc = userdata_delete(gc, filename); in libxl__userdata_store() 1328 if (rename(newfilename, filename)) in libxl__userdata_store() 1376 const char *filename; in libxl__userdata_retrieve() local 1382 if (!filename) { in libxl__userdata_retrieve() 1393 LOG(ERROR, "userdata file %s is empty", filename); in libxl__userdata_retrieve() 1441 const char *filename; in libxl_userdata_unlink() local 1450 if (!filename) { in libxl_userdata_unlink() [all …]
|
A D | libxl_utils.h | 42 int libxl_read_file_contents(libxl_ctx *ctx, const char *filename, 52 const char *filename, const char *what); 54 ssize_t sz, const char *filename, const char *what);
|
/xen/xen/tools/kconfig/tests/preprocess/builtin_func/ |
A D | Kconfig | 24 # 'filename' is expanded to the currently parsed file name, 26 $(warning,filename=$(filename))
|
A D | expected_stderr | 4 Kconfig:26: filename=Kconfig
|
/xen/tools/libfsimage/zfs/ |
A D | fsi_zfs.c | 62 extern int zfs_open(char *filename); 92 fsi_zfs_open(fsi_file_t *ffi, char *filename) in fsi_zfs_open() argument 103 rc = zfs_open(filename); in fsi_zfs_open()
|
/xen/tools/pygrub/src/ |
A D | LiloConf.py | 92 self.filename = fn 102 if self.filename is None: 105 f = open(self.filename, 'r') 111 path = os.path.dirname(self.filename)
|
A D | ExtLinuxConf.py | 125 self.filename = fn 141 if self.filename is None: 144 f = open(self.filename, 'r') 150 path = os.path.dirname(self.filename)
|
/xen/xen/tools/kconfig/ |
A D | mconf.c | 295 static char filename[PATH_MAX+1]; variable 307 size = snprintf(filename, sizeof(filename), "%s", config_filename); in set_config_filename() 308 if (size >= sizeof(filename)) in set_config_filename() 309 filename[sizeof(filename)-1] = '\0'; in set_config_filename() 903 11, 55, filename); in conf_load() 930 11, 55, filename); in conf_save() 969 if (conf_write(filename)) { in handle_exit()
|
/xen/tools/ocaml/xenstored/ |
A D | config.ml | 76 let parse filename = 77 let stream = open_in filename in 109 (** read a filename, parse and validate, and return the errors if any *) 110 let read filename expected other = 111 let cf = parse filename in
|
/xen/docs/misc/ |
A D | efi.pandoc | 31 order.) One can override this with a command line option (`-cfg=<filename>`). 72 ###`kernel=<filename>[ <options>]` 82 ###`ramdisk=<filename>` 93 ###`xsm=<filename>` 97 ###`ucode=<filename>` 101 ###`dtb=<filename>` 108 ###`chain=<filename>`
|
/xen/xen/tools/ |
A D | symbols.c | 88 static char *filename; in read_symbol() local 131 free(filename); in read_symbol() 132 filename = *str ? strdup(str) : NULL; in read_symbol() 176 if (islower(stype) && filename) in read_symbol() 177 s->len += strlen(filename) + 1; in read_symbol() 180 if (islower(stype) && filename) { in read_symbol() 181 sym = stpcpy(sym, filename); in read_symbol()
|
/xen/tools/xenpaging/ |
A D | xenpaging.c | 43 static char *filename; variable 48 if ( filename && filename[0] ) in unlink_pagefile() 50 unlink(filename); in unlink_pagefile() 51 filename[0] = '\0'; in unlink_pagefile() 235 free(filename); in xenpaging_getopts() 236 filename = strdup(optarg); in xenpaging_getopts() 258 if ( !filename ) in xenpaging_getopts() 477 paging->fd = open(filename, O_CREAT | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); in xenpaging_init() 873 argv[0], paging->vm_event.domain_id, filename); in main()
|
/xen/xen/common/coverage/ |
A D | gcc_4_7.c | 91 const char *filename; member 138 return info->filename; in gcov_info_filename()
|