3 int copy_fd(int ifd
, int ofd
)
9 len
= xread(ifd
, buffer
, sizeof(buffer
));
16 return error("copy-fd: read returned %s",
17 strerror(read_error
));
20 int written
= xwrite(ofd
, buf
, len
);
27 return error("copy-fd: write returned 0");
30 return error("copy-fd: write returned %s",