This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: RFC V2 [1/2] test-in-container
- From: Florian Weimer <fweimer at redhat dot com>
- To: DJ Delorie <dj at redhat dot com>, libc-alpha at sourceware dot org
- Date: Wed, 28 Feb 2018 13:56:04 +0100
- Subject: Re: RFC V2 [1/2] test-in-container
- Authentication-results: sourceware.org; auth=none
- References: <xnwoyyrx3c.fsf@greed.delorie.com>
On 02/27/2018 09:33 PM, DJ Delorie wrote:
+ while ((rsz = read (sfd, buf, 512)) > 0)
+ write (dfd, buf, rsz);
This needs error checking, and you can use copy_file_range.
Thanks,
Florian