Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.unix.questions Subject: Re: How to determine file being redirected to in C Message-ID: <9771@smoke.BRL.MIL> Date: 2 Mar 89 15:21:08 GMT References: <10@sherpa.UUCP> <9745@smoke.BRL.MIL> <1103@auspex.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 10 In article <1103@auspex.UUCP> guy@auspex.UUCP (Guy Harris) writes: >>The device/inode numbers are obtained from the fstat() system call. >>These days, the system ID should also be compared. >The *what*? I didn't say it COULD be compared.. What one ideally wants are globally-unique object handles. The kludges you described may work for the time being, but they're just sweeping the real problem under the rug. The dirt's still there, and one day it will have to be dealt with.