delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/09/01/03:51:52

Date: Fri, 01 Sep 2000 08:47:48 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: mail AT jgreen4 DOT fsnet DOT co DOT uk
Message-Id: <2593-Fri01Sep2000084748+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.2.emacs20_6 I) and Blat ver 1.8.5b
CC: lauras AT softhome DOT net, djgpp-workers AT delorie DOT com
In-reply-to: <khmtqs4e3j50o3tup2r5rm7trbal670nrb@4ax.com> (message from Jason
Green on Thu, 31 Aug 2000 23:45:28 +0100)
Subject: Re: Symify fixes
References: <226lqssqgqp6i9nk82rvrqhl9aaia029e9 AT 4ax DOT com> <7458-Mon28Aug2000203504+0300-eliz AT is DOT elta DOT co DOT il> <ltflqs8ouggncaukmesirq7rsbsi4umrj5 AT 4ax DOT com> <8011-Mon28Aug2000234727+0300-eliz AT is DOT elta DOT co DOT il> <ttvnqs0p0rib0eja7eiijst64vbgp9tl1b AT 4ax DOT com> <39AD1BF3 DOT 139CB5DB AT softhome DOT net> <9003-Wed30Aug2000195653+0300-eliz AT is DOT elta DOT co DOT il> <3b5rqskv9adg5lcc3p4nhg2doib859r3n8 AT 4ax DOT com> <39AE0E92 DOT C8E0A73B AT softhome DOT net> <4k7tqskuugpt8r78ls4hnt2cfhuggjdtu3 AT 4ax DOT com> <39AEBA9E DOT A3E011AF AT softhome DOT net> <khmtqs4e3j50o3tup2r5rm7trbal670nrb AT 4ax DOT com>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: Jason Green <mail AT jgreen4 DOT fsnet DOT co DOT uk>
> Date: Thu, 31 Aug 2000 23:45:28 +0100
>
> AFAICT, fseek() only fails when seeking to before the start of file.

`fseek' fails when `lseek' fails.

> fread(), in effect, never fails.  It just returns less bytes than you
> asked for ;-).

No, `fread' also fails when `_filbuf' (which actually reads) fails.
Try reading from a file on a floppy and remove the floppy half way
through, for example.

> I suspect if ferror() returns true then errno will have some
> meaningful value.

No, `ferror' doesn't set errno at all.

- Raw text -


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