# Re: \[RESEND\]\[PATCH\] sendfile.2: Fix description of the out\_fd

- From: Stefan Puiu \<hidden\>
- Date: 2011-09-16 06:24:17 
- List: linux-man
- Page: https://ratatoskr.run/linux-man/2011/09/15912014
- Thread: https://ratatoskr.run/linux-man/2011/09/15912014/t.md

```text
HI,

On Sun, Sep 11, 2011 at 7:00 PM, Michael Kerrisk [ref] wrote:
[...]
>
> 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 @@ The
>  argument 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.
--
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
```
