Date: Wed, 28 Jan 2009 12:53:13 -0500 From: John Baldwin <jhb@freebsd.org> To: "M. Warner Losh" <imp@bsdimp.com> Cc: keramida@ceid.upatras.gr, trhodes@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r187805 - head/lib/libc/stdio Message-ID: <200901281253.13907.jhb@freebsd.org> In-Reply-To: <20090128.100532.270753022.imp@bsdimp.com> References: <200901280111.n0S1BL7n003092@svn.freebsd.org> <873af38tln.fsf@kobe.laptop> <20090128.100532.270753022.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 28 January 2009 12:05:32 pm M. Warner Losh wrote: > In message: <873af38tln.fsf@kobe.laptop> > Giorgos Keramidas <keramida@ceid.upatras.gr> writes: > : On Wed, 28 Jan 2009 01:11:21 +0000 (UTC), Tom Rhodes <trhodes@FreeBSD.org> wrote: > : > Author: trhodes > : > Date: Wed Jan 28 01:11:20 2009 > : > New Revision: 187805 > : > URL: http://svn.freebsd.org/changeset/base/187805 > : > > : > Log: > : > Remove comment about clearerr() being the only method of clearing > : > the EOF indicator, fseek() may also be used for this. > : > > : > Bump document date. > : > : I don't like this, sorry... Having a pointer to clearerr() is nice. > : Removing it *deletes* useful information, but we should add _more_ of > : it. > : > : How about this instead? > : > : The end-of-file indicator may be cleared by explicitly calling > : .Fn clearerr , > : or as a side-effect of other operations, i.e.\& > : .Fn fseek . > > s/fseek/lseek/ clearerr(), fseek() etc. are all stdio routines. It would be a bit hard for lseek(2) to clear the error flag in the FILE struct in userland. :) -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901281253.13907.jhb>