ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/12/11:44:05

From: Jeffrey_Krupp AT May-Co DOT com
Subject: zero file descriptors
To: djgpp AT delorie DOT com
Date: Thu, 12 Oct 2000 11:41:50 -0400
Message-ID: <OF9C7EBCE2.E6C2E8E5-ON85256976.005533DA@COM>
X-MIMETrack: Serialize by Router on MD110052/SERVERS/MAYCO(Release 5.0.2b |December 16, 1999) at
10/12/2000 10:41:59 AM
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

I am having a problem with fopen where it opens a file (returns a valid
file pointer), but then its file handle is zero. When this happens, I can't
fseek,fread,or fwrite. The same is true for a socket() call.

As a work-around after the original fopen, I have been re-opening the same
file, getting an actual valid handle/pointer, then closing the original
pointer(the one with the zero handle).

Is this a compiler bug, or am I using something incorrectly? I am using v2
and am running this in Caldera's DR-DOS 7.0 on a 486. I have also tried the
same program in MS-DOS 5.0 - same results.

Any ideas? Thanks.

- Raw text -


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