[iyonix-support] Re: Additional Filer Menu-option
- From: Rik Griffin <rik.griffin@xxxxxxxxxxxxxxxxxxx>
- To: iyonix-support@xxxxxxxxxxxxx
- Date: Tue, 27 Feb 2007 10:29:22 GMT
In message <4ebb6b298blists@xxxxxxxxxxxxx>
John Williams <lists@xxxxxxxxxxxxx> wrote:
> Now the filer knows what the file is called, what its filehandle is and
> so forth. Why can there not be a filer-menu option to close the file?
Actually, there's no method provided by the OS for getting an open file's
handle from its name (path). You have to enumerate through all open files
(file handles 1 to 255 ignoring those not in use) and for each open file,
canonicalise its path name, then compare that to the canonical version of
the file you are interested in.
A bit long winded :)
--
Rik Griffin
Software Engineer, Denbridge Marine Ltd
---
To alter your preferences or leave the group,
visit http://www.freelists.org/list/iyonix-support
Other info via http://www.freelists.org/webpage/iyonix-support
- References:
- [iyonix-support] Additional Filer Menu-option
- From: John Williams
Other related posts:
- » [iyonix-support] Additional Filer Menu-option
- » [iyonix-support] Re: Additional Filer Menu-option
- » [iyonix-support] Re: Additional Filer Menu-option
- [iyonix-support] Additional Filer Menu-option
- From: John Williams