Lines Matching refs:st_size
399 if ((unsigned)sbuf.st_size < tparams->header_size) { in main()
406 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, ifd, 0); in main()
423 (void) munmap((void *)ptr, sbuf.st_size); in main()
446 params.file_size = sbuf.st_size + tparams->header_size; in main()
487 size = cpu_to_uimage (sbuf.st_size); in main()
589 params.file_size = sbuf.st_size; in main()
591 ptr = mmap(0, sbuf.st_size, PROT_READ|PROT_WRITE, MAP_SHARED, ifd, 0); in main()
616 (void) munmap((void *)ptr, sbuf.st_size); in main()
669 if (sbuf.st_size == 0) { in copy_file()
674 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, dfd, 0); in copy_file()
689 if ((unsigned)sbuf.st_size < tparams->header_size) { in copy_file()
708 size = sbuf.st_size - offset; in copy_file()
740 (void) munmap((void *)ptr, sbuf.st_size); in copy_file()