Path: utzoo!attcan!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!lavaca.uh.edu!elroy!chee13h From: chee13h@elroy.uh.edu (A JETSON News User) Newsgroups: comp.unix.questions Subject: Fortran channel to File descriptor conversion..help! Message-ID: <5723.25f25ac2@elroy.uh.edu> Date: 5 Mar 90 18:25:37 GMT Organization: University of Houston Lines: 18 I am using fortran on the DG AVION system and have run into the following. The fortran supplied by DG does't have a functional interface to return a FILE DESCRIPTOR from a channel number. I need that badly to enable and disable locking mechanisms. I have thought of the following as a solution. Maybe somebody out ther can suggest a solution. I know the filename of the file, so I can get the inode number of the file by using the system call stat(). Now, we know that file descriptor tables store the inode number of the file for i/o. How can I use the inode number of the file and get to the file descriptor. It's my understanding that the file descriptor is nothing but an index into this table. Is there a function which I can use to access and search the file descriptor table??? thanks ashok chee13h@jane.uh.edu