[lkml]   [1999]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: int sendfile(int out_fd,int in_fd,off_t* offset,size_t count)
Arjan van de Ven <> writes:

> >> for example,what if out_fd is a non block I/O?
> > sendfile sends as many data as possible without blocking. After that,
> > it returns `EWOULDBLOCK'.
> Are you very sure? Last time I checked, it didn't. (Granted, this was by
> looking at the code).

I've only looked at the code, too. :-/ I won't say that you are wrong
(despite your k3wl `root' local-part ;), but you might want to have
a look at file_send_actor(). The call on file->f_op->write() can return
-EWOULDBLOCK, and an error is passed to the calling function.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:53    [W:0.038 / U:9.228 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site