Path: 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 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