From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <599f06db0705030722y534dc22cn5c570f147c8a6e71@mail.gmail.com> Date: Thu, 3 May 2007 16:22:31 +0200 From: "Gorka Guardiola" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: [9fans] tree problem Topicbox-Message-UUID: 571d69e2-ead2-11e9-9d60-3106f5b1d025 I was using a tree created by alloctree(), 9pfile(2) to write a synthetic filesystem and got into a problem I have seen before, but I can=B4t remember if I asked about it here (google doesn't find anything). There is no way to register a close() function in Srv which can be called when a clunk is received for an open file. The solution may, alternatively be to register a clunk() function and each can do what they want with it though I do not like it because I feel I should receive things related with files and not with fids. This is important to do garbage collection in some cases (for example if you open something when you get an open and want to close it). Is there a reason for this function not existing? am I missing something?. At some point in the past I had a modified version of the library (my proposed solution) and at another I played with the references (very ugly) if my memory serves right. --=20 - curiosity sKilled the cat