Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!ncar!bierstadt.scd.ucar.edu!morreale From: morreale@bierstadt.scd.ucar.edu (Peter W. Morreale) Newsgroups: comp.lang.fortran Subject: Re: meshing UNIX file descriptors and FORTRAN logical units Message-ID: <11985@ncar.ucar.edu> Date: 30 Jun 91 15:28:15 GMT References: <51446@ut-emx.uucp> Sender: news@ncar.ucar.edu Distribution: usa Organization: Scientific Computing Division/NCAR, Boulder, CO Lines: 24 In article <51446@ut-emx.uucp> pefv700@perv.pe.utexas.edu writes: > >Does anyone know how to determine the file descriptor (useful for system >calls) that matches a FORTRAN logical unit under UNIX? > I think you will find that this is a vendor specific problem. I needed to do this with UNICOS 5.1.11, semi-quoting from a Crayon: "It's d*mm near impossible." The reason being (at least on UNICOS) that the file descriptor is an array index pointing to a structure within the kernal. (ie: There is isn't a straight-forward mapping between Fortran Unit numbers and system file descriptrors.....) -PWM -- ------------------------------------------------------------------ Peter W. Morreale email: morreale@ncar.ucar.edu Nat'l Center for Atmos Research voice: (303) 497-1293 Scientific Computing Division