Thread View: net.lang.f77
4 messages
4 total messages
Started by stever
Fri, 23 May 1986 20:11
Unit number limit?
Author: stever
Date: Fri, 23 May 1986 20:11
Date: Fri, 23 May 1986 20:11
10 lines
670 bytes
670 bytes
Does anyone know a way to get around the limit of 20 unit numbers in UNIX 4.2 FORTRAN? I understand that C allows 31 or so. --thanks in advance Steve Rogers ....tektronix!tekgen!stever
Re: Unit number limit?
Author: david
Date: Mon, 16 Jun 1986 09:46
Date: Mon, 16 Jun 1986 09:46
15 lines
1130 bytes
1130 bytes
>stever@tekgen >Does anyone know a way to get around the limit of 20 >unit numbers in UNIX 4.2 FORTRAN? > >I understand that C allows 31 or so. Nope, that is a function of the file descriptors you can have open in UNIX 4.2: 0-19 (maybe 1-20 in f77, i dunno). (flame me not - this is NOT some magic UNIX standard limit, , but it IS a common implementation limit, and its for all the UNIXes I have seen). If you want lots of files open, use FILE pointers (is there a way to get them from f77? in C we use fopen() instead of open() ).
Re: Unit number limit?
Author: david
Date: Mon, 16 Jun 1986 11:28
Date: Mon, 16 Jun 1986 11:28
3 lines
762 bytes
762 bytes
Ooops! I just checked the sources, and fopen() DOES still use descriptors (it actually calls open()), so you can still only open 20 files on your vanilla 4.2 or sysV implementation.
Re: Unit number limit?
Author: Daniel R. Levy
Date: Sat, 21 Jun 1986 01:10
Date: Sat, 21 Jun 1986 01:10
18 lines
1482 bytes
1482 bytes
In article <8300002@ztivax.UUCP>, david@ztivax.UUCP writes:
>Ooops! I just checked the sources, and fopen() DOES still use
>descriptors (it actually calls open()), so you can still only open 20
>files on your vanilla 4.2 or sysV implementation.
I would HOPE that fopen() still uses descriptors (the OS provides no other way
to stuff input into a file, except maybe mucking with the device con-
taining the files [look ma, several files, one descriptor, system crash!] :-)).
No need to "check the sources" to know THAT!
--
------------------------------- Disclaimer: The views contained herein are
| dan levy | yvel nad | my own and are not at all those of my em-
| an engihacker @ | ployer or the administrator of any computer
| at&t computer systems division | upon which I may hack.
| skokie, illinois |
-------------------------------- Path: ..!{akgua,homxb,ihnp4,ltuxa,mvuxa,
vax135}!ttrdc!levy
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads