Path: utzoo!attcan!uunet!husc6!bbn!uwmcsd1!ig!agate!violet.berkeley.edu!jerry
From: jerry@violet.berkeley.edu ( Jerry Berkman )
Newsgroups: comp.lang.fortran
Subject: Re: Fortran I/O Limit on Mips Machine
Keywords: HELP MIPS FORTRAN I/O FILES
Message-ID: <10429@agate.BERKELEY.EDU>
Date: 1 Jun 88 00:32:04 GMT
References: <14066.1988May27.12:41:49@hammer.me.toronto.edu>
Sender: usenet@agate.BERKELEY.EDU
Distribution: na
Organization: University of California, Berkeley
Lines: 30

In article <14066.1988May27.12:41:49@hammer.me.toronto.edu> kokody2@hammer.me.toronto.edu (Gerry Kokodyniak) writes:
 
>I am using the Mips Microsystems f77 fortran compiler running on a
>MIPS M1000 computer running UMIPS-BSD UNIX. I have run into difficulty
>installing a finite element package due to a compiler quirk that 
>allows one have a maximum of 17 files at any one time...This same package
>works fine on our SUN 3/180's which appear to allow us to open 24 files
>at any one time.
>
>By the way, the run-time error message given is:
>
>	open: illegal unit number

Generally the number of files which are allowed to be open simultaneously
depends on the operating system, not the Fortran compiler.  On our BSD
VAX systems, you can open 61 files in addition to standard input, output,
and error, and then get:

	fort.71: [119] opening too many files or unknown system error

On a Sun, you can open 27 files, and then get "Too many open files".
On our Cray UNICOS system, after 56 files: "unit not connected".
On our IBM, with VS FORTRAN under CMS, I opened 90 files with no problem.

I believe before the BSD f77 libraries were cleaned up (about 1985), the
error message was very obscure.  Maybe Mips is using an old base for their
f77 libraries.

	- Jerry Berkman
	  U.C. Berkeley, jerry@violet.berkeley.edu