This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: fgetpos() succeeds on nonseekable devices
- To: drepper@cygnus.com
- Subject: Re: fgetpos() succeeds on nonseekable devices
- From: hjl@lucon.org (H.J. Lu)
- Date: Thu, 20 Aug 1998 22:06:43 -0700 (PDT)
- Cc: libc-hacker@cygnus.com (GNU C Library)
>
> hjl@lucon.org (H.J. Lu) writes:
>
> > Thu Aug 20 17:14:44 1998 H.J. Lu (hjl@gnu.org)
> >
> > * libio/libioP.h (FILEBUF_LITERAL): Set the _offset field to
> > _IO_pos_BAD.
>
> Thanks, this in in now. In 2.0 and 2.1.
>
The patch is wrong for glibc 2.1. You have to set _IO_pos_BAD for
both the _old_offset and _offset fields in FILEBUF_LITERAL.
_IO_pos_BAD is defined twice. One is in iolibio.h and one is in
_IO_pos_BAD. They are defferent. Should it be fixed?
--
H.J. Lu (hjl@gnu.org)