Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!spool2.mu.edu!think.com!sdd.hp.com!hplabs!hpcc05!hpdmd48!barry From: barry@hpdmd48.boi.hp.com (Barry Kurtz) Newsgroups: comp.os.os2.programmer Subject: Max Open File Problem Message-ID: <6070002@hpdmd48.boi.hp.com> Date: 7 Jan 91 21:58:18 GMT Organization: Hewlett Packard - Boise, ID Lines: 21 I am having trouble porting a program to OS/2 under Microsoft C that I've successfully ported among DOS and SCO UNIX systems. The program requires at least 16 files to be open at one time. This is easily handled on both DOS and UNIX. The files are opened by the standard "fopen" library function. I find that OS/2 limits me to about 14 user files at one time (probably a 20 file total limit). I've investigated the FCBS parameter in CONFIG.SYS and the DosSetMaxFH function in the OS/2 library to no avail. However, if I use DosSetMaxFH in conjunction with the OS/2-specific DosOpen function I can open the desired number of files. Converting all fopens and fprintfs to the DOSxxx library functions would make the program much less portable - so this is not an acceptable answer. Does anyone know of a way to open more than 14 user files under OS/2 using the Microsoft C 6.0 compiler? Any help would be greatly appreciated. Barry Kurtz Hewlett-Packard Boise, Idaho