Lines Matching refs:file
45 struct fs_file_t file; in write_to_file() local
48 fs_file_t_init(&file); in write_to_file()
49 ret = fs_open(&file, file_path, FS_O_RDWR | FS_O_CREATE); in write_to_file()
52 ret = testfs_write_incrementing(&file, 0, bytes_to_write); in write_to_file()
56 ret = fs_close(&file); in write_to_file()
67 fs_file_t_init(&file); in write_to_file()
68 ret = fs_open(&file, file_path, FS_O_READ); in write_to_file()
72 ret = testfs_verify_incrementing(&file, 0, bytes_to_write); in write_to_file()
76 ret = fs_close(&file); in write_to_file()
83 struct fs_file_t file; in truncate_file() local
86 fs_file_t_init(&file); in truncate_file()
90 ret = fs_open(&file, file_path, FS_O_RDWR); in truncate_file()
93 ret = fs_truncate(&file, new_size); in truncate_file()
101 ret = fs_seek(&file, 0, FS_SEEK_SET); in truncate_file()
104 ret = testfs_verify_incrementing(&file, 0, new_size); in truncate_file()
108 ret = fs_close(&file); in truncate_file()