Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: bart Newsgroups: comp.lang.c Subject: Re: "undefined behavior"? Date: Fri, 14 Jun 2024 19:31:29 +0100 Organization: A noiseless patient Spider Lines: 21 Message-ID: References: <666a095a$0$952$882e4bbb@reader.netnews.com> <8t3k6j5ikf5mvimvksv2t91gbt11ljdfgb@4ax.com> <666a18de$0$958$882e4bbb@reader.netnews.com> <87y1796bfn.fsf@nosuchdomain.example.com> <666a2a30$0$952$882e4bbb@reader.netnews.com> <87tthx65qu.fsf@nosuchdomain.example.com> <87o784xusf.fsf@bsb.me.uk> <87ikybycj6.fsf@bsb.me.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 14 Jun 2024 20:31:29 +0200 (CEST) Injection-Info: dont-email.me; posting-host="3cbeaf55936e5f695a7fb47506a986f6"; logging-data="3162898"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/YsS2hFl7E7N7pV4Kl6sN" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:wivxvosW7ALhUrSvgxOPgNBmsAs= Content-Language: en-GB In-Reply-To: Bytes: 2464 On 14/06/2024 19:06, Malcolm McLean wrote: >   Baby X FS - the filing system - code that allows you to create a > virtual drive on your computer and access files from it using special > fopen(), fclose() functions, but standard library functions like > fprintf() or fgetc() for the other operations I think people don't get is why they should use this filing system, when they already have a perfectly good one within their OS on which fopen() etc already work. When you do fclose() after writing a file, will get it written to some persistent media? Because either it says in memory (dangerous if your machine crashes, or someone just turns it off), or it gets written to the same SSD/SD/HDD media that the real OS uses. In which case, what is the point? I gather this is not any of kind of OS with its own drivers for the peripherals on the machine, that takes over the real OS, or runs as some kind of virtual machine.