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.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 15164 invoked from network); 7 Jun 2021 01:14:22 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 7 Jun 2021 01:14:22 -0000 Received: from mail.posixcafe.org ([45.76.19.58]) by 1ess; Sun Jun 6 21:08:36 -0400 2021 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posixcafe.org; s=20200506; t=1623028108; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=r+01NbrOmEX6H1cDxXAPQ3LgP8XT9/hAGjiXkKwVlNQ=; b=S8le8HHAEWjzsoCG2nZTNj8/X8vei86tlYsVa39zQQ7bRmaKgqJFWo15rxQlsOyG3fMXGL QGjvCnEgV8gkRVteXKrKtRgpM0qImq1gwmvnQwHpSnyE+6T7xmcFwWtoZvkzBrWhP2oHWj 0qrYLvA4ilJLKCrdD/rzQfQTMn9zXxY= Received: from [192.168.0.16] ( [208.38.228.1]) by mail.posixcafe.org (OpenSMTPD) with ESMTPSA id 0f187308 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <9front@9front.org>; Sun, 6 Jun 2021 20:08:28 -0500 (CDT) To: 9front@9front.org From: Jacob Moody Message-ID: Date: Sun, 6 Jun 2021 20:08:27 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: mobile shared content-driven-based rich-client framework Subject: [9front] Patch cc to create .$O files with DMTMP Reply-To: 9front@9front.org Precedence: bulk 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;