This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: [PATCH] _unlink() & rmdir() on /proc/*
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 4 Jun 2002 21:15:39 -0400
- Subject: Re: [PATCH] _unlink() & rmdir() on /proc/*
- References: <11415277457.20020604143720@syntrex.com> <008501c20c25$f41d9d60$0100a8c0@advent02>
- Reply-to: cygwin at cygwin dot com
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/