Lines Matching refs:size
31 size_t size = strlen(names[n]);
32 for (lfs_size_t i = 0; i < SIZE; i += size) {
33 lfs_file_write(&lfs, &files[n], names[n], size) => size;
47 size_t size = strlen(names[n]);
48 for (lfs_size_t i = 0; i < SIZE; i += size) {
50 lfs_file_read(&lfs, &file, buffer, size) => size;
51 assert(memcmp(buffer, names[n], size) == 0);
79 size_t size = strlen(names[n]);
81 memcpy(buffer, names[n], size);
82 for (int i = 0; i < SIZE; i += size) {
86 lfs_file_write(&lfs, &file, buffer, size) => size;
98 size_t size = strlen(names[n]);
99 for (int i = 0; i < SIZE; i += size) {
101 lfs_file_read(&lfs, &file, buffer, size) => size;
102 assert(memcmp(buffer, names[n], size) == 0);
134 size_t size = strlen(names[n]);
135 for (int i = 0; i < SIZE; i += size) {
136 lfs_file_write(&lfs, &files[n], names[n], size) => size;
150 size_t size = strlen(names[n]);
151 for (int i = 0; i < SIZE; i += size) {
153 lfs_file_read(&lfs, &file, buffer, size) => size;
154 assert(memcmp(buffer, names[n], size) == 0);
194 size_t size = strlen(names[n]);
196 memcpy(buffer, names[n], size);
197 for (int i = 0; i < SIZE; i += size) {
198 lfs_file_write(&lfs, &file, buffer, size) => size;
210 size_t size = strlen(names[n]);
211 for (int i = 0; i < SIZE; i += size) {
213 lfs_file_read(&lfs, &file, buffer, size) => size;
214 assert(memcmp(buffer, names[n], size) == 0);
239 size_t size = strlen("exhaustion");
241 memcpy(buffer, "exhaustion", size);
242 lfs_file_write(&lfs, &file, buffer, size) => size;
245 size = strlen("blahblahblahblah");
246 memcpy(buffer, "blahblahblahblah", size);
249 res = lfs_file_write(&lfs, &file, buffer, size);
254 res => size;
266 size = strlen("exhaustion");
267 lfs_file_size(&lfs, &file) => size;
268 lfs_file_read(&lfs, &file, buffer, size) => size;
269 memcmp(buffer, "exhaustion", size) => 0;
284 size_t size = strlen("buffering");
286 memcpy(buffer, "buffering", size);
287 for (int i = 0; i < SIZE; i += size) {
288 lfs_file_write(&lfs, &file, buffer, size) => size;
294 size = strlen("exhaustion");
295 memcpy(buffer, "exhaustion", size);
296 lfs_file_write(&lfs, &file, buffer, size) => size;
299 size = strlen("blahblahblahblah");
300 memcpy(buffer, "blahblahblahblah", size);
303 res = lfs_file_write(&lfs, &file, buffer, size);
308 res => size;
320 size = strlen("exhaustion");
321 lfs_file_size(&lfs, &file) => size;
322 lfs_file_read(&lfs, &file, buffer, size) => size;
323 memcmp(buffer, "exhaustion", size) => 0;
336 // find out max file size
338 size_t size = strlen("blahblahblahblah");
340 memcpy(buffer, "blahblahblahblah", size);
346 err = lfs_file_write(&lfs, &file, buffer, size);
361 // see if dir fits with max file size
364 lfs_file_write(&lfs, &file, buffer, size) => size;
372 // see if dir fits with > max file size
375 lfs_file_write(&lfs, &file, buffer, size) => size;
399 size_t size = strlen("waka");
402 lfs_ssize_t res = lfs_file_write(&lfs, &file, buffer, size);
403 assert(res == (lfs_ssize_t)size || res == LFS_ERR_NOSPC);
407 filesize += size;
414 size = strlen("waka");
415 for (lfs_size_t i = 0; i < filesize/size; i++) {
416 lfs_file_write(&lfs, &file, buffer, size) => size;
431 size = strlen("chomp");
433 lfs_ssize_t res = lfs_file_write(&lfs, &file, buffer, size);
434 assert(res == (lfs_ssize_t)size || res == LFS_ERR_CORRUPT);
446 size = strlen("chomp");
448 lfs_ssize_t res = lfs_file_write(&lfs, &file, buffer, size);
449 assert(res == (lfs_ssize_t)size || res == LFS_ERR_NOSPC);
464 size = strlen("waka");
465 for (lfs_size_t i = 0; i < filesize/size; i++) {
467 lfs_file_read(&lfs, &file, rbuffer, size) => size;
468 assert(memcmp(rbuffer, buffer, size) == 0);
488 // find out max file size
495 size_t size = strlen("blahblahblahblah");
497 memcpy(buffer, "blahblahblahblah", size);
503 err = lfs_file_write(&lfs, &file, buffer, size);
524 lfs_file_write(&lfs, &file, buffer, size) => size;
546 lfs_file_truncate(&lfs, &file, filesize - size) => 0;
578 size_t size = strlen("blahblahblahblah");
579 memcpy(buffer, "blahblahblahblah", size);
582 i += size) {
583 lfs_file_write(&lfs, &file, buffer, size) => size;
619 size_t size = strlen("blahblahblahblah");
621 memcpy(buffer, "blahblahblahblah", size);
624 i += size) {
625 lfs_file_write(&lfs, &file, buffer, size) => size;
631 size = strlen("blahblahblahblah");
632 memcpy(buffer, "blahblahblahblah", size);
635 i += size) {
636 lfs_file_write(&lfs, &file, buffer, size) => size;
648 size = strlen("blahblahblahblah");
649 memcpy(buffer, "blahblahblahblah", size);
652 i += size) {
653 lfs_file_write(&lfs, &file, buffer, size) => size;
662 size = strlen("blahblahblahblah");
663 memcpy(buffer, "blahblahblahblah", size);
666 i += size) {
667 lfs_file_write(&lfs, &file, buffer, size) => size;
687 size_t size = strlen("blahblahblahblah");
689 memcpy(buffer, "blahblahblahblah", size);
692 i += size) {
693 lfs_file_write(&lfs, &file, buffer, size) => size;
699 size = strlen("blahblahblahblah");
700 memcpy(buffer, "blahblahblahblah", size);
703 i += size) {
704 lfs_file_write(&lfs, &file, buffer, size) => size;
716 size = strlen("blahblahblahblah");
717 memcpy(buffer, "blahblahblahblah", size);
720 i += size) {
721 lfs_file_write(&lfs, &file, buffer, size) => size;