🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.fortran
Article #4442

Re: getting filename from UNIX file descriptor

#4442
From: Peter W. Morreale
Date: Sun, 30 Jun 1991 15:19
28 lines
1225 bytes
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     
Technical Details
Message-ID: <11984@ncar.ucar.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!ncar!bierstadt.scd.ucar.edu!morreale
References: <51447@ut-emx.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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