9front - general discussion about 9front
 help / color / mirror / Atom feed
From: ori@eigenstate.org
To: 9front@9front.org
Subject: Re: [9front] Patch cc to create .$O files with DMTMP
Date: Tue, 08 Jun 2021 17:39:56 -0400
Message-ID: <10D646570C35FCC52B90D1F9ABD04AE3@eigenstate.org> (raw)
In-Reply-To: <a5f3827d-b681-9bb2-ccd0-06a6145a57d9@posixcafe.org>

Quoth Jacob Moody <moody@mail.posixcafe.org>:
> 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.


  reply	other threads:[~2021-06-08 21:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-07  1:08 Jacob Moody
2021-06-08 21:39 ` ori [this message]
2021-06-08 23:55   ` Anthony Martin
2021-06-09  0:24     ` kvik
2021-06-09 11:58     ` Jacob Moody

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=10D646570C35FCC52B90D1F9ABD04AE3@eigenstate.org \
    --to=ori@eigenstate.org \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

9front - general discussion about 9front

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/9front

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 9front 9front/ http://inbox.vuxu.org/9front \
		9front@9front.org
	public-inbox-index 9front

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.9front


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git