Xref: utzoo comp.unix.questions:20409 comp.unix.i386:3329 comp.unix.xenix:10419 comp.lang.fortran:2963 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!icdoc!gould.doc!kpt From: kpt@doc.ic.ac.uk (Kevin Twidle) Newsgroups: comp.unix.questions,comp.unix.i386,comp.unix.xenix,comp.lang.fortran Subject: LPI Fortran - Help! Message-ID: Date: 5 Mar 90 17:36:14 GMT Sender: news@doc.ic.ac.uk Distribution: comp Organization: Dept of Computing, Imperial College, London, England Lines: 21 I have a major problem in using LPI Fortran on 386/ix (I am posting to other groups as was as I understand that it is available on their machines too). I am opening a device in Fortran and want to set all its modes using a C function. I also want to open a fixed length text file and seek to lines in it, for this I have to write a C function that calls lseek. My big problem is that I cannot match the Fortran unit numbers to Unix file handles. Ie. If I open unit 10 it is actually Unix handle 3. LPI Fortran seems to have remarkably little in the way of library routines that will help; unlike Sun Fortran which is much better. Help me!!!!!!!! (please) Kevin -- ----- Kevin Twidle Tel: +44 1 589 5111 x5068 Email: kpt@doc.ic.ac.uk Dept of Computing, Imperial College, 180 Queen's Gate, London SW7 2BZ, England "It's not the cough that carries you off, it's the coffin they carry you off in"