Lines Matching refs:size

19     size_t size = strlen("kittycatcat");
21 memcpy(buffer, "kittycatcat", size);
23 lfs_file_write(&lfs, &file, buffer, size);
32 size = strlen("kittycatcat");
34 lfs_file_read(&lfs, &file, buffer, size) => size;
35 memcmp(buffer, "kittycatcat", size) => 0;
41 lfs_file_read(&lfs, &file, buffer, size) => size;
42 memcmp(buffer, "kittycatcat", size) => 0;
45 lfs_file_read(&lfs, &file, buffer, size) => size;
46 memcmp(buffer, "kittycatcat", size) => 0;
48 lfs_file_seek(&lfs, &file, 0, LFS_SEEK_CUR) => size;
49 lfs_file_read(&lfs, &file, buffer, size) => size;
50 memcmp(buffer, "kittycatcat", size) => 0;
52 lfs_file_seek(&lfs, &file, size, LFS_SEEK_CUR) => 3*size;
53 lfs_file_read(&lfs, &file, buffer, size) => size;
54 memcmp(buffer, "kittycatcat", size) => 0;
57 lfs_file_read(&lfs, &file, buffer, size) => size;
58 memcmp(buffer, "kittycatcat", size) => 0;
60 lfs_file_seek(&lfs, &file, -size, LFS_SEEK_CUR) => pos;
61 lfs_file_read(&lfs, &file, buffer, size) => size;
62 memcmp(buffer, "kittycatcat", size) => 0;
64 lfs_file_seek(&lfs, &file, -size, LFS_SEEK_END) >= 0 => 1;
65 lfs_file_read(&lfs, &file, buffer, size) => size;
66 memcmp(buffer, "kittycatcat", size) => 0;
68 size = lfs_file_size(&lfs, &file);
69 lfs_file_seek(&lfs, &file, 0, LFS_SEEK_CUR) => size;
92 size_t size = strlen("kittycatcat");
94 memcpy(buffer, "kittycatcat", size);
96 lfs_file_write(&lfs, &file, buffer, size);
105 size = strlen("kittycatcat");
107 lfs_file_read(&lfs, &file, buffer, size) => size;
108 memcmp(buffer, "kittycatcat", size) => 0;
113 memcpy(buffer, "doggodogdog", size);
115 lfs_file_write(&lfs, &file, buffer, size) => size;
118 lfs_file_read(&lfs, &file, buffer, size) => size;
119 memcmp(buffer, "doggodogdog", size) => 0;
122 lfs_file_read(&lfs, &file, buffer, size) => size;
123 memcmp(buffer, "kittycatcat", size) => 0;
126 lfs_file_read(&lfs, &file, buffer, size) => size;
127 memcmp(buffer, "doggodogdog", size) => 0;
129 lfs_file_seek(&lfs, &file, -size, LFS_SEEK_END) >= 0 => 1;
130 lfs_file_read(&lfs, &file, buffer, size) => size;
131 memcmp(buffer, "kittycatcat", size) => 0;
133 size = lfs_file_size(&lfs, &file);
134 lfs_file_seek(&lfs, &file, 0, LFS_SEEK_CUR) => size;
150 size_t size = strlen("kittycatcat");
152 memcpy(buffer, "kittycatcat", size);
154 lfs_file_write(&lfs, &file, buffer, size);
162 size = strlen("hedgehoghog");
167 memcpy(buffer, "hedgehoghog", size);
169 lfs_file_write(&lfs, &file, buffer, size) => size;
171 lfs_file_read(&lfs, &file, buffer, size) => size;
172 memcmp(buffer, "hedgehoghog", size) => 0;
175 lfs_file_read(&lfs, &file, buffer, size) => size;
176 memcmp(buffer, "kittycatcat", size) => 0;
179 lfs_file_read(&lfs, &file, buffer, size) => size;
180 memcmp(buffer, "hedgehoghog", size) => 0;
185 lfs_file_read(&lfs, &file, buffer, size) => size;
186 memcmp(buffer, "kittycatcat", size) => 0;
189 lfs_file_read(&lfs, &file, buffer, size) => size;
190 memcmp(buffer, "hedgehoghog", size) => 0;
214 size_t size = strlen("kittycatcat");
216 memcpy(buffer, "kittycatcat", size);
218 lfs_file_write(&lfs, &file, buffer, size);
225 size = strlen("kittycatcat");
226 lfs_file_size(&lfs, &file) => COUNT*size;
227 lfs_file_seek(&lfs, &file, (COUNT+SKIP)*size,
228 LFS_SEEK_SET) => (COUNT+SKIP)*size;
229 lfs_file_read(&lfs, &file, buffer, size) => 0;
231 memcpy(buffer, "porcupineee", size);
232 lfs_file_write(&lfs, &file, buffer, size) => size;
234 lfs_file_seek(&lfs, &file, (COUNT+SKIP)*size,
235 LFS_SEEK_SET) => (COUNT+SKIP)*size;
236 lfs_file_read(&lfs, &file, buffer, size) => size;
237 memcmp(buffer, "porcupineee", size) => 0;
239 lfs_file_seek(&lfs, &file, COUNT*size,
240 LFS_SEEK_SET) => COUNT*size;
241 lfs_file_read(&lfs, &file, buffer, size) => size;
242 memcmp(buffer, "\0\0\0\0\0\0\0\0\0\0\0", size) => 0;
244 lfs_file_seek(&lfs, &file, -((COUNT+SKIP)*size),
246 lfs_file_tell(&lfs, &file) => (COUNT+1)*size;
248 lfs_file_seek(&lfs, &file, -((COUNT+2*SKIP)*size),
250 lfs_file_tell(&lfs, &file) => (COUNT+1)*size;
360 size_t size = strlen((char*)buffer);
361 lfs_file_write(&lfs, &file, buffer, size) => size;
367 size_t size = strlen((char*)buffer);
370 lfs_file_size(&lfs, &file) => COUNT*size;
376 lfs_file_seek(&lfs, &file, off*size, LFS_SEEK_SET) => off*size;
377 lfs_file_read(&lfs, &file, buffer, size) => size;
378 assert(memcmp(buffer, "kittycatcat", size) == 0 ||
379 memcmp(buffer, "doggodogdog", size) == 0);
380 if (memcmp(buffer, "doggodogdog", size) != 0) {
381 lfs_file_seek(&lfs, &file, off*size, LFS_SEEK_SET) => off*size;
383 lfs_file_write(&lfs, &file, buffer, size) => size;
384 lfs_file_seek(&lfs, &file, off*size, LFS_SEEK_SET) => off*size;
385 lfs_file_read(&lfs, &file, buffer, size) => size;
386 assert(memcmp(buffer, "doggodogdog", size) == 0);
388 lfs_file_seek(&lfs, &file, off*size, LFS_SEEK_SET) => off*size;
389 lfs_file_read(&lfs, &file, buffer, size) => size;
390 assert(memcmp(buffer, "doggodogdog", size) == 0);
396 lfs_file_size(&lfs, &file) => COUNT*size;
398 lfs_file_read(&lfs, &file, buffer, size) => size;
399 assert(memcmp(buffer, "doggodogdog", size) == 0);