This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC V2 [1/2] test-in-container


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]