Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!think.com!linus!nixbur!nixpbe!nixsin!koerberm From: koerberm@nixsin.UUCP (Mathias Koerber) Newsgroups: comp.unix.questions Subject: How determine if a file is opened by another process Message-ID: <1488@nixsin.UUCP> Date: 28 Jan 91 01:40:21 GMT Reply-To: koerber.sin@nixdorf.com Organization: Siemens Nixdorf Information Systems (Singapore) Pte Ltd Lines: 17 Cheers, I want to find out, whether any process has opened a file, of which I only have the filename (or the inode, and the fs). The process that might have opened it need not be related to mine. I want to find out whether I can delete the file, without creating a still existing, unref'd file, which might grow without me knowing which file it is. I looked through inode.h and ino.h, but found no pointer to this. Could anyone pls give me a hint ?. Maybe it's in a table in the kernel ? thx, Mathias -- Mathias Koerber | S iemens | EUnet: koerber.sin@nixdorf.de 2 Kallang Sector | N ixdorf | USA: koerber.sin@nixdorf.com S'pore 1344 | I nformation Systems | Tel: +65/7402852 | Fax: +65/7402834 * Packed with Power, SNIckers really satisfy (or do they? Ask them gals :-) )*