🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.fortran
Article #4440

getting filename from UNIX file descriptor

#4440
From: pefv700
Date: Sat, 29 Jun 1991 22:25
16 lines
757 bytes
The FORTRAN statement

	INQUIRE(UNIT, name = STRING)

sets STRING to the name of the file that the FORTRAN logical unit UNIT
refers to.

How can this be implemented under UNIX with system calls?

(Yeah, I know this is not strictly a FORTRAN question.  Just wanting to know
how to implement it myself.)

Thanks,

Chris
Technical Details
Message-ID: <51447@ut-emx.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!ut-emx!perv.pe.utexas.edu!pefv700

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!ut-emx!perv.pe.utexas.edu!pefv700
From: pefv700@perv.pe.utexas.edu
Newsgroups: comp.lang.fortran
Subject: getting filename from UNIX file descriptor
Message-ID: <51447@ut-emx.uucp>
Date: 29 Jun 91 22:25:27 GMT
Sender: news@ut-emx.uucp
Distribution: usa
Organization: Dept. of Petroleum Engineering, The University of Texas at Aust
Lines: 16