Lines Matching defs:file
1 /* Copyright (c) 2016-2018 Dovecot authors, see the included COPYING file */
14 struct fs_file *file;
27 file = fs_file_init(fs, "foo", FS_OPEN_MODE_READONLY);
33 input = fs_read_stream(file, 2);
39 test_assert_idx(fs_stat(file, &st) == 0 && st.st_size == 20, i);
42 fs_file_deinit(&file);
60 test_begin("fs metawrap write empty file");
63 struct fs_file *file = fs_file_init(fs, "foo", FS_OPEN_MODE_REPLACE);
64 struct ostream *output = fs_write_stream(file);
65 test_assert(fs_write_stream_finish(file, &output) > 0);
66 fs_file_deinit(&file);