Alexander Viro wrote:
>
> On Sun, 10 Sep 2000, Daniel Phillips wrote:
>
> > Can I ask a stupid question: why do we pass a pointer to the file
> > position along with the file when calling read/write methods as in:
> >
> > read(file, buf, count, &file->f_pos)
> >
> > Is there ever a case when we don't want to use the f_pos from the file
> > struct?
>
> Sigh...
> find . -name *.[chS]|xargs egrep -n \
> '(->|\.)[ ]*read[ ]*([,();]|$)' /dev/null > list
>
Grepping was the first thing I did. I immediately concluded that
asking on the list would be much more efficient. For my effort I got
two answers and a grep lesson. I spent the hour thus saved working on
my tail merging code, which by the way has just now got to the point
where there are dragons to slay.
--
Daniel
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to [EMAIL PROTECTED]