Mail Archives: djgpp/1997/07/03/02:54:16
Michael Mauch wrote:
On Tue, 01 Jul 1997 16:01:41 -0400, "A. Sinan Unur" <asu1 AT cornell DOT edu>
wrote:
>> this is what the ANSI standard says (according to an excerpt on p.249
>> of Plauger's "The Standard C Library")
>> A binary stream need not meaningfully support fseek calls with a
>> whence value of SEEK_END.
>
> So, given that the DJGPP implementation of binary streams does "not
> meaningfully support fseek", shouldn't fseek() then always fail for
> this "request that cannot be satisfied", i.e. using SEEK_END on binary
> streams?
nobody said that djgpp did not support SEEK_END meaningfully. i was just
pointing out a potential portability problem with your code.
>> The fseek function returns nonzero only for a request that cannot be
>> satisfied.
>> compare the first line of your post with this information.
>
> Hmm, you don't mean the "Hi!", do you? ;-)
no. i meant the line where you wrote:
fseek() in DJGPP v2.01 seems to have a bug: it returns 0 for success
when it should not:
basically, you need to have a clearer understanding of what you want to
do, what fseek can portably do and what fseek provided by djgpp actually
does before saying you have found a bug.
--
Sinan
*******************************************************************
A. Sinan Unur WWWWWW
|--O+O
mailto:sinan DOT unur AT cornell DOT edu C ^
http://www.people.cornell.edu/pages/asu1/ \ ~/
Unsolicited e-mail is _not_ welcome, and will be billed for.
*******************************************************************
- Raw text -