duplicate fildes for open file

Michael J. Chinni, SMCAR-CCS-E mchinni at pica.army.mil
Thu Jan 11 09:01:26 AEST 1990


Help,

	Situation is the following:
I need to read data in a C routine from a file opened by a FORTRAN main
routine.  When the program is run:
		the file is guaranteed to exist 
		the file is guaranteed to have been opened 
		the FORTRAN unit number for this open file is known
		the name of the file is known

	Question:
Is there any way to get a valid "FILE *ptr" for my C routine for this currently
open file ?

Any help will be very much appreciated.

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
			    Michael J. Chinni
      Chief Scientist, Simulation Techniques and Workplace Automation Team
	 US Army Armament Research, Development, and Engineering Center
 User to skeleton sitting at cobweb   () Picatinny Arsenal, New Jersey  
    and dust covered workstation      () ARPA: mchinni at pica.army.mil
      "System been down long?"        () UUCP: ...!uunet!pica.army.mil!mchinni
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/



More information about the Comp.unix.questions mailing list