Lines Matching refs:file
28 lfs_file_open(&lfs, &file, path,
33 lfs_ssize_t res = lfs_file_write(&lfs, &file, &c, 1);
36 err = lfs_file_close(&lfs, &file);
43 err = lfs_file_close(&lfs, &file);
57 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
61 lfs_file_read(&lfs, &file, &r, 1) => 1;
65 lfs_file_close(&lfs, &file) => 0;
110 lfs_file_open(&lfs, &file, path,
115 lfs_ssize_t res = lfs_file_write(&lfs, &file, &c, 1);
118 err = lfs_file_close(&lfs, &file);
125 err = lfs_file_close(&lfs, &file);
139 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
143 lfs_file_read(&lfs, &file, &r, 1) => 1;
147 lfs_file_close(&lfs, &file) => 0;
201 lfs_file_open(&lfs, &file, path,
206 lfs_ssize_t res = lfs_file_write(&lfs, &file, &c, 1);
209 err = lfs_file_close(&lfs, &file);
216 err = lfs_file_close(&lfs, &file);
230 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
234 lfs_file_read(&lfs, &file, &r, 1) => 1;
238 lfs_file_close(&lfs, &file) => 0;
290 lfs_file_open(&lfs, &file, path,
295 lfs_ssize_t res = lfs_file_write(&lfs, &file, &c, 1);
298 err = lfs_file_close(&lfs, &file);
305 err = lfs_file_close(&lfs, &file);
319 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
323 lfs_file_read(&lfs, &file, &r, 1) => 1;
327 lfs_file_close(&lfs, &file) => 0;
375 lfs_file_open(&lfs, &file, path,
380 lfs_ssize_t res = lfs_file_write(&lfs, &file, &c, 1);
383 err = lfs_file_close(&lfs, &file);
390 err = lfs_file_close(&lfs, &file);
404 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
408 lfs_file_read(&lfs, &file, &r, 1) => 1;
412 lfs_file_close(&lfs, &file) => 0;