www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2009/03/24/17:24:13

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Date: Tue, 24 Mar 2009 18:23:37 -0400
From: Ethan Rosenberg <ethros AT earthlink DOT net>
Subject: Re: DJGPP Setup?
In-reply-to: <u4oxiob09.fsf@gnu.org>
To: djgpp AT delorie DOT com
Message-id: <0KH100CJT7JOE5E0@mta4.srv.hcvlny.cv.net>
MIME-version: 1.0
X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9
References: <0KGZ00GQ8UBIYMM0 AT mta4 DOT srv DOT hcvlny DOT cv DOT net> <u8wmuoora DOT fsf AT gnu DOT org>
<0KH0008ZTYD2KCK1 AT mta2 DOT srv DOT hcvlny DOT cv DOT net> <u4oxiob09 DOT fsf AT gnu DOT org>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

At 05:40 PM 3/24/2009, you wrote:
> > Date: Tue, 24 Mar 2009 15:05:15 -0400
> > From: Ethan Rosenberg <ethros AT earthlink DOT net>
> >
> > 1] The program correctly opens all the files and runs.  It fails
> > after about 20 writes to the files in the code that I sent you.
>
>It could fail because of reasons unrelated to the number of files
>you open.
>
> > 2] RE: The code that you sent me... which header files do I need?
>
>I didn't send any code that you should compile.
++++++++++
This is the code to which I refer -

/* See if we need to expand the tables.  Check this BEFORE it might fail,
      so that when we hit the count'th request, we've already up'd it. */
   if ((size_t)fd >= (count-1) && count < 255)
   {
     int oldcount = count;
     count = 255;

     __file_handle_modes = (char *)malloc(count * 
sizeof(*__file_handle_modes));
     memcpy(__file_handle_modes, init_file_handle_modes, 
sizeof(init_file_handle_modes));
     memset(__file_handle_modes + oldcount, 0, 
(count-oldcount)*sizeof(__file_handle_modes[0]));

     /* Tell DOS to allow more */
     r.h.ah = 0x67;
     r.x.bx = count;
     __dpmi_int(0x21, &r);
   }
Did you or Rod Pemberton send me the above code?

Ethan 


- Raw text -


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