ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/27/02:42:20

Date: Tue, 27 Jun 1995 08:30:53 +0300
From: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii)
To: lancette AT teleview DOT com DOT sg
Subject: Re: Problems opening > 20 files when using FOPEN
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

> I cannot open more than 20 files at same time when using FOPEN.
> Working with 486-dos6.2. To use djgpp compiler my app needs to open more than
> 20 files. i did what the book said:
> -increased my config to files=60
> -increased handles count in JFT (Job File Table) to 40 using INT21H, func 67H

The last step isn't required at all (DJGPP does it for you).  However,
the space allocated to the FILE objects is currently limited to 20 in
DJGPP (look in the library source, file libsrc/c/io.findiop.c).  So
functions which return FILE * are limited to 20, unless you recompile
the library.  Functions which return file handles don't have that
restriction.

- Raw text -


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