bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: af_alg: what if sendfile fails?


From: Pádraig Brady
Subject: Re: af_alg: what if sendfile fails?
Date: Sun, 24 Jun 2018 15:58:08 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 24/06/18 15:40, Bruno Haible wrote:
> In afalg_stream, if the stream refers to a regular file, and sendfile() fails,
> do we have a guarantee that the offset of the file descriptor remains 
> unchanged?
> 
> The man page at http://man7.org/linux/man-pages/man2/sendfile.2.html doesn't
> say so.

I looked into this last night.
My reading was if &off is specified, the offset remains unchanged.

  "If offset is not NULL, then sendfile()
   does not modify the file offset of in_fd;"

So it doesn't look like this is required.

cheers,
Pádraig



reply via email to

[Prev in Thread] Current Thread [Next in Thread]