• Home
  • Raw
  • Download

Lines Matching refs:filename

116         char* filename = nameBufSize <= (int)sizeof(filenameBuf)  in read_snapshot_file()  local
119 amt = read(fd, filename, nameBufSize); in read_snapshot_file()
121 snapshot->add(String8(filename, file.nameLen), file); in read_snapshot_file()
124 if (filename != filenameBuf) { in read_snapshot_file()
125 free(filename); in read_snapshot_file()
742 RestoreHelperBase::WriteFile(const String8& filename, BackupDataReader* in) in WriteFile() argument
765 ALOGW("Could not read metadata for %s -- %ld / %s", filename.string(), in WriteFile()
782 fd = open(filename.string(), O_CREAT|O_RDWR|O_TRUNC, mode); in WriteFile()
784 ALOGW("Could not open file %s -- %s", filename.string(), strerror(errno)); in WriteFile()
792 ALOGW("Error '%s' writing '%s'", strerror(errno), filename.string()); in WriteFile()
801 err = stat(filename.string(), &st); in WriteFile()
803 ALOGW("Error stating file that we just created %s", filename.string()); in WriteFile()
807 r.file = filename; in WriteFile()
909 const char* filename = SCRATCH_DIR "backup_helper_test_empty.snap"; in backup_helper_test_empty() local
915 fd = creat(filename, 0666); in backup_helper_test_empty()
917 fprintf(stderr, "error creating %s\n", filename); in backup_helper_test_empty()
935 err = compare_file(filename, correct_data, sizeof(correct_data)); in backup_helper_test_empty()
941 fd = open(filename, O_RDONLY); in backup_helper_test_empty()
943 fprintf(stderr, "error opening for read %s\n", filename); in backup_helper_test_empty()
968 const char* filename = SCRATCH_DIR "backup_helper_test_four.snap"; in backup_helper_test_four() local
974 fd = creat(filename, 0666); in backup_helper_test_four()
976 fprintf(stderr, "error opening %s\n", filename); in backup_helper_test_four()
1071 err = compare_file(filename, correct_data, sizeof(correct_data)); in backup_helper_test_four()
1077 fd = open(filename, O_RDONLY); in backup_helper_test_four()
1079 fprintf(stderr, "error opening for read %s\n", filename); in backup_helper_test_four()
1169 const char* filename = SCRATCH_DIR "data_writer.data"; in backup_helper_test_data_writer() local
1175 fd = creat(filename, 0666); in backup_helper_test_data_writer()
1191 err = compare_file(filename, DATA_GOLDEN_FILE, DATA_GOLDEN_FILE_SIZE); in backup_helper_test_data_writer()
1274 const char* filename = SCRATCH_DIR "data_reader.data"; in backup_helper_test_data_reader() local
1280 fd = creat(filename, 0666); in backup_helper_test_data_reader()
1288 fprintf(stderr, "Error \"%s\" writing golden file %s\n", strerror(errno), filename); in backup_helper_test_data_reader()
1294 fd = open(filename, O_RDONLY); in backup_helper_test_data_reader()
1297 filename); in backup_helper_test_data_reader()
1329 get_mod_time(const char* filename, struct timeval times[2]) in get_mod_time() argument
1333 err = stat64(filename, &st); in get_mod_time()
1335 fprintf(stderr, "stat '%s' failed: %s\n", filename, strerror(errno)); in get_mod_time()