Sujet : Re: Running an editor from ANSI C
De : david.brown (at) *nospam* hesbynett.no (David Brown)
Groupes : comp.lang.cDate : 12. Jun 2024, 13:54:31
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v4c5q7$1lki1$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0
On 12/06/2024 14:43, Richard Harnden wrote:
On 12/06/2024 10:57, Malcolm McLean wrote:
>
But yes, my view is the Baby X FileSystem is going to enhance Baby X and lift it to a new level. The ability to mount an internal filesystem in a small program is very useful indeed.
>
Why?
You have an xml file, which is just a text file, and you want to slurp that into your babyx - fine, so now you have a large char*.
Now you want to 'mount' that.
So you can opendir, readdir, ..., fopen something.
All just so that you can fgets?
Just so you can get a string out of a 'file'.
A string you basically had a pointer to already.
I'm sorry, but I just cannot see the point. Seems like you're making it way more complicated than it needs to be. I'm not sure why you think it needs to exist at all. Or why you think it's a good idea.
Exactly my thoughts.
I can appreciate wanting to do this for the fun of it, or the challenge of it. People have picked weirder things for their hobby projects.
But I am at a loss to understand why Malcolm thinks this could possibly be /useful/ for anyone. We've had lots of "you want to be able to do this or that", without the slightest hint as to who "you" might be, or why "you" would want to do anything of the sort.
And /if/ access to the contents of the xml file as individual files is important and useful, then libfuse would be a vastly more useful and powerful way to handle it.