Lines Matching refs:size
191 static int copy_file(FILE* dest, FILE* src, off_t size, const char* destName,
196 off_t origSize = size;
198 while (size > 0) {
199 int amt = size > (off_t)sizeof(copyBuffer) ? sizeof(copyBuffer) : (int)size;
222 size -= readLen;
330 off_t size = statBuffer.st_size;
331 if (!write_int64(fh, size)) {
344 int copyres = copy_file(fh, src, size, NULL, fullPath);
548 off_t size = read_int64(fh, -1);
549 if (size < 0) {
550 fprintf(stderr, "bad file size %ld in restore file\n", size);
565 int copyres = copy_file(dest, fh, size, path, NULL);