Lines Matching full:lfs
12 lfs_format(&lfs, &cfg) => 0;
13 lfs_mount(&lfs, &cfg) => 0;
14 lfs_file_open(&lfs, &file, "kitty",
19 lfs_file_write(&lfs, &file, buffer, size);
21 lfs_file_close(&lfs, &file) => 0;
22 lfs_unmount(&lfs) => 0;
24 lfs_mount(&lfs, &cfg) => 0;
25 lfs_file_open(&lfs, &file, "kitty", LFS_O_RDONLY) => 0;
30 lfs_file_read(&lfs, &file, buffer, size) => size;
32 pos = lfs_file_tell(&lfs, &file);
36 lfs_file_seek(&lfs, &file, pos, LFS_SEEK_SET) => pos;
37 lfs_file_read(&lfs, &file, buffer, size) => size;
40 lfs_file_rewind(&lfs, &file) => 0;
41 lfs_file_read(&lfs, &file, buffer, size) => size;
44 lfs_file_seek(&lfs, &file, 0, LFS_SEEK_CUR) => size;
45 lfs_file_read(&lfs, &file, buffer, size) => size;
48 lfs_file_seek(&lfs, &file, size, LFS_SEEK_CUR) => 3*size;
49 lfs_file_read(&lfs, &file, buffer, size) => size;
52 lfs_file_seek(&lfs, &file, pos, LFS_SEEK_SET) => pos;
53 lfs_file_read(&lfs, &file, buffer, size) => size;
56 lfs_file_seek(&lfs, &file, -size, LFS_SEEK_CUR) => pos;
57 lfs_file_read(&lfs, &file, buffer, size) => size;
60 lfs_file_seek(&lfs, &file, -size, LFS_SEEK_END) >= 0 => 1;
61 lfs_file_read(&lfs, &file, buffer, size) => size;
64 size = lfs_file_size(&lfs, &file);
65 lfs_file_seek(&lfs, &file, 0, LFS_SEEK_CUR) => size;
67 lfs_file_close(&lfs, &file) => 0;
68 lfs_unmount(&lfs) => 0;
81 lfs_format(&lfs, &cfg) => 0;
82 lfs_mount(&lfs, &cfg) => 0;
83 lfs_file_open(&lfs, &file, "kitty",
88 lfs_file_write(&lfs, &file, buffer, size);
90 lfs_file_close(&lfs, &file) => 0;
91 lfs_unmount(&lfs) => 0;
93 lfs_mount(&lfs, &cfg) => 0;
94 lfs_file_open(&lfs, &file, "kitty", LFS_O_RDWR) => 0;
99 lfs_file_read(&lfs, &file, buffer, size) => size;
101 pos = lfs_file_tell(&lfs, &file);
106 lfs_file_seek(&lfs, &file, pos, LFS_SEEK_SET) => pos;
107 lfs_file_write(&lfs, &file, buffer, size) => size;
109 lfs_file_seek(&lfs, &file, pos, LFS_SEEK_SET) => pos;
110 lfs_file_read(&lfs, &file, buffer, size) => size;
113 lfs_file_rewind(&lfs, &file) => 0;
114 lfs_file_read(&lfs, &file, buffer, size) => size;
117 lfs_file_seek(&lfs, &file, pos, LFS_SEEK_SET) => pos;
118 lfs_file_read(&lfs, &file, buffer, size) => size;
121 lfs_file_seek(&lfs, &file, -size, LFS_SEEK_END) >= 0 => 1;
122 lfs_file_read(&lfs, &file, buffer, size) => size;
125 size = lfs_file_size(&lfs, &file);
126 lfs_file_seek(&lfs, &file, 0, LFS_SEEK_CUR) => size;
128 lfs_file_close(&lfs, &file) => 0;
129 lfs_unmount(&lfs) => 0;
136 lfs_format(&lfs, &cfg) => 0;
137 lfs_mount(&lfs, &cfg) => 0;
138 lfs_file_open(&lfs, &file, "kitty",
143 lfs_file_write(&lfs, &file, buffer, size);
145 lfs_file_close(&lfs, &file) => 0;
146 lfs_unmount(&lfs) => 0;
148 lfs_mount(&lfs, &cfg) => 0;
149 lfs_file_open(&lfs, &file, "kitty", LFS_O_RDWR) => 0;
157 lfs_file_seek(&lfs, &file, off, LFS_SEEK_SET) => off;
158 lfs_file_write(&lfs, &file, buffer, size) => size;
159 lfs_file_seek(&lfs, &file, off, LFS_SEEK_SET) => off;
160 lfs_file_read(&lfs, &file, buffer, size) => size;
163 lfs_file_seek(&lfs, &file, 0, LFS_SEEK_SET) => 0;
164 lfs_file_read(&lfs, &file, buffer, size) => size;
167 lfs_file_seek(&lfs, &file, off, LFS_SEEK_SET) => off;
168 lfs_file_read(&lfs, &file, buffer, size) => size;
171 lfs_file_sync(&lfs, &file) => 0;
173 lfs_file_seek(&lfs, &file, 0, LFS_SEEK_SET) => 0;
174 lfs_file_read(&lfs, &file, buffer, size) => size;
177 lfs_file_seek(&lfs, &file, off, LFS_SEEK_SET) => off;
178 lfs_file_read(&lfs, &file, buffer, size) => size;
182 lfs_file_close(&lfs, &file) => 0;
183 lfs_unmount(&lfs) => 0;
196 lfs_format(&lfs, &cfg) => 0;
197 lfs_mount(&lfs, &cfg) => 0;
198 lfs_file_open(&lfs, &file, "kitty",
203 lfs_file_write(&lfs, &file, buffer, size);
205 lfs_file_close(&lfs, &file) => 0;
206 lfs_unmount(&lfs) => 0;
207 lfs_mount(&lfs, &cfg) => 0;
208 lfs_file_open(&lfs, &file, "kitty", LFS_O_RDWR) => 0;
211 lfs_file_size(&lfs, &file) => COUNT*size;
212 lfs_file_seek(&lfs, &file, (COUNT+SKIP)*size,
214 lfs_file_read(&lfs, &file, buffer, size) => 0;
217 lfs_file_write(&lfs, &file, buffer, size) => size;
219 lfs_file_seek(&lfs, &file, (COUNT+SKIP)*size,
221 lfs_file_read(&lfs, &file, buffer, size) => size;
224 lfs_file_seek(&lfs, &file, COUNT*size,
226 lfs_file_read(&lfs, &file, buffer, size) => size;
229 lfs_file_seek(&lfs, &file, -((COUNT+SKIP)*size),
231 lfs_file_tell(&lfs, &file) => (COUNT+1)*size;
233 lfs_file_seek(&lfs, &file, -((COUNT+2*SKIP)*size),
235 lfs_file_tell(&lfs, &file) => (COUNT+1)*size;
237 lfs_file_close(&lfs, &file) => 0;
238 lfs_unmount(&lfs) => 0;
244 lfs_format(&lfs, &cfg) => 0;
245 lfs_mount(&lfs, &cfg) => 0;
246 lfs_file_open(&lfs, &file, "tinykitty",
253 lfs_file_write(&lfs, &file, &buffer[j++ % 26], 1) => 1;
254 lfs_file_tell(&lfs, &file) => i+1;
255 lfs_file_size(&lfs, &file) => i+1;
258 lfs_file_seek(&lfs, &file, 0, LFS_SEEK_SET) => 0;
259 lfs_file_tell(&lfs, &file) => 0;
260 lfs_file_size(&lfs, &file) => SIZE;
263 lfs_file_read(&lfs, &file, &c, 1) => 1;
267 lfs_file_sync(&lfs, &file) => 0;
268 lfs_file_tell(&lfs, &file) => SIZE;
269 lfs_file_size(&lfs, &file) => SIZE;
271 lfs_file_seek(&lfs, &file, 0, LFS_SEEK_SET) => 0;
273 lfs_file_write(&lfs, &file, &buffer[j++ % 26], 1) => 1;
274 lfs_file_tell(&lfs, &file) => i+1;
275 lfs_file_size(&lfs, &file) => SIZE;
276 lfs_file_sync(&lfs, &file) => 0;
277 lfs_file_tell(&lfs, &file) => i+1;
278 lfs_file_size(&lfs, &file) => SIZE;
281 lfs_file_seek(&lfs, &file, -1, LFS_SEEK_CUR) => i;
282 lfs_file_read(&lfs, &file, &c, 3) => 3;
283 lfs_file_tell(&lfs, &file) => i+3;
284 lfs_file_size(&lfs, &file) => SIZE;
285 lfs_file_seek(&lfs, &file, i+1, LFS_SEEK_SET) => i+1;
286 lfs_file_tell(&lfs, &file) => i+1;
287 lfs_file_size(&lfs, &file) => SIZE;
291 lfs_file_seek(&lfs, &file, 0, LFS_SEEK_SET) => 0;
292 lfs_file_tell(&lfs, &file) => 0;
293 lfs_file_size(&lfs, &file) => SIZE;
296 lfs_file_read(&lfs, &file, &c, 1) => 1;
300 lfs_file_sync(&lfs, &file) => 0;
301 lfs_file_tell(&lfs, &file) => SIZE;
302 lfs_file_size(&lfs, &file) => SIZE;
304 lfs_file_close(&lfs, &file) => 0;
305 lfs_unmount(&lfs) => 0;
313 err = lfs_mount(&lfs, &cfg);
315 lfs_format(&lfs, &cfg) => 0;
316 lfs_mount(&lfs, &cfg) => 0;
318 err = lfs_file_open(&lfs, &file, "kitty", LFS_O_RDONLY);
321 if (lfs_file_size(&lfs, &file) != 0) {
322 lfs_file_size(&lfs, &file) => 11*COUNT;
325 lfs_file_read(&lfs, &file, buffer, 11) => 11;
330 lfs_file_close(&lfs, &file) => 0;
333 lfs_file_open(&lfs, &file, "kitty", LFS_O_WRONLY | LFS_O_CREAT) => 0;
334 if (lfs_file_size(&lfs, &file) == 0) {
338 lfs_file_write(&lfs, &file, buffer, size) => size;
341 lfs_file_close(&lfs, &file) => 0;
346 lfs_file_open(&lfs, &file, "kitty", LFS_O_RDWR) => 0;
347 lfs_file_size(&lfs, &file) => COUNT*size;
353 lfs_file_seek(&lfs, &file, off*size, LFS_SEEK_SET) => off*size;
354 lfs_file_read(&lfs, &file, buffer, size) => size;
358 lfs_file_seek(&lfs, &file, off*size, LFS_SEEK_SET) => off*size;
360 lfs_file_write(&lfs, &file, buffer, size) => size;
361 lfs_file_seek(&lfs, &file, off*size, LFS_SEEK_SET) => off*size;
362 lfs_file_read(&lfs, &file, buffer, size) => size;
364 lfs_file_sync(&lfs, &file) => 0;
365 lfs_file_seek(&lfs, &file, off*size, LFS_SEEK_SET) => off*size;
366 lfs_file_read(&lfs, &file, buffer, size) => size;
370 lfs_file_close(&lfs, &file) => 0;
372 lfs_file_open(&lfs, &file, "kitty", LFS_O_RDWR) => 0;
373 lfs_file_size(&lfs, &file) => COUNT*size;
375 lfs_file_read(&lfs, &file, buffer, size) => size;
378 lfs_file_close(&lfs, &file) => 0;
379 lfs_unmount(&lfs) => 0;