Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!ncar!bierstadt.scd.ucar.edu!morreale From: morreale@bierstadt.scd.ucar.edu (Peter W. Morreale) Newsgroups: comp.lang.fortran Subject: Re: getting filename from UNIX file descriptor Message-ID: <11984@ncar.ucar.edu> Date: 30 Jun 91 15:19:33 GMT References: <51447@ut-emx.uucp> Sender: news@ncar.ucar.edu Distribution: usa Organization: Scientific Computing Division/NCAR, Boulder, CO Lines: 28 In article <51447@ut-emx.uucp> pefv700@perv.pe.utexas.edu writes: > >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? % man 2 stat > >(Yeah, I know this is not strictly a FORTRAN question. Just wanting to know >how to implement it myself.) > It's not a Fortran question in any sense. Please post to comp.lang.c. -PWM -- ------------------------------------------------------------------ Peter W. Morreale email: morreale@ncar.ucar.edu Nat'l Center for Atmos Research voice: (303) 497-1293 Scientific Computing Division