Lines Matching refs:filename
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()
328 int libxl_read_file_contents(libxl_ctx *ctx, const char *filename, in libxl_read_file_contents() argument
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()
351 LOGE(ERROR, "%s is not a plain file", filename); in libxl_read_file_contents()
357 LOG(ERROR, "file %s is far too large", filename); in libxl_read_file_contents()
371 LOGE(ERROR, "failed to read %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()
402 int libxl__read_sysfs_file_contents(libxl__gc *gc, const char *filename, in libxl__read_sysfs_file_contents() argument
412 f = fopen(filename, "r"); in libxl__read_sysfs_file_contents()
415 LOGE(ERROR, "failed to open %s", filename); in libxl__read_sysfs_file_contents()
420 LOGE(ERROR, "failed to fstat %s", filename); in libxl__read_sysfs_file_contents()
425 LOGE(ERROR, "%s is not a plain file", filename); in libxl__read_sysfs_file_contents()
431 LOG(ERROR, "file %s is far too large", filename); in libxl__read_sysfs_file_contents()
448 LOGE(ERROR, "failed to read %s", filename); in libxl__read_sysfs_file_contents()
459 LOGE(ERROR, "failed to close %s", filename); in libxl__read_sysfs_file_contents()