apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@redhat.com
Subject Re: [PATCH] apr_file_writev() on UNIX
Date Tue, 05 Oct 2004 06:16:53 GMT
On Mon, Oct 04, 2004 at 06:11:57PM -0600, Jean-Jacques Clar wrote:
> If HAS_WRITEV is not defined the current code
> will just push the first vector to the target.
> The function should write all the vectors or none.

There is no guarantee that writev(2) writes all the vectors, it's
allowed to return short just like write(2) is, so why should
apr_file_writev() give such a guarantee only for the non-writev-based

What you're looking for, perhaps, is an apr_file_writev_full(), which
guarantees "all bytes are written, or failure"?


View raw message