Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: encapsulating directory operations Date: Mon, 09 Jun 2025 18:59:27 -0700 Organization: A noiseless patient Spider Lines: 19 Message-ID: <86y0u0qruo.fsf@linuxsc.com> References: <100h650$23r5l$1@dont-email.me> <1020eu8$2pifl$1@raubtier-asyl.eternal-september.org> <1e3f53801e22a94356b9b0aded0ed7d33e67fd06.camel@gmail.com> <1021pgp$35sqk$1@raubtier-asyl.eternal-september.org> <1858c98adc50b2bec4021f15d0c5b94e2158f6b5.camel@gmail.com> <10223hq$38g0s$1@raubtier-asyl.eternal-september.org> <10229vo$3b858$1@dont-email.me> <102497b$3tavs$3@raubtier-asyl.eternal-september.org> <1024qkl$1iim$3@raubtier-asyl.eternal-september.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Tue, 10 Jun 2025 03:59:29 +0200 (CEST) Injection-Info: dont-email.me; posting-host="1fbd55e74bfc4309a280a41a1d3a3e6e"; logging-data="927090"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++LkLYC0rTFBnU7/8t5G0OSubnmh3eGP0=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:mMC0HDFqPpUWVjD3pQ3PR1Sn940= sha1:CrkSQkrhEuIQIjDmxa0I1ufc2Y0= scott@slp53.sl.home (Scott Lurndal) writes: > Bonita Montero writes: > >> Am 08.06.2025 um 18:58 schrieb Scott Lurndal: >> >>> Actually it very much matters where the allocation failed, if >>> one wishes to recover from it. >> >> This very rarely makes sense. It's almost always the case that if >> an operation fails, it doesn't matter what allocation was behind >> it. > > Have you ever written real-world production code? Like an operating > system, where allocation failures should -never- result in an > inability to recover. You're talking to someone who can't understand the difference between comp.lang.c and comp.lang.c++. What do you expect?