]>
git.ipfire.org Git - thirdparty/git.git/blob - copy.c
3 int copy_fd(int ifd
, int ofd
)
8 ssize_t len
= xread(ifd
, buffer
, sizeof(buffer
));
15 return error("copy-fd: read returned %s",
16 strerror(read_error
));
19 int written
= xwrite(ofd
, buf
, len
);
26 return error("copy-fd: write returned 0");
29 return error("copy-fd: write returned %s",