Re: int filehandle? && small rootcint enhancement.

From: Valery Fine (fine@mail.cern.ch)
Date: Sun Jul 06 1997 - 15:47:05 MEST


> > According to POSIX there's a fileno() on streams which returns the int
> > filehandle (I hope that's what fortran calls LUN) but I couldn't find it
> > in CINT.

  No you must not suppose this. In general Fortran was born many 
( 35-40 ? ) years ago. That time there was NO C/C++ at all. 
Usually they (Fortran compilers)  have a special implementation of 
I/O functions and it is not supposed to be mixed with any C/C++ I/O 
systems. Taking in account we are running 12-15 different 
platforms/compilers combinations the only solution is to call C/C++ 
subroutine to perform C/C++ I/O from your Fortran code (like CERNLIB 
does) (or to call Fortran subroutine with OPEN/WRITE/READ Fortran 
statements inside and pass them the pointer to  some sort of a buffer 
as a parameter. This approach is not recommended).

                Valery
=================================================================
Dr. Valery Fine                  Telex : 911621 dubna su
    -----------
LCTA/Joint Inst.for NuclearRes   Phone : +7 09621 6 40 80
141980 Dubna, Moscow region      Fax   : +7 09621 6 51 45
Russia                           mailto:fine@main1.jinr.dubna.su                              

Dr. Valeri Faine
    ------------                 Phone: +41 22 767 6468
CERN                             FAX  : +41 22 767 7910
CH-1211 Geneva, 23               mailto:fine@mail.cern.ch 
Switzerland                      http://nicewww.cern.ch/~fine
                                 



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:20 MET