Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.unix.wizards Subject: Re: how can I get filename from file descriptor? Message-ID: <11099@smoke.BRL.MIL> Date: 17 Sep 89 01:36:17 GMT References: <9353@chinet.chi.il.us> <1639@cbnewsl.ATT.COM> <10850@smoke.BRL.MIL> <14280@super.ORG> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 14 In article <14280@super.ORG> rminnich@pacific.UUCP (Ronald G Minnich) writes: -In article <10850@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn) writes: ->If your pipe implementation is any good (most are not), simply write 0 ->bytes to it. -Well, now i am real curious. I tried this about 6 years ago on -several unices, mostly on vaxes and 11s and such and a Fortune machine, -and i never saw a zero-length write make it through to a read. -So, anybody ever had this work? It would be kind of neat if it did... I did say that most pipe implementations don't support this. Back in the days of Sixth Edition UNIX, several sites implemented "pipe internal EOF". It's clear that streams COULD implement this; I don't know whether or not the various flavors of streams do. Personally I think they should.