Re: [RESEND][PATCH] sendfile.2: Fix description of the out_fd
From: Michael Kerrisk <hidden>
Date: 2011-09-17 05:09:14
On Fri, Sep 16, 2011 at 8:24 AM, Stefan Puiu [off-list ref] wrote:
HI, On Sun, Sep 11, 2011 at 7:00 PM, Michael Kerrisk [off-list ref] wrote: [...]quoted
For 3.33 I applied a slightly modified version of you patch; see below. Cheers, Michael--- a/man2/sendfile.2 +++ b/man2/sendfile.2@@ -92,10 +92,14 @@ Theargument must correspond to a file which supports .BR mmap (2)-like operations -(i.e., it cannot be a socket); -and +(i.e., it cannot be a socket). +In Linux kernels before 2.6.33, .I out_fd must refer to a socket. +Since Linux 2.6.33 it can be any file. +If it is a regular file, then +.BR sendfile() +changes the file offset offset appropriately.You wrote 'offset' twice here, I guess it's a typo, unless I'm missing something...
Thanks Stefan. Fixed now. Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface"; http://man7.org/tlpi/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html