www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/01/27/07:57:30

Date: Tue, 27 Jan 1998 14:56:56 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: DJ Delorie <dj AT delorie DOT com>
cc: andrewc AT rosemail DOT rose DOT hp DOT com, djgpp-workers AT delorie DOT com
Subject: Re: iostream concern
In-Reply-To: <199801270133.UAA06134@delorie.com>
Message-ID: <Pine.SUN.3.91.980127145642.843G-100000@is>
MIME-Version: 1.0

On Mon, 26 Jan 1998, DJ Delorie wrote:

> Beware: in MS-DOS the file position may be negative.  At least, this
> is what I remember from our discussion of the portability of lseek()
> under "undefined" conditions.  Having a file position that doesn't
> allow for negative numbers, when MS-DOS will gladly give you a
> negative number, may cause obscure problems at runtime.
 
This means that our `fsetpos' and `fgetpos' are broken also, since
fpos_t is unsigned.

I'd imagine that _G_fpos_t should be the same as fpos_t, right?  If
so, then either make it unsigned, or change fpos_t to be signed as
well.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019