Lines Matching refs:file
6 lfs_file_open(&lfs, &file, "hello/hello", LFS_O_WRONLY | LFS_O_CREAT) => 0;
7 lfs_file_write(&lfs, &file, "hello", strlen("hello")) => strlen("hello");
8 lfs_file_close(&lfs, &file);
72 lfs_file_open(&lfs, &file, "hello/hello", LFS_O_RDONLY) => 0;
73 lfs_file_read(&lfs, &file, buffer, sizeof(buffer)) => strlen("hello");
75 lfs_file_close(&lfs, &file);
84 lfs_file_open(&lfs, &file, "hello/hello", LFS_O_WRONLY | LFS_O_CREAT) => 0;
85 lfs_file_write(&lfs, &file, "hello", strlen("hello")) => strlen("hello");
86 lfs_file_close(&lfs, &file);
149 lfs_file_open(&lfs, &file, "hello/hello", LFS_O_RDONLY) => 0;
150 lfs_file_read(&lfs, &file, buffer, sizeof(buffer)) => strlen("hello");
152 lfs_file_close(&lfs, &file);
156 [[case]] # set/get file attribute
161 lfs_file_open(&lfs, &file, "hello/hello", LFS_O_WRONLY | LFS_O_CREAT) => 0;
162 lfs_file_write(&lfs, &file, "hello", strlen("hello")) => strlen("hello");
163 lfs_file_close(&lfs, &file);
175 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_WRONLY, &cfg1) => 0;
179 lfs_file_close(&lfs, &file) => 0;
181 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_RDONLY, &cfg1) => 0;
182 lfs_file_close(&lfs, &file) => 0;
188 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_WRONLY, &cfg1) => 0;
189 lfs_file_close(&lfs, &file) => 0;
192 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_RDONLY, &cfg1) => 0;
193 lfs_file_close(&lfs, &file) => 0;
199 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_WRONLY, &cfg1) => 0;
201 lfs_file_close(&lfs, &file) => 0;
204 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_RDONLY, &cfg1) => 0;
205 lfs_file_close(&lfs, &file) => 0;
211 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_WRONLY, &cfg1) => 0;
213 lfs_file_close(&lfs, &file) => 0;
216 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_RDONLY, &cfg1) => 0;
217 lfs_file_close(&lfs, &file) => 0;
223 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_WRONLY, &cfg1)
232 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_RDWR, &cfg2) => 0;
234 lfs_file_close(&lfs, &file) => 0;
236 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_RDONLY, &cfg1) => 0;
237 lfs_file_close(&lfs, &file) => 0;
250 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_RDONLY, &cfg3) => 0;
251 lfs_file_close(&lfs, &file) => 0;
256 lfs_file_open(&lfs, &file, "hello/hello", LFS_O_RDONLY) => 0;
257 lfs_file_read(&lfs, &file, buffer, sizeof(buffer)) => strlen("hello");
259 lfs_file_close(&lfs, &file);
263 [[case]] # deferred file attributes
268 lfs_file_open(&lfs, &file, "hello/hello", LFS_O_WRONLY | LFS_O_CREAT) => 0;
269 lfs_file_write(&lfs, &file, "hello", strlen("hello")) => strlen("hello");
270 lfs_file_close(&lfs, &file);
285 lfs_file_opencfg(&lfs, &file, "hello/hello", LFS_O_WRONLY, &cfg1) => 0;
294 lfs_file_sync(&lfs, &file) => 0;
302 lfs_file_close(&lfs, &file) => 0;