Lines Matching refs:file

7     lfs_file_open(&lfs, &file, "baldynoop",
13 lfs_file_write(&lfs, &file, buffer, size) => size;
15 lfs_file_size(&lfs, &file) => LARGESIZE;
17 lfs_file_close(&lfs, &file) => 0;
21 lfs_file_open(&lfs, &file, "baldynoop", LFS_O_RDWR) => 0;
22 lfs_file_size(&lfs, &file) => LARGESIZE;
24 lfs_file_truncate(&lfs, &file, MEDIUMSIZE) => 0;
25 lfs_file_size(&lfs, &file) => MEDIUMSIZE;
27 lfs_file_close(&lfs, &file) => 0;
31 lfs_file_open(&lfs, &file, "baldynoop", LFS_O_RDONLY) => 0;
32 lfs_file_size(&lfs, &file) => MEDIUMSIZE;
36 lfs_file_read(&lfs, &file, buffer, size) => size;
39 lfs_file_read(&lfs, &file, buffer, size) => 0;
41 lfs_file_close(&lfs, &file) => 0;
51 lfs_file_open(&lfs, &file, "baldyread",
57 lfs_file_write(&lfs, &file, buffer, size) => size;
59 lfs_file_size(&lfs, &file) => LARGESIZE;
61 lfs_file_close(&lfs, &file) => 0;
65 lfs_file_open(&lfs, &file, "baldyread", LFS_O_RDWR) => 0;
66 lfs_file_size(&lfs, &file) => LARGESIZE;
68 lfs_file_truncate(&lfs, &file, MEDIUMSIZE) => 0;
69 lfs_file_size(&lfs, &file) => MEDIUMSIZE;
73 lfs_file_read(&lfs, &file, buffer, size) => size;
76 lfs_file_read(&lfs, &file, buffer, size) => 0;
78 lfs_file_close(&lfs, &file) => 0;
82 lfs_file_open(&lfs, &file, "baldyread", LFS_O_RDONLY) => 0;
83 lfs_file_size(&lfs, &file) => MEDIUMSIZE;
87 lfs_file_read(&lfs, &file, buffer, size) => size;
90 lfs_file_read(&lfs, &file, buffer, size) => 0;
92 lfs_file_close(&lfs, &file) => 0;
100 lfs_file_open(&lfs, &file, "sequence",
112 lfs_file_write(&lfs, &file, wb, size) => size;
113 lfs_file_size(&lfs, &file) => size;
114 lfs_file_tell(&lfs, &file) => size;
116 lfs_file_seek(&lfs, &file, 0, LFS_SEEK_SET) => 0;
117 lfs_file_tell(&lfs, &file) => 0;
121 lfs_file_truncate(&lfs, &file, trunc) => 0;
122 lfs_file_tell(&lfs, &file) => 0;
123 lfs_file_size(&lfs, &file) => trunc;
126 lfs_file_read(&lfs, &file, rb, size) => trunc;
130 lfs_file_size(&lfs, &file) => trunc;
131 lfs_file_seek(&lfs, &file, qsize, LFS_SEEK_SET) => qsize;
132 lfs_file_tell(&lfs, &file) => qsize;
136 lfs_file_truncate(&lfs, &file, trunc) => 0;
137 lfs_file_tell(&lfs, &file) => qsize;
138 lfs_file_size(&lfs, &file) => trunc;
141 lfs_file_read(&lfs, &file, rb, size) => trunc - qsize;
144 lfs_file_close(&lfs, &file) => 0;
154 lfs_file_open(&lfs, &file, "baldywrite",
160 lfs_file_write(&lfs, &file, buffer, size) => size;
162 lfs_file_size(&lfs, &file) => LARGESIZE;
164 lfs_file_close(&lfs, &file) => 0;
168 lfs_file_open(&lfs, &file, "baldywrite", LFS_O_RDWR) => 0;
169 lfs_file_size(&lfs, &file) => LARGESIZE;
171 lfs_file_truncate(&lfs, &file, MEDIUMSIZE) => 0;
172 lfs_file_size(&lfs, &file) => MEDIUMSIZE;
177 lfs_file_write(&lfs, &file, buffer, size) => size;
179 lfs_file_size(&lfs, &file) => MEDIUMSIZE;
181 lfs_file_close(&lfs, &file) => 0;
185 lfs_file_open(&lfs, &file, "baldywrite", LFS_O_RDONLY) => 0;
186 lfs_file_size(&lfs, &file) => MEDIUMSIZE;
190 lfs_file_read(&lfs, &file, buffer, size) => size;
193 lfs_file_read(&lfs, &file, buffer, size) => 0;
195 lfs_file_close(&lfs, &file) => 0;
210 err = lfs_file_open(&lfs, &file, "baldy", LFS_O_RDONLY);
213 size = lfs_file_size(&lfs, &file);
219 lfs_file_read(&lfs, &file, buffer, 4) => 4;
224 lfs_file_close(&lfs, &file) => 0;
227 lfs_file_open(&lfs, &file, "baldy",
229 lfs_file_size(&lfs, &file) => 0;
233 lfs_file_write(&lfs, &file, buffer, size) => size;
235 lfs_file_size(&lfs, &file) => LARGESIZE;
236 lfs_file_close(&lfs, &file) => 0;
238 lfs_file_open(&lfs, &file, "baldy", LFS_O_RDWR) => 0;
239 lfs_file_size(&lfs, &file) => LARGESIZE;
240 lfs_file_truncate(&lfs, &file, MEDIUMSIZE) => 0;
241 lfs_file_size(&lfs, &file) => MEDIUMSIZE;
245 lfs_file_write(&lfs, &file, buffer, size) => size;
247 lfs_file_size(&lfs, &file) => MEDIUMSIZE;
248 lfs_file_close(&lfs, &file) => 0;
250 lfs_file_open(&lfs, &file, "baldy", LFS_O_RDWR) => 0;
251 lfs_file_size(&lfs, &file) => MEDIUMSIZE;
252 lfs_file_truncate(&lfs, &file, SMALLSIZE) => 0;
253 lfs_file_size(&lfs, &file) => SMALLSIZE;
257 lfs_file_write(&lfs, &file, buffer, size) => size;
259 lfs_file_size(&lfs, &file) => SMALLSIZE;
260 lfs_file_close(&lfs, &file) => 0;
298 // mid-file shrinking truncate
303 // mid-file expanding truncate
320 lfs_file_open(&lfs, &file, path,
326 lfs_file_write(&lfs, &file, buffer, size) => size;
328 lfs_file_size(&lfs, &file) => startsizes[i];
331 lfs_file_seek(&lfs, &file,
335 lfs_file_truncate(&lfs, &file, hotsizes[i]) => 0;
336 lfs_file_size(&lfs, &file) => hotsizes[i];
338 lfs_file_close(&lfs, &file) => 0;
347 lfs_file_open(&lfs, &file, path, LFS_O_RDWR) => 0;
348 lfs_file_size(&lfs, &file) => hotsizes[i];
353 lfs_file_read(&lfs, &file, buffer, size) => size;
358 lfs_file_read(&lfs, &file, buffer, size) => size;
362 lfs_file_truncate(&lfs, &file, coldsizes[i]) => 0;
363 lfs_file_size(&lfs, &file) => coldsizes[i];
365 lfs_file_close(&lfs, &file) => 0;
374 lfs_file_open(&lfs, &file, path, LFS_O_RDONLY) => 0;
375 lfs_file_size(&lfs, &file) => coldsizes[i];
381 lfs_file_read(&lfs, &file, buffer, size) => size;
386 lfs_file_read(&lfs, &file, buffer, size) => size;
390 lfs_file_close(&lfs, &file) => 0;
401 lfs_file_open(&lfs, &file, "baldynoop",
407 lfs_file_write(&lfs, &file, buffer, size) => size;
410 lfs_file_truncate(&lfs, &file, j+size) => 0;
412 lfs_file_size(&lfs, &file) => MEDIUMSIZE;
414 lfs_file_seek(&lfs, &file, 0, LFS_SEEK_SET) => 0;
416 lfs_file_truncate(&lfs, &file, MEDIUMSIZE) => 0;
417 lfs_file_size(&lfs, &file) => MEDIUMSIZE;
420 lfs_file_read(&lfs, &file, buffer, size) => size;
423 lfs_file_read(&lfs, &file, buffer, size) => 0;
425 lfs_file_close(&lfs, &file) => 0;
430 lfs_file_open(&lfs, &file, "baldynoop", LFS_O_RDWR) => 0;
431 lfs_file_size(&lfs, &file) => MEDIUMSIZE;
433 lfs_file_read(&lfs, &file, buffer, size) => size;
436 lfs_file_read(&lfs, &file, buffer, size) => 0;
437 lfs_file_close(&lfs, &file) => 0;