Sender: richdawe AT bigfoot DOT com Message-ID: <3810AB47.B2D9CFCE@tudor21.net> Date: Fri, 22 Oct 1999 19:21:59 +0100 From: Richard Dawe X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.10 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: djgpp-workers AT Delorie DOT com Subject: Re: Bug in fsetpos()? References: <199910212124 DOT RAA11174 AT mccoy2 DOT ECE DOT McGill DOT CA> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Hello. Alain Magloire wrote: > However all implemetations have seen just call fseek() > > int fsetpos(FILE *stream, const fpos_t *pos) { > return fseek(stream, *pos, SEEK_SET); > } > and let errno propagates up, That's exactly my point. fsetpos() was calling fseek() and then ignoring its return code! My point about returning -1 on EFAULT is not so important. Bye, -- Richard Dawe richdawe AT bigfoot DOT com ICQ 47595498 http://www.bigfoot.com/~richdawe/