Lines Matching refs:size
16 size = strlen("kittycatcat");
17 memcpy(buffer, "kittycatcat", size);
19 lfs_file_write(&lfs, &file, buffer, size);
28 size = strlen("kittycatcat");
30 lfs_file_read(&lfs, &file, buffer, size) => size;
31 memcmp(buffer, "kittycatcat", size) => 0;
37 lfs_file_read(&lfs, &file, buffer, size) => size;
38 memcmp(buffer, "kittycatcat", size) => 0;
41 lfs_file_read(&lfs, &file, buffer, size) => size;
42 memcmp(buffer, "kittycatcat", size) => 0;
44 lfs_file_seek(&lfs, &file, 0, LFS_SEEK_CUR) => size;
45 lfs_file_read(&lfs, &file, buffer, size) => size;
46 memcmp(buffer, "kittycatcat", size) => 0;
48 lfs_file_seek(&lfs, &file, size, LFS_SEEK_CUR) => 3*size;
49 lfs_file_read(&lfs, &file, buffer, size) => size;
50 memcmp(buffer, "kittycatcat", size) => 0;
53 lfs_file_read(&lfs, &file, buffer, size) => size;
54 memcmp(buffer, "kittycatcat", size) => 0;
56 lfs_file_seek(&lfs, &file, -size, LFS_SEEK_CUR) => pos;
57 lfs_file_read(&lfs, &file, buffer, size) => size;
58 memcmp(buffer, "kittycatcat", size) => 0;
60 lfs_file_seek(&lfs, &file, -size, LFS_SEEK_END) >= 0 => 1;
61 lfs_file_read(&lfs, &file, buffer, size) => size;
62 memcmp(buffer, "kittycatcat", size) => 0;
64 size = lfs_file_size(&lfs, &file);
65 lfs_file_seek(&lfs, &file, 0, LFS_SEEK_CUR) => size;
85 size = strlen("kittycatcat");
86 memcpy(buffer, "kittycatcat", size);
88 lfs_file_write(&lfs, &file, buffer, size);
97 size = strlen("kittycatcat");
99 lfs_file_read(&lfs, &file, buffer, size) => size;
100 memcmp(buffer, "kittycatcat", size) => 0;
105 memcpy(buffer, "doggodogdog", size);
107 lfs_file_write(&lfs, &file, buffer, size) => size;
110 lfs_file_read(&lfs, &file, buffer, size) => size;
111 memcmp(buffer, "doggodogdog", size) => 0;
114 lfs_file_read(&lfs, &file, buffer, size) => size;
115 memcmp(buffer, "kittycatcat", size) => 0;
118 lfs_file_read(&lfs, &file, buffer, size) => size;
119 memcmp(buffer, "doggodogdog", size) => 0;
121 lfs_file_seek(&lfs, &file, -size, LFS_SEEK_END) >= 0 => 1;
122 lfs_file_read(&lfs, &file, buffer, size) => size;
123 memcmp(buffer, "kittycatcat", size) => 0;
125 size = lfs_file_size(&lfs, &file);
126 lfs_file_seek(&lfs, &file, 0, LFS_SEEK_CUR) => size;
140 size = strlen("kittycatcat");
141 memcpy(buffer, "kittycatcat", size);
143 lfs_file_write(&lfs, &file, buffer, size);
151 size = strlen("hedgehoghog");
156 memcpy(buffer, "hedgehoghog", size);
158 lfs_file_write(&lfs, &file, buffer, size) => size;
160 lfs_file_read(&lfs, &file, buffer, size) => size;
161 memcmp(buffer, "hedgehoghog", size) => 0;
164 lfs_file_read(&lfs, &file, buffer, size) => size;
165 memcmp(buffer, "kittycatcat", size) => 0;
168 lfs_file_read(&lfs, &file, buffer, size) => size;
169 memcmp(buffer, "hedgehoghog", size) => 0;
174 lfs_file_read(&lfs, &file, buffer, size) => size;
175 memcmp(buffer, "kittycatcat", size) => 0;
178 lfs_file_read(&lfs, &file, buffer, size) => size;
179 memcmp(buffer, "hedgehoghog", size) => 0;
200 size = strlen("kittycatcat");
201 memcpy(buffer, "kittycatcat", size);
203 lfs_file_write(&lfs, &file, buffer, size);
210 size = strlen("kittycatcat");
211 lfs_file_size(&lfs, &file) => COUNT*size;
212 lfs_file_seek(&lfs, &file, (COUNT+SKIP)*size,
213 LFS_SEEK_SET) => (COUNT+SKIP)*size;
214 lfs_file_read(&lfs, &file, buffer, size) => 0;
216 memcpy(buffer, "porcupineee", size);
217 lfs_file_write(&lfs, &file, buffer, size) => size;
219 lfs_file_seek(&lfs, &file, (COUNT+SKIP)*size,
220 LFS_SEEK_SET) => (COUNT+SKIP)*size;
221 lfs_file_read(&lfs, &file, buffer, size) => size;
222 memcmp(buffer, "porcupineee", size) => 0;
224 lfs_file_seek(&lfs, &file, COUNT*size,
225 LFS_SEEK_SET) => COUNT*size;
226 lfs_file_read(&lfs, &file, buffer, size) => size;
227 memcmp(buffer, "\0\0\0\0\0\0\0\0\0\0\0", size) => 0;
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;
337 size = strlen((char*)buffer);
338 lfs_file_write(&lfs, &file, buffer, size) => size;
344 size = strlen((char*)buffer);
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;
355 assert(memcmp(buffer, "kittycatcat", size) == 0 ||
356 memcmp(buffer, "doggodogdog", size) == 0);
357 if (memcmp(buffer, "doggodogdog", size) != 0) {
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;
363 assert(memcmp(buffer, "doggodogdog", size) == 0);
365 lfs_file_seek(&lfs, &file, off*size, LFS_SEEK_SET) => off*size;
366 lfs_file_read(&lfs, &file, buffer, size) => size;
367 assert(memcmp(buffer, "doggodogdog", size) == 0);
373 lfs_file_size(&lfs, &file) => COUNT*size;
375 lfs_file_read(&lfs, &file, buffer, size) => size;
376 assert(memcmp(buffer, "doggodogdog", size) == 0);