Article View: comp.sys.concurrent
Article #111Re: duplicate filedes for open file
From: Michael J. Chinni, SMCAR-CCS-E
Date: Mon, 12 Feb 1990 09:41
Date: Mon, 12 Feb 1990 09:41
34 lines
1765 bytes
1765 bytes
Thanks to all who responded with help for my problem (get a C "FILE *ptr" for an
FORTRAN opened file).
The gist of the responces were search thru all possible fildes for the
appropriate one. While this would work, I found another solution.
I initiallly didn't want to re-open the file in the C routine (I thought that
this would cause problems). I have since tried this and found no problem.
Therefore, that is what I have done. My C routine does the following:
take as a parameter the filename to be opened,
copies the name into a C string (and adds a '\0')
opens the file
does the read
closes the file.
This works fine.
Thanks again.
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
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@pica.army.mil
"System been down long?" () UUCP: ...!uunet!pica.army.mil!mchinni
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Articles to: concurrent@soma.bcm.tmc.edu or uunet!soma.bcm.tmc.edu!concurrent
Administrative stuff: concurrent-request@soma.bcm.tmc.edu
Stan Barber, Moderator
Technical Details
Message-ID:
<181@gazette.bcm.tmc.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bcm!soma!concurrent-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bcm!soma!concurrent-request From: mchinni@pica.army.mil (Michael J. Chinni, SMCAR-CCS-E) Newsgroups: comp.sys.concurrent Subject: Re: duplicate filedes for open file Message-ID: <181@gazette.bcm.tmc.edu> Date: 12 Feb 90 09:41:53 GMT Sender: usenet@bcm.tmc.edu Lines: 34 Approved: concurrent@soma.neuro.bcm.tmc.edu