This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] _unlink() & rmdir() on /proc/*


On Wed, Jun 05, 2002 at 01:14:26AM +0100, Chris January wrote:
>> P.S. I don't expect this patches to be applied because they may look
>> like ugly hacks or something like that... I didn't find any more
>> appropriate way to fix this though without greater modifications to
>> the code. I see several ways of fixing this in a much better way:
>>
>> 1. unlink () and rmdir () should be made virtual functions in
>> fhandler_base.
>
>Chris, what are yout thoughts on this? At the moment, not enough file I/O
>functions have been moved to fhandler_base to implement a read/write pseudo
>filesystem using fhandler_virtual. This was one of the main reasons that
>/proc/registry is read-only.

I agree that unlink, rmdir, chdir, and probably a host of others should be
moved into fhandler.  Having done this with fstat, opendir, readdir, etc.,
recently, I know this isn't a trivial thing to do however.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]