lkml.org 
[lkml]   [1998]   [Jul]   [7]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 7 Jul 1998 11:37:35 +0200
From"Stephen R. van den Berg" <>
SubjectRe: Turning sendfile into copyfd
Pavel Machek wrote:
>I should probably provide some way to specify 'copy until EOF'
>(count==0?).

Please keep count==0 to specify zero bytes.  Use something like count==-1
for copy till EOF.

> Also, if I end up copying more than 4G of data, what
>value should I return?  This needs to be solved.

Copy 2GB-PAGE_SIZE, then return, set errno to EAGAIN or something.
If we're copying more than 2GB, then the overhead of putting a loop
on it in userspace is negligible.
-- 
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg (AKA BuGless).
"I don't like this word bomb.  It is not a bomb, it is a device,
 which explodes."  French Ambassador about the atomic tests.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:43    [from the cache]
©2003-2008