From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30291 invoked from network); 8 Jun 2021 21:47:27 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 8 Jun 2021 21:47:27 -0000 Received: from mimir.eigenstate.org ([206.124.132.107]) by 1ess; Tue Jun 8 17:40:10 -0400 2021 Received: from abbatoir.myfiosgateway.com (pool-74-108-56-225.nycmny.fios.verizon.net [74.108.56.225]) by mimir.eigenstate.org (OpenSMTPD) with ESMTPSA id 6102e6bd (TLSv1.2:ECDHE-RSA-AES256-SHA:256:NO) for <9front@9front.org>; Tue, 8 Jun 2021 14:39:57 -0700 (PDT) Message-ID: <10D646570C35FCC52B90D1F9ABD04AE3@eigenstate.org> To: 9front@9front.org Date: Tue, 08 Jun 2021 17:39:56 -0400 From: ori@eigenstate.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: interface cache metadata-aware manager Subject: Re: [9front] Patch cc to create .$O files with DMTMP Reply-To: 9front@9front.org Precedence: bulk Quoth Jacob Moody : > Hello, > > I often have times where I find I have left build artifacts around the system from forgetting > to run mk clean. I thought it might be nice for the compiler to create the files with DMTMP > to prevent them from getting added to fs dumps. > > > Thanks, > moody > > --- //.git/fs/object/6ae0cd0d48a1b852f4a00c09aa8056e9062b1cf1/tree/sys/src/cmd/cc/lex.c > +++ sys/src/cmd/cc/lex.c > @@ -229,7 +229,7 @@ > dup(2, 1); > } > } else { > - c = mycreat(outfile, 0664); > + c = mycreat(outfile, 0664 | DMTMP); > if(c < 0) { > diag(Z, "cannot open %s - %r", outfile); > outfile = 0; > Makes sense to me -- easy to regenerate files that change a lot probably shouldn't go into the dump by default. will commit soon.